tuohai666 commented on a change in pull request #9810:
URL: https://github.com/apache/shardingsphere/pull/9810#discussion_r601025566
##########
File path:
shardingsphere-db-protocol/shardingsphere-db-protocol-core/src/main/java/org/apache/shardingsphere/db/protocol/error/CommonErrorCode.java
##########
@@ -27,35 +27,35 @@
@Getter
public enum CommonErrorCode implements SQLErrorCode {
- CIRCUIT_BREAK_MODE(10000, "C10000", "Circuit break mode is ON."),
+ CIRCUIT_BREAK_MODE(1000, "C1000", "Circuit break mode is ON."),
- SHARDING_TABLE_RULES_NOT_EXISTED(11001, "C11001", "Sharding table rule %s
is not exist."),
+ SHARDING_TABLE_RULES_NOT_EXISTED(1101, "C1101", "Sharding table rule %s is
not exist."),
- TABLES_IN_USED(11002, "C11002", "Can not drop rule, tables %s in the rule
are still in used."),
+ TABLES_IN_USED(1102, "C1102", "Can not drop rule, tables %s in the rule
are still in used."),
- RESOURCE_IN_USED(11003, "C11003", "Can not drop resources, resources %s in
the rule are still in used."),
+ RESOURCE_IN_USED(1103, "C1103", "Can not drop resources, resources %s in
the rule are still in used."),
- RESOURCE_NOT_EXIST(11004, "C11004", "Can not drop resources, resources %s
do not exist."),
+ RESOURCE_NOT_EXIST(1104, "C1104", "Can not drop resources, resources %s do
not exist."),
- REPLICA_QUERY_RULE_NOT_EXIST(11005, "C11005", "Replica query rule does not
exist."),
+ REPLICA_QUERY_RULE_NOT_EXIST(1105, "C1105", "Replica query rule does not
exist."),
- REPLICA_QUERY_RULE_DATA_SOURCE_NOT_EXIST(11006, "C11006", "Data sources %s
in replica query rule do not exist."),
+ REPLICA_QUERY_RULE_DATA_SOURCE_NOT_EXIST(1106, "C1106", "Data sources %s
in replica query rule do not exist."),
- ADD_REPLICA_QUERY_RULE_DATA_SOURCE_EXIST(11007, "C11007", "Can not add
replica query rule, data sources %s in replica query rule already exists."),
+ ADD_REPLICA_QUERY_RULE_DATA_SOURCE_EXIST(1107, "C1107", "Can not add
replica query rule, data sources %s in replica query rule already exists."),
- REPLICA_QUERY_RULE_EXIST(11008, "C11008", "Replica query rule already
exists."),
+ REPLICA_QUERY_RULE_EXIST(1108, "C1108", "Replica query rule already
exists."),
- SHARDING_RULE_NOT_EXIST(11009, "C11009", "Sharding rule does not exist."),
+ SHARDING_RULE_NOT_EXIST(1109, "C1109", "Sharding rule does not exist."),
- SHARDING_TABLE_RULE_EXIST(11010, "C11010", "Sharding table rules: [%s]
already exists."),
+ SHARDING_TABLE_RULE_EXIST(1110, "C1110", "Sharding table rules: [%s]
already exists."),
- SCALING_JOB_NOT_EXIST(12001, "C12001", "Scaling job %s does not exist."),
+ SCALING_JOB_NOT_EXIST(1201, "C1201", "Scaling job %s does not exist."),
- SCALING_OPERATE_FAILED(12009, "C12009", "Scaling Operate Failed: [%s]"),
+ SCALING_OPERATE_FAILED(12009, "C1209", "Scaling Operate Failed: [%s]"),
Review comment:
Maybe you want to change
`12009, "C1209" `
to
`1209, "C1209? `
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]