You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/06/30 03:45:03 UTC
[rocketmq-apis] branch main updated: Minor adjsutment of code category
This is an automated email from the ASF dual-hosted git repository.
lizhanhui pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-apis.git
The following commit(s) were added to refs/heads/main by this push:
new 83235c0 Minor adjsutment of code category
83235c0 is described below
commit 83235c0cacf9969db819538661893dcd203e853d
Author: Li Zhanhui <li...@gmail.com>
AuthorDate: Thu Jun 30 11:44:54 2022 +0800
Minor adjsutment of code category
---
apache/rocketmq/v2/definition.proto | 43 ++++++++++++++++++++++++++-----------
1 file changed, 31 insertions(+), 12 deletions(-)
diff --git a/apache/rocketmq/v2/definition.proto b/apache/rocketmq/v2/definition.proto
index 71dc72b..585bed8 100644
--- a/apache/rocketmq/v2/definition.proto
+++ b/apache/rocketmq/v2/definition.proto
@@ -317,31 +317,30 @@ enum Code {
ILLEGAL_MESSAGE_GROUP = 40006;
// Format of message property key is illegal.
ILLEGAL_MESSAGE_PROPERTY_KEY = 40007;
- // Message properties total size exceeds the threshold.
- MESSAGE_PROPERTIES_TOO_LARGE = 40008;
- // Message body size exceeds the threshold.
- MESSAGE_BODY_TOO_LARGE = 40009;
// Transaction id is invalid.
- INVALID_TRANSACTION_ID = 40010;
+ INVALID_TRANSACTION_ID = 40008;
// Format of message id is illegal.
- ILLEGAL_MESSAGE_ID = 40011;
+ ILLEGAL_MESSAGE_ID = 40009;
// Format of filter expression is illegal.
- ILLEGAL_FILTER_EXPRESSION = 40012;
+ ILLEGAL_FILTER_EXPRESSION = 40010;
// Receipt handle of message is invalid.
- INVALID_RECEIPT_HANDLE = 40013;
+ INVALID_RECEIPT_HANDLE = 40011;
// Message property is not match the message type.
- MESSAGE_PROPERTY_DOES_NOT_MATCH_MESSAGE_TYPE = 40014;
+ MESSAGE_PROPERTY_DOES_NOT_MATCH_MESSAGE_TYPE = 40012;
// Client type could not be recognized.
- UNRECOGNIZED_CLIENT_TYPE = 40015;
+ UNRECOGNIZED_CLIENT_TYPE = 40013;
// Message is corrupted.
- MESSAGE_CORRUPTED = 40016;
+ MESSAGE_CORRUPTED = 40014;
// Request is rejected due to missing of x-mq-client-id header.
- CLIENT_ID_REQUIRED = 40017;
+ CLIENT_ID_REQUIRED = 40015;
// Generic code indicates that the client request lacks valid authentication
// credentials for the requested resource.
UNAUTHORIZED = 40100;
+ // The account is suspended due to overdue of payment.
+ PAYMENT_REQUIRED = 40200;
+
// Generic code for the case that user does not have the permission to operate.
FORBIDDEN = 40300;
@@ -354,13 +353,32 @@ enum Code {
// Consumer group resource does not exist.
CONSUMER_GROUP_NOT_FOUND = 40403;
+ // Generic code represents that the request entity is larger than limits defined by server.
+ PAYLOAD_TOO_LARGE = 41300;
+
+ // Message body size exceeds the threshold.
+ MESSAGE_BODY_TOO_LARGE = 41301;
+
+ // Generic code for use cases where pre-conditions are not met.
+ // For example, if a producer instance is used to publish messages without prior start() invocation,
+ // this error code will be raised.
+ PRECONDITION_FAILED = 42800;
+
// Generic code indicates that too many requests are made in short period of duration.
// Requests are throttled.
TOO_MANY_REQUESTS = 42900;
+ // The server is unwilling to process the request because its header fields are too large.
+ // The request may be resubmitted after reducing the size of the request header fields.
+ REQUEST_HEADER_FIELDS_TOO_LARGE = 43100;
+
+ // Message properties total size exceeds the threshold.
+ MESSAGE_PROPERTIES_TOO_LARGE = 43101;
+
// Generic code indicates that server/client encountered an unexpected
// condition that prevented it from fulfilling the request.
INTERNAL_ERROR = 50000;
+
// Code indicates that the server encountered an unexpected condition
// that prevented it from fulfilling the request.
// This error response is a generic "catch-all" response.
@@ -371,6 +389,7 @@ enum Code {
//
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
INTERNAL_SERVER_ERROR = 50001;
+
// The HA-mechanism is not working now.
HA_NOT_AVAILABLE = 50002;