You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/08/26 09:05:26 UTC
[iotdb] 01/01: change response code to WRITE_PROCESS_REJECT when limitation is triggered by wal size
This is an automated email from the ASF dual-hosted git repository.
xingtanzjr pushed a commit to branch xingtanzjr/change_response_wal
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 11ecb2c319ff053d4613241010265f69de32b588
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Fri Aug 26 17:05:09 2022 +0800
change response code to WRITE_PROCESS_REJECT when limitation is triggered by wal size
---
.../org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java
index 619e9fb32d..0488daf658 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java
@@ -127,7 +127,7 @@ public class MultiLeaderServerImpl {
!stateMachineCondition.await(
config.getReplication().getThrottleTimeOutMs(), TimeUnit.MILLISECONDS);
if (timeout) {
- return RpcUtils.getStatus(TSStatusCode.READ_ONLY_SYSTEM_ERROR);
+ return RpcUtils.getStatus(TSStatusCode.WRITE_PROCESS_REJECT);
}
} catch (InterruptedException e) {
logger.error("Failed to throttle down because ", e);