You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/11/14 15:43:27 UTC

[GitHub] [iotdb] qiaojialin opened a new pull request, #7985: [IOTDB-4498] Update StatusCode to the latest

qiaojialin opened a new pull request, #7985:
URL: https://github.com/apache/iotdb/pull/7985

   https://iotdb.apache.org/zh/UserGuide/Master/API/Status-Codes.html


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] sonarcloud[bot] commented on pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#issuecomment-1316252018

   SonarCloud Quality Gate failed.&nbsp; &nbsp; [![Quality Gate failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/failed-16px.png 'Quality Gate failed')](https://sonarcloud.io/dashboard?id=apache_incubator-iotdb&pullRequest=7985)
   
   [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG)  
   [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY)  
   [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT)  
   [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL)
   
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/0-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list) [0.0% Coverage](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list)  
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list)
   
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] qiaojialin commented on a diff in pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on code in PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#discussion_r1023761140


##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|

Review Comment:
   fixed



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] sonarcloud[bot] commented on pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#issuecomment-1314903110

   SonarCloud Quality Gate failed.&nbsp; &nbsp; [![Quality Gate failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/failed-16px.png 'Quality Gate failed')](https://sonarcloud.io/dashboard?id=apache_incubator-iotdb&pullRequest=7985)
   
   [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG)  
   [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY)  
   [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT)  
   [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL)
   
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/0-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list) [0.0% Coverage](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list)  
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list)
   
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] CRZbulabula commented on a diff in pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
CRZbulabula commented on code in PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#discussion_r1023411644


##########
service-rpc/src/main/java/org/apache/iotdb/rpc/TSStatusCode.java:
##########
@@ -22,169 +22,148 @@
 import java.util.HashMap;
 import java.util.Map;
 
+/**
+ * When update this class, remember to update the following files
+ *
+ * <p>docs/UserGuide/API/Status-Codes.md
+ *
+ * <p>docs/zh/UserGuide/API/Status-Codes.md
+ */
 public enum TSStatusCode {
   SUCCESS_STATUS(200),
   STILL_EXECUTING_STATUS(201),
-  INVALID_HANDLE_STATUS(202),
   INCOMPATIBLE_VERSION(203),
 
-  NODE_DELETE_FAILED_ERROR(298),
-  ALIAS_ALREADY_EXIST_ERROR(299),
-  PATH_ALREADY_EXIST_ERROR(300),
-  PATH_NOT_EXIST_ERROR(301),
-  UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR(302),
+  NODE_DELETE_ERROR(298),
+  ALIAS_ALREADY_EXIST(299),
+  PATH_ALREADY_EXIST(300),
   METADATA_ERROR(303),
-  TIMESERIES_NOT_EXIST(304),
-  OUT_OF_TTL_ERROR(305),
-  CONFIG_ADJUSTER(306),
-  MERGE_ERROR(307),
+  PATH_NOT_EXIST(304),
+  OUT_OF_TTL(305),
+  COMPACTION_ERROR(307),
   SYSTEM_CHECK_ERROR(308),
-  SYNC_CONNECTION_EXCEPTION(310),
-  DATA_REGION_ERROR(311),
-  STORAGE_GROUP_ERROR(312),
+  SYNC_CONNECTION_ERROR(310),
+  DATABASE_PROCESS_ERROR(311),
   STORAGE_ENGINE_ERROR(313),
   TSFILE_PROCESSOR_ERROR(314),
   PATH_ILLEGAL(315),
   LOAD_FILE_ERROR(316),
-  STORAGE_GROUP_NOT_READY(317),
+  DATABASE_NOT_READY(317),
   ILLEGAL_PARAMETER(318),
   ALIGNED_TIMESERIES_ERROR(319),
   DUPLICATED_TEMPLATE(320),
   UNDEFINED_TEMPLATE(321),
-  STORAGE_GROUP_NOT_EXIST(322),
+  DATABASE_NOT_EXIST(322),
   CONTINUOUS_QUERY_ERROR(323),
   NO_TEMPLATE_ON_MNODE(324),
   DIFFERENT_TEMPLATE(325),
   TEMPLATE_IS_IN_USE(326),
-  TEMPLATE_IMCOMPATIBLE(327),
+  TEMPLATE_INCOMPATIBLE(327),
   SEGMENT_NOT_FOUND(328),
   PAGE_OUT_OF_SPACE(329),
   RECORD_DUPLICATED(330),
   SEGMENT_OUT_OF_SPACE(331),
   SCHEMA_FILE_NOT_EXISTS(332),
   WRITE_AHEAD_LOG_ERROR(333),
-  PIPESINK_ERROR(334),
+  CREATE_PIPE_SINK_ERROR(334),
   PIPE_ERROR(335),
   PIPESERVER_ERROR(336),
   SERIES_OVERFLOW(337),
-  MEASUREMENT_ALREADY_EXIST(338),
-  TEMPLATE_NOT_EXIST(339),
+  TIMESERIES_ALREADY_EXIST(338),
   CREATE_TEMPLATE_ERROR(340),
-  SYNC_FILE_REBASE(341),
+  SYNC_FILE_REDIRECTION_ERROR(341),
   SYNC_FILE_ERROR(342),
   VERIFY_METADATA_ERROR(343),
-  MEASUREMENT_IN_BLACK_LIST(344),
-  COLOSSAL_RECORD(349),
-  SCHEMA_FILE_LOG_CORR(350),
+  TIMESERIES_IN_BLACK_LIST(344),
+  OVERSIZE_RECORD(349),
+  SCHEMA_FILE_REDO_LOG_BROKEN(350),
   TRIGGER_FIRE_ERROR(355),
-  TRIGGER_LOAD_CLASS(360),
+  TRIGGER_LOAD_CLASS_ERROR(360),
   TRIGGER_DOWNLOAD_ERROR(361),
   CREATE_TRIGGER_INSTANCE_ERROR(362),
   ACTIVE_TRIGGER_INSTANCE_ERROR(363),
   DROP_TRIGGER_INSTANCE_ERROR(364),
   UPDATE_TRIGGER_LOCATION_ERROR(365),
 
   UDF_LOAD_CLASS_ERROR(370),
-  UDF_DOWNLOAD_ERROR(371),
   CREATE_FUNCTION_ON_DATANODE_ERROR(372),
   DROP_FUNCTION_ON_DATANODE_ERROR(373),
 
   EXECUTE_STATEMENT_ERROR(400),
   SQL_PARSE_ERROR(401),
   GENERATE_TIME_ZONE_ERROR(402),
   SET_TIME_ZONE_ERROR(403),
-  NOT_STORAGE_GROUP_ERROR(404),
   QUERY_NOT_ALLOWED(405),
-  AST_FORMAT_ERROR(406),
   LOGICAL_OPERATOR_ERROR(407),
   LOGICAL_OPTIMIZE_ERROR(408),
-  UNSUPPORTED_FILL_TYPE_ERROR(409),
-  PATH_ERROR(410),
+  UNSUPPORTED_FILL_TYPE(409),
   QUERY_PROCESS_ERROR(411),
   WRITE_PROCESS_ERROR(412),
   WRITE_PROCESS_REJECT(413),
-  QUERY_ID_NOT_EXIST(414),
-  SNAPSHOT_DIR_NOT_LEGAL(415),
   SEMANTIC_ERROR(416),
-  TSFILE_RUNTIME_ERROR(417),
+  LOAD_PIECE_OF_TSFILE_ERROR(417),
 
-  UNSUPPORTED_INDEX_FUNC_ERROR(421),
-  UNSUPPORTED_INDEX_TYPE_ERROR(422),
+  UNSUPPORTED_INDEX_TYPE(422),
 
   MEMORY_NOT_ENOUGH(423),
 
   INTERNAL_SERVER_ERROR(500),
   CLOSE_OPERATION_ERROR(501),
-  READ_ONLY_SYSTEM_ERROR(502),
-  DISK_SPACE_INSUFFICIENT_ERROR(503),
+  READ_ONLY_SYSTEM(502),
+  DISK_SPACE_INSUFFICIENT(503),
   START_UP_ERROR(504),
   SHUT_DOWN_ERROR(505),
   MULTIPLE_ERROR(506),
-  SESSION_EXPIRED(507),
   TSBLOCK_SERIALIZE_ERROR(508),
 
-  WRONG_LOGIN_PASSWORD_ERROR(600),
-  NOT_LOGIN_ERROR(601),
-  NO_PERMISSION_ERROR(602),
+  WRONG_LOGIN_PASSWORD(600),
+  NOT_LOGIN(601),
+  NO_PERMISSION(602),
   UNINITIALIZED_AUTH_ERROR(603),
-  EXECUTE_PERMISSION_EXCEPTION_ERROR(604),
-  USER_NOT_EXIST_ERROR(605),
-  ROLE_NOT_EXIST_ERROR(606),
-  AUTHENTICATION_ERROR(607),
-  INVALIDATE_PERMISSION_CACHE_ERROR(608),
+  EXECUTE_PERMISSION_ERROR(604),
+  USER_NOT_EXIST(605),
+  ROLE_NOT_EXIST(606),
+  AUTHENTICATION_FAILED(607),
+  CLEAR_PERMISSION_CACHE_ERROR(608),
 
   // cluster-related errors
-  PARTITION_NOT_READY(700),
   TIME_OUT(701),
-  NO_LEADER(702),
   UNSUPPORTED_OPERATION(703),
-  NODE_READ_ONLY(704),
-  CONSISTENCY_FAILURE(705),
   NO_CONNECTION(706),
   NEED_REDIRECTION(707),
-  PARSE_LOG_ERROR(708),
-  ALL_RETRY_FAILED(709),
+  ALL_RETRY_ERROR(709),
   MIGRATE_REGION_ERROR(710),
   CREATE_REGION_ERROR(711),
   DELETE_REGION_ERROR(712),
-  CACHE_UPDATE_FAIL(713),
-  NODE_DESERIALIZE_ERROR(714),
+  PARTITION_CACHE_UPDATE_ERROR(713),
+  DESERIALIZE_PIECE_OF_TSFILE_ERROR(714),
   CONSENSUS_NOT_INITIALIZED(715),
 
   // configuration
-  CONFIG_ERROR(800),
+  CONFIGURATION_ERROR(800),
 
   // ConfigNode response
   DATANODE_ALREADY_REGISTERED(901),
-  SET_STORAGE_GROUP_FAILED(902),
-  STORAGE_GROUP_ALREADY_EXISTS(903),
-  NOT_ENOUGH_DATA_NODE(904),
+  DATABASE_ALREADY_EXISTS(903),
+  NOT_ENOUGH_DATANODE(904),
   ERROR_GLOBAL_CONFIG(905),
-  APPLY_CONFIGNODE_FAILED(906),
-  REGISTER_CONFIGNODE_FAILED(907),
-  REMOVE_CONFIGNODE_FAILED(908),
-  REMOVE_CONFIGNODE_DUPLICATION(909),
-  STOP_CONOFIGNODE_FAILED(910),
-  PERSISTENCE_FAILURE(911),
+  ADD_CONFIGNODE_ERROR(906),
+  REMOVE_CONFIGNODE_ERROR(907),
   DATANODE_NOT_EXIST(912),
-  DUPLICATE_REMOVE(913),
-  REQUEST_SIZE_EXCEED(914),
-  REGION_MIGRATE_FAILED(915),
-  LACK_REPLICATION(916),
-  DATANODE_STOP_ERROR(917),
-  REGION_LEADER_CHANGE_FAILED(918),
-  REMOVE_DATANODE_FAILED(919),
+  DATANODE_NO_LARGER_THAN_REPLICATION(916),

Review Comment:
   This StatusCode can be merged with `NOT_ENOUGH_DATANODE`



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] qiaojialin commented on a diff in pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on code in PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#discussion_r1023445550


##########
service-rpc/src/main/java/org/apache/iotdb/rpc/TSStatusCode.java:
##########
@@ -22,169 +22,148 @@
 import java.util.HashMap;
 import java.util.Map;
 
+/**
+ * When update this class, remember to update the following files
+ *
+ * <p>docs/UserGuide/API/Status-Codes.md
+ *
+ * <p>docs/zh/UserGuide/API/Status-Codes.md
+ */
 public enum TSStatusCode {
   SUCCESS_STATUS(200),
   STILL_EXECUTING_STATUS(201),
-  INVALID_HANDLE_STATUS(202),
   INCOMPATIBLE_VERSION(203),
 
-  NODE_DELETE_FAILED_ERROR(298),
-  ALIAS_ALREADY_EXIST_ERROR(299),
-  PATH_ALREADY_EXIST_ERROR(300),
-  PATH_NOT_EXIST_ERROR(301),
-  UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR(302),
+  NODE_DELETE_ERROR(298),
+  ALIAS_ALREADY_EXIST(299),
+  PATH_ALREADY_EXIST(300),
   METADATA_ERROR(303),
-  TIMESERIES_NOT_EXIST(304),
-  OUT_OF_TTL_ERROR(305),
-  CONFIG_ADJUSTER(306),
-  MERGE_ERROR(307),
+  PATH_NOT_EXIST(304),
+  OUT_OF_TTL(305),
+  COMPACTION_ERROR(307),
   SYSTEM_CHECK_ERROR(308),
-  SYNC_CONNECTION_EXCEPTION(310),
-  DATA_REGION_ERROR(311),
-  STORAGE_GROUP_ERROR(312),
+  SYNC_CONNECTION_ERROR(310),
+  DATABASE_PROCESS_ERROR(311),
   STORAGE_ENGINE_ERROR(313),
   TSFILE_PROCESSOR_ERROR(314),
   PATH_ILLEGAL(315),
   LOAD_FILE_ERROR(316),
-  STORAGE_GROUP_NOT_READY(317),
+  DATABASE_NOT_READY(317),
   ILLEGAL_PARAMETER(318),
   ALIGNED_TIMESERIES_ERROR(319),
   DUPLICATED_TEMPLATE(320),
   UNDEFINED_TEMPLATE(321),
-  STORAGE_GROUP_NOT_EXIST(322),
+  DATABASE_NOT_EXIST(322),
   CONTINUOUS_QUERY_ERROR(323),
   NO_TEMPLATE_ON_MNODE(324),
   DIFFERENT_TEMPLATE(325),
   TEMPLATE_IS_IN_USE(326),
-  TEMPLATE_IMCOMPATIBLE(327),
+  TEMPLATE_INCOMPATIBLE(327),
   SEGMENT_NOT_FOUND(328),
   PAGE_OUT_OF_SPACE(329),
   RECORD_DUPLICATED(330),
   SEGMENT_OUT_OF_SPACE(331),
   SCHEMA_FILE_NOT_EXISTS(332),
   WRITE_AHEAD_LOG_ERROR(333),
-  PIPESINK_ERROR(334),
+  CREATE_PIPE_SINK_ERROR(334),
   PIPE_ERROR(335),
   PIPESERVER_ERROR(336),
   SERIES_OVERFLOW(337),
-  MEASUREMENT_ALREADY_EXIST(338),
-  TEMPLATE_NOT_EXIST(339),
+  TIMESERIES_ALREADY_EXIST(338),
   CREATE_TEMPLATE_ERROR(340),
-  SYNC_FILE_REBASE(341),
+  SYNC_FILE_REDIRECTION_ERROR(341),
   SYNC_FILE_ERROR(342),
   VERIFY_METADATA_ERROR(343),
-  MEASUREMENT_IN_BLACK_LIST(344),
-  COLOSSAL_RECORD(349),
-  SCHEMA_FILE_LOG_CORR(350),
+  TIMESERIES_IN_BLACK_LIST(344),
+  OVERSIZE_RECORD(349),
+  SCHEMA_FILE_REDO_LOG_BROKEN(350),
   TRIGGER_FIRE_ERROR(355),
-  TRIGGER_LOAD_CLASS(360),
+  TRIGGER_LOAD_CLASS_ERROR(360),
   TRIGGER_DOWNLOAD_ERROR(361),
   CREATE_TRIGGER_INSTANCE_ERROR(362),
   ACTIVE_TRIGGER_INSTANCE_ERROR(363),
   DROP_TRIGGER_INSTANCE_ERROR(364),
   UPDATE_TRIGGER_LOCATION_ERROR(365),
 
   UDF_LOAD_CLASS_ERROR(370),
-  UDF_DOWNLOAD_ERROR(371),
   CREATE_FUNCTION_ON_DATANODE_ERROR(372),
   DROP_FUNCTION_ON_DATANODE_ERROR(373),
 
   EXECUTE_STATEMENT_ERROR(400),
   SQL_PARSE_ERROR(401),
   GENERATE_TIME_ZONE_ERROR(402),
   SET_TIME_ZONE_ERROR(403),
-  NOT_STORAGE_GROUP_ERROR(404),
   QUERY_NOT_ALLOWED(405),
-  AST_FORMAT_ERROR(406),
   LOGICAL_OPERATOR_ERROR(407),
   LOGICAL_OPTIMIZE_ERROR(408),
-  UNSUPPORTED_FILL_TYPE_ERROR(409),
-  PATH_ERROR(410),
+  UNSUPPORTED_FILL_TYPE(409),
   QUERY_PROCESS_ERROR(411),
   WRITE_PROCESS_ERROR(412),
   WRITE_PROCESS_REJECT(413),
-  QUERY_ID_NOT_EXIST(414),
-  SNAPSHOT_DIR_NOT_LEGAL(415),
   SEMANTIC_ERROR(416),
-  TSFILE_RUNTIME_ERROR(417),
+  LOAD_PIECE_OF_TSFILE_ERROR(417),
 
-  UNSUPPORTED_INDEX_FUNC_ERROR(421),
-  UNSUPPORTED_INDEX_TYPE_ERROR(422),
+  UNSUPPORTED_INDEX_TYPE(422),
 
   MEMORY_NOT_ENOUGH(423),
 
   INTERNAL_SERVER_ERROR(500),
   CLOSE_OPERATION_ERROR(501),
-  READ_ONLY_SYSTEM_ERROR(502),
-  DISK_SPACE_INSUFFICIENT_ERROR(503),
+  READ_ONLY_SYSTEM(502),
+  DISK_SPACE_INSUFFICIENT(503),
   START_UP_ERROR(504),
   SHUT_DOWN_ERROR(505),
   MULTIPLE_ERROR(506),
-  SESSION_EXPIRED(507),
   TSBLOCK_SERIALIZE_ERROR(508),
 
-  WRONG_LOGIN_PASSWORD_ERROR(600),
-  NOT_LOGIN_ERROR(601),
-  NO_PERMISSION_ERROR(602),
+  WRONG_LOGIN_PASSWORD(600),
+  NOT_LOGIN(601),
+  NO_PERMISSION(602),
   UNINITIALIZED_AUTH_ERROR(603),
-  EXECUTE_PERMISSION_EXCEPTION_ERROR(604),
-  USER_NOT_EXIST_ERROR(605),
-  ROLE_NOT_EXIST_ERROR(606),
-  AUTHENTICATION_ERROR(607),
-  INVALIDATE_PERMISSION_CACHE_ERROR(608),
+  EXECUTE_PERMISSION_ERROR(604),
+  USER_NOT_EXIST(605),
+  ROLE_NOT_EXIST(606),
+  AUTHENTICATION_FAILED(607),
+  CLEAR_PERMISSION_CACHE_ERROR(608),
 
   // cluster-related errors
-  PARTITION_NOT_READY(700),
   TIME_OUT(701),
-  NO_LEADER(702),
   UNSUPPORTED_OPERATION(703),
-  NODE_READ_ONLY(704),
-  CONSISTENCY_FAILURE(705),
   NO_CONNECTION(706),
   NEED_REDIRECTION(707),
-  PARSE_LOG_ERROR(708),
-  ALL_RETRY_FAILED(709),
+  ALL_RETRY_ERROR(709),
   MIGRATE_REGION_ERROR(710),
   CREATE_REGION_ERROR(711),
   DELETE_REGION_ERROR(712),
-  CACHE_UPDATE_FAIL(713),
-  NODE_DESERIALIZE_ERROR(714),
+  PARTITION_CACHE_UPDATE_ERROR(713),
+  DESERIALIZE_PIECE_OF_TSFILE_ERROR(714),
   CONSENSUS_NOT_INITIALIZED(715),
 
   // configuration
-  CONFIG_ERROR(800),
+  CONFIGURATION_ERROR(800),
 
   // ConfigNode response
   DATANODE_ALREADY_REGISTERED(901),
-  SET_STORAGE_GROUP_FAILED(902),
-  STORAGE_GROUP_ALREADY_EXISTS(903),
-  NOT_ENOUGH_DATA_NODE(904),
+  DATABASE_ALREADY_EXISTS(903),
+  NOT_ENOUGH_DATANODE(904),
   ERROR_GLOBAL_CONFIG(905),
-  APPLY_CONFIGNODE_FAILED(906),
-  REGISTER_CONFIGNODE_FAILED(907),
-  REMOVE_CONFIGNODE_FAILED(908),
-  REMOVE_CONFIGNODE_DUPLICATION(909),
-  STOP_CONOFIGNODE_FAILED(910),
-  PERSISTENCE_FAILURE(911),
+  ADD_CONFIGNODE_ERROR(906),
+  REMOVE_CONFIGNODE_ERROR(907),
   DATANODE_NOT_EXIST(912),
-  DUPLICATE_REMOVE(913),
-  REQUEST_SIZE_EXCEED(914),
-  REGION_MIGRATE_FAILED(915),
-  LACK_REPLICATION(916),
-  DATANODE_STOP_ERROR(917),
-  REGION_LEADER_CHANGE_FAILED(918),
-  REMOVE_DATANODE_FAILED(919),
+  DATANODE_NO_LARGER_THAN_REPLICATION(916),

Review Comment:
   Merge to NO_ENOUGH_DATANODE



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] qiaojialin commented on a diff in pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on code in PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#discussion_r1023763520


##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|
+|907|REMOVE_CONFIGNODE_ERROR|Remove ConfigNode failed|
+|912|DATANODE_NOT_EXIST|DataNode not exist error|

Review Comment:
   won't do



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] qiaojialin merged pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
qiaojialin merged PR #7985:
URL: https://github.com/apache/iotdb/pull/7985


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] sonarcloud[bot] commented on pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#issuecomment-1314619813

   SonarCloud Quality Gate failed.&nbsp; &nbsp; [![Quality Gate failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/failed-16px.png 'Quality Gate failed')](https://sonarcloud.io/dashboard?id=apache_incubator-iotdb&pullRequest=7985)
   
   [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG)  
   [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY)  
   [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT)  
   [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL)
   
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/0-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list) [0.0% Coverage](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list)  
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list)
   
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] qiaojialin commented on a diff in pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on code in PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#discussion_r1023763143


##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|
+|907|REMOVE_CONFIGNODE_ERROR|Remove ConfigNode failed|
+|912|DATANODE_NOT_EXIST|DataNode not exist error|
+|917|DATANODE_STOP_FAILED|DataNode stop error|

Review Comment:
   fix



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] qiaojialin commented on a diff in pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on code in PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#discussion_r1023763143


##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|
+|907|REMOVE_CONFIGNODE_ERROR|Remove ConfigNode failed|
+|912|DATANODE_NOT_EXIST|DataNode not exist error|
+|917|DATANODE_STOP_FAILED|DataNode stop error|

Review Comment:
   fixed



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] sonarcloud[bot] commented on pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#issuecomment-1316722992

   SonarCloud Quality Gate failed.&nbsp; &nbsp; [![Quality Gate failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/failed-16px.png 'Quality Gate failed')](https://sonarcloud.io/dashboard?id=apache_incubator-iotdb&pullRequest=7985)
   
   [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=BUG)  
   [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=VULNERABILITY)  
   [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=SECURITY_HOTSPOT)  
   [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL) [2 Code Smells](https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&pullRequest=7985&resolved=false&types=CODE_SMELL)
   
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/0-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list) [0.0% Coverage](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_coverage&view=list)  
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_incubator-iotdb&pullRequest=7985&metric=new_duplicated_lines_density&view=list)
   
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] Beyyes commented on a diff in pull request #7985: [IOTDB-4498] Update StatusCode to the latest

Posted by GitBox <gi...@apache.org>.
Beyyes commented on code in PR #7985:
URL: https://github.com/apache/iotdb/pull/7985#discussion_r1023534809


##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|

Review Comment:
   ```suggestion
   |906|ADD_CONFIGNODE_ERROR|Add ConfigNode error|
   ```



##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|
+|907|REMOVE_CONFIGNODE_ERROR|Remove ConfigNode failed|
+|912|DATANODE_NOT_EXIST|DataNode not exist error|
+|917|DATANODE_STOP_FAILED|DataNode stop error|

Review Comment:
   ```suggestion
   |917|DATANODE_STOP_ERROR|DataNode stop error|
   ```



##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|
+|907|REMOVE_CONFIGNODE_ERROR|Remove ConfigNode failed|
+|912|DATANODE_NOT_EXIST|DataNode not exist error|

Review Comment:
   ```suggestion
   |912|DATANODE_NOT_EXIST_ERROR|DataNode not exist error|
   ```



##########
server/src/main/java/org/apache/iotdb/db/service/thrift/impl/DataNodeInternalRPCServiceImpl.java:
##########
@@ -1188,13 +1189,13 @@ private TSStatus transferLeader(ConsensusGroupId regionId, Peer newLeaderPeer) {
     } else if (regionId instanceof SchemaRegionId) {
       resp = SchemaRegionConsensusImpl.getInstance().transferLeader(regionId, newLeaderPeer);
     } else {
-      status.setCode(TSStatusCode.REGION_LEADER_CHANGE_FAILED.getStatusCode());
+      status.setCode(TSStatusCode.REGION_LEADER_CHANGE_ERROR.getStatusCode());

Review Comment:
   do we put v. at the front? so it should be `CHANGE_REGION_LEADER_ERROR`?



##########
docs/UserGuide/API/Status-Codes.md:
##########
@@ -46,64 +46,122 @@ Here is a list of Status Code and related message:
 |:--|:---|:---|
 |200|SUCCESS_STATUS||
 |201|STILL_EXECUTING_STATUS||
-|202|INVALID_HANDLE_STATUS||
 |203|INCOMPATIBLE_VERSION|Incompatible version|
-|298|NODE_DELETE_FAILED_ERROR|Failed while deleting node|
-|299|ALIAS_ALREADY_EXIST_ERROR|Alias already exists|
-|300|PATH_ALREADY_EXIST_ERROR|Path already exists|
-|301|PATH_NOT_EXIST_ERROR|Path does not exist|
-|302|UNSUPPORTED_FETCH_METADATA_OPERATION_ERROR|Unsupported fetch metadata operation|
+|298|NODE_DELETE_ERROR|Failed while deleting node|
+|299|ALIAS_ALREADY_EXIST|Alias already exists|
+|300|PATH_ALREADY_EXIST|Path already exists|
 |303|METADATA_ERROR|Meet error when dealing with metadata|
-|305|OUT_OF_TTL_ERROR|Insertion time is less than TTL time bound|
-|306|CONFIG_ADJUSTER|IoTDB system load is too large|
-|307|MERGE_ERROR|Meet error while merging|
+|304|PATH_NOT_EXIST|Path does not exist|
+|305|OUT_OF_TTL|Insertion time is less than TTL time bound|
+|307|COMPACTION_ERROR|Meet error while merging|
 |308|SYSTEM_CHECK_ERROR|Meet error while system checking|
-|309|SYNC_DEVICE_OWNER_CONFLICT_ERROR|Sync device owners conflict|
-|310|SYNC_CONNECTION_EXCEPTION|Meet error while sync connecting|
-|311|STORAGE_GROUP_PROCESSOR_ERROR|Database processor related error|
-|312|STORAGE_GROUP_ERROR|Database related error|
+|310|SYNC_CONNECTION_ERROR|Meet error while sync connecting|
+|311|DATABASE_PROCESS_ERROR|Database processor related error|
 |313|STORAGE_ENGINE_ERROR|Storage engine related error|
 |314|TSFILE_PROCESSOR_ERROR|TsFile processor related error|
 |315|PATH_ILLEGAL|Illegal path|
 |316|LOAD_FILE_ERROR|Meet error while loading file|
-|317|STORAGE_GROUP_NOT_READY| The database is in recovery mode, not ready fore accepting read/write operation|
+|317|DATABASE_NOT_READY|The database is in recovery mode, not ready fore accepting read/write operation|
+|318|ILLEGAL_PARAMETER|Parameter is illegal|
+|319|ALIGNED_TIMESERIES_ERROR|Meet error in aligned timeseries|
+|320|DUPLICATED_TEMPLATE|Schema template is duplicated|
+|321|UNDEFINED_TEMPLATE|Schema template is not defined|
+|322|DATABASE_NOT_EXIST|Database does not exist|
+|323|CONTINUOUS_QUERY_ERROR|Continuous query error|
+|324|NO_TEMPLATE_ON_MNODE|No schema template on current MNode|
+|325|DIFFERENT_TEMPLATE|Template is not consistent|
+|326|TEMPLATE_IS_IN_USE|Template is in use|
+|327|TEMPLATE_INCOMPATIBLE|Template is not compatible|
+|328|SEGMENT_NOT_FOUND|Segment not found|
+|329|PAGE_OUT_OF_SPACE|No enough space on schema page|
+|330|RECORD_DUPLICATED|Record is duplicated|
+|331|SEGMENT_OUT_OF_SPACE|No enough space on schema segment|
+|332|SCHEMA_FILE_NOT_EXISTS|SchemaFile does not exist|
+|333|WRITE_AHEAD_LOG_ERROR|WAL error|
+|334|CREATE_PIPE_SINK_ERROR|Failed to create a PIPE sink|
+|335|PIPE_ERROR|PIPE error|
+|336|PIPESERVER_ERROR|PIPE server error|
+|337|SERIES_OVERFLOW|Series number exceeds the threshold|
+|340|CREATE_TEMPLATE_ERROR|Create schema template error|
+|341|SYNC_FILE_REDIRECTION_ERROR|Sync TsFile redirection error|
+|342|SYNC_FILE_ERROR|Sync TsFile error|
+|343|VERIFY_METADATA_ERROR|Meet error in validate timeseries schema|
+|344|TIMESERIES_IN_BLACK_LIST|Timeseries is being deleted|
+|349|OVERSIZE_RECORD|Size of record exceeds the threshold of page of SchemaFile|
+|350|SCHEMA_FILE_REDO_LOG_BROKEN|SchemaFile redo log has broken|
+|355|TRIGGER_FIRE_ERROR|Error when firing trigger|
+|360|TRIGGER_LOAD_CLASS_ERROR|Error when load class of trigger|
+|361|TRIGGER_DOWNLOAD_ERROR|Error when download trigger from ConfigNode|
+|362|CREATE_TRIGGER_INSTANCE_ERROR|Error when create trigger instance|
+|363|ACTIVE_TRIGGER_INSTANCE_ERROR|Error when activate trigger instance|
+|364|DROP_TRIGGER_INSTANCE_ERROR|Error when drop trigger instance|
+|365|UPDATE_TRIGGER_LOCATION_ERROR|Error when move stateful trigger to new datanode|
+|370|UDF_LOAD_CLASS_ERROR|Error when loading UDF class|
+|371|UDF_DOWNLOAD_ERROR|DataNode cannot download UDF from ConfigNode|
+|372|CREATE_FUNCTION_ON_DATANODE_ERROR|Error when create UDF on DataNode|
+|373|DROP_FUNCTION_ON_DATANODE_ERROR|Error when drop a UDF on DataNode|
 |400|EXECUTE_STATEMENT_ERROR|Execute statement error|
 |401|SQL_PARSE_ERROR|Meet error while parsing SQL|
 |402|GENERATE_TIME_ZONE_ERROR|Meet error while generating time zone|
 |403|SET_TIME_ZONE_ERROR|Meet error while setting time zone|
-|404|NOT_STORAGE_GROUP_ERROR|Operating object is not a database|
 |405|QUERY_NOT_ALLOWED|Query statements are not allowed error|
-|406|AST_FORMAT_ERROR|AST format related error|
 |407|LOGICAL_OPERATOR_ERROR|Logical operator related error|
 |408|LOGICAL_OPTIMIZE_ERROR|Logical optimize related error|
-|409|UNSUPPORTED_FILL_TYPE_ERROR|Unsupported fill type related error|
-|410|PATH_ERROR|Path related error|
+|409|UNSUPPORTED_FILL_TYPE|Unsupported fill type related error|
 |411|QUERY_PROCESS_ERROR|Query process related error|
 |412|WRITE_PROCESS_ERROR|Writing data related error|
 |413|WRITE_PROCESS_REJECT|Writing data rejected error|
-|414|QUERY_ID_NOT_EXIST|Kill query with non existent queryId|
+|416|SEMANTIC_ERROR|SQL semantic error|
+|417|LOAD_PIECE_OF_TSFILE_ERROR|Error when load a piece of TsFile when loading|
+|423|MEMORY_NOT_ENOUGH|Not enough memory for task execution in MPP|
 |500|INTERNAL_SERVER_ERROR|Internal server error|
 |501|CLOSE_OPERATION_ERROR|Meet error in close operation|
-|502|READ_ONLY_SYSTEM_ERROR|Operating system is read only|
-|503|DISK_SPACE_INSUFFICIENT_ERROR|Disk space is insufficient|
+|502|READ_ONLY_SYSTEM|Operating system is read only|
+|503|DISK_SPACE_INSUFFICIENT|Disk space is insufficient|
 |504|START_UP_ERROR|Meet error while starting up|
 |505|SHUT_DOWN_ERROR|Meet error while shutdown|
 |506|MULTIPLE_ERROR|Meet error when executing multiple statements|
-|507|SESSION_EXPIRED|Session expired|
-|600|WRONG_LOGIN_PASSWORD_ERROR|Username or password is wrong|
-|601|NOT_LOGIN_ERROR|Has not logged in|
-|602|NO_PERMISSION_ERROR|No permissions for this operation, please add privilege|
+|508|TSBLOCK_SERIALIZE_ERROR|TsBlock serialization error|
+|600|WRONG_LOGIN_PASSWORD|Username or password is wrong|
+|601|NOT_LOGIN|Has not logged in|
+|602|NO_PERMISSION|No permissions for this operation, please add privilege|
 |603|UNINITIALIZED_AUTH_ERROR|Uninitialized authorizer|
-|700|PARTITION_NOT_READY|Partition table not ready|
+|605|USER_NOT_EXIST|User does not exist|
+|606|ROLE_NOT_EXIST|Role does not exist|
+|607|AUTHENTICATION_FAILED|Error in authentication|
+|608|CLEAR_PERMISSION_CACHE_ERROR|Error when clear the permission cache|
 |701|TIME_OUT|Operation timeout|
-|702|NO_LEADER|No leader|
 |703|UNSUPPORTED_OPERATION|Unsupported operation|
-|704|NODE_READ_ONLY|Node read only|
-|705|CONSISTENCY_FAILURE|Consistency check failure|
 |706|NO_CONNECTION|Can not get connection error|
 |707|NEED_REDIRECTION|Need direction|
-|800|CONFIG_ERROR|Configuration error|
+|709|ALL_RETRY_ERROR|All retry failed|
+|710|MIGRATE_REGION_ERROR|Error when migrate region|
+|711|CREATE_REGION_ERROR|Create region error|
+|712|DELETE_REGION_ERROR|Delete region error|
+|713|PARTITION_CACHE_UPDATE_ERROR|Update partition cache failed|
+|714|DESERIALIZE_PIECE_OF_TSFILE_ERROR|Error when deserialize a piece of TsFile|
+|715|CONSENSUS_NOT_INITIALIZED|Consensus is not initialized and cannot provide service|
+|800|CONFIGURATION_ERROR|Configuration error|
+|901|DATANODE_ALREADY_REGISTERED|DataNode already registered in cluster|
+|903|DATABASE_ALREADY_EXISTS|Database already exist|
+|904|NO_ENOUGH_DATANODE|The number of DataNode is not enough, cannot remove DataNode or create enough replication|
+|905|ERROR_GLOBAL_CONFIG|Global config in cluster does not consistent|
+|906|ADD_CONFIGNODE_ERROR|Add ConfigNode failed|
+|907|REMOVE_CONFIGNODE_ERROR|Remove ConfigNode failed|

Review Comment:
   ```suggestion
   |907|REMOVE_CONFIGNODE_ERROR|Remove ConfigNode error|
   ```



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org