This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch HighAvailability
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/HighAvailability by this push:
new 2867feb3980 fix according to reviews
2867feb3980 is described below
commit 2867feb3980ac5434e08a96e006d319c87a3e179
Author: JackieTien97 <[email protected]>
AuthorDate: Thu Oct 26 14:14:48 2023 +0800
fix according to reviews
---
.../java/org/apache/iotdb/consensus/iot/client/DispatchLogHandler.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/client/DispatchLogHandler.java
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/client/DispatchLogHandler.java
index cea19fce982..a10d031e91f 100644
---
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/client/DispatchLogHandler.java
+++
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/client/DispatchLogHandler.java
@@ -78,12 +78,13 @@ public class DispatchLogHandler implements
AsyncMethodCallback<TSyncLogEntriesRe
@Override
public void onError(Exception exception) {
+ ++retryCount;
if (logger.isWarnEnabled()) {
logger.warn(
"Can not send {} to peer for {} times {} because {}",
batch,
thread.getPeer(),
- ++retryCount,
+ retryCount,
ExceptionUtils.getRootCause(exception).toString());
}
sleepCorrespondingTimeAndRetryAsynchronous();