From 1099d91280cf76229ee52d51eadd18892c3537f1 Mon Sep 17 00:00:00 2001 From: Simon Guan Date: Wed, 19 Mar 2025 10:52:02 +0800 Subject: [PATCH] fix: update error codes while balance leader (#30261) --- docs/en/14-reference/09-error-code.md | 1 + docs/zh/14-reference/09-error-code.md | 1 + source/util/src/terror.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/14-reference/09-error-code.md b/docs/en/14-reference/09-error-code.md index 965dc2e40c..e801580583 100644 --- a/docs/en/14-reference/09-error-code.md +++ b/docs/en/14-reference/09-error-code.md @@ -168,6 +168,7 @@ This document details the server error codes that may be encountered when using | 0x8000038B | Index not exist | Does not exist | Confirm if the operation is correct | | 0x80000396 | Database in creating status | Database is being created | Retry | | 0x8000039A | Invalid system table name | Internal error | Report issue | +| 0x8000039F | No VGroup's leader need to be balanced | Perform balance leader operation on VGroup | There is no VGroup's leader needs to be balanced | | 0x800003A0 | Mnode already exists | Already exists | Confirm if the operation is correct | | 0x800003A1 | Mnode not there | Already exists | Confirm if the operation is correct | | 0x800003A2 | Qnode already exists | Already exists | Confirm if the operation is correct | diff --git a/docs/zh/14-reference/09-error-code.md b/docs/zh/14-reference/09-error-code.md index 15daa2c279..9bf3ceb933 100644 --- a/docs/zh/14-reference/09-error-code.md +++ b/docs/zh/14-reference/09-error-code.md @@ -174,6 +174,7 @@ description: TDengine 服务端的错误码列表和详细说明 | 0x8000038B | Index not exist | 不存在 | 确认操作是否正确 | | 0x80000396 | Database in creating status | 数据库正在被创建 | 重试 | | 0x8000039A | Invalid system table name | 内部错误 | 上报 issue | +| 0x8000039F | No VGroup's leader need to be balanced | 执行 balance vgroup leader 操作 | 没有需要进行 balance leader 操作的 VGroup | | 0x800003A0 | Mnode already exists | 已存在 | 确认操作是否正确 | | 0x800003A1 | Mnode not there | 已存在 | 确认操作是否正确 | | 0x800003A2 | Qnode already exists | 已存在 | 确认操作是否正确 | diff --git a/source/util/src/terror.c b/source/util/src/terror.c index f64bd7c6ea..57040fc95c 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -277,7 +277,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_MND_ENCRYPT_NOT_ALLOW_CHANGE, "Encryption is not all TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_WAL_LEVEL, "Invalid option, wal_level 0 should be used with replica 1") TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_DNODE_LIST_FMT, "Invalid dnode list format") TAOS_DEFINE_ERROR(TSDB_CODE_MND_DNODE_LIST_REPEAT, "Duplicate items in the dnode list") -TAOS_DEFINE_ERROR(TSDB_CODE_MND_NO_VGROUP_ON_DB, "No enough vgroup on db to execute") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_NO_VGROUP_ON_DB, "No VGroup's leader need to be balanced") // mnode-node TAOS_DEFINE_ERROR(TSDB_CODE_MND_MNODE_ALREADY_EXIST, "Mnode already exists")