This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new f3ebf521b78 Optimized the error log for database inconsistency when 
adjusting max region group num
f3ebf521b78 is described below

commit f3ebf521b78c957f1fb7a9f45cc41398df9f0031
Author: Caideyipi <[email protected]>
AuthorDate: Tue Dec 31 09:46:51 2024 +0800

    Optimized the error log for database inconsistency when adjusting max 
region group num
---
 .../iotdb/confignode/persistence/schema/ClusterSchemaInfo.java      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/schema/ClusterSchemaInfo.java
 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/schema/ClusterSchemaInfo.java
index 847c791351d..069c5d99400 100644
--- 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/schema/ClusterSchemaInfo.java
+++ 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/schema/ClusterSchemaInfo.java
@@ -471,8 +471,10 @@ public class ClusterSchemaInfo implements 
SnapshotProcessor {
       }
       result.setCode(TSStatusCode.SUCCESS_STATUS.getStatusCode());
     } catch (final MetadataException e) {
-      LOGGER.error(ERROR_NAME, e);
-      result.setCode(TSStatusCode.DATABASE_NOT_EXIST.getStatusCode());
+      LOGGER.info(
+          "Database inconsistency detected when adjusting max region group 
count, message: {}, will be corrected by the following adjusting plans",
+          e.getMessage());
+      result.setCode(e.getErrorCode()).setMessage(e.getMessage());
     } finally {
       databaseReadWriteLock.writeLock().unlock();
     }

Reply via email to