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/15 04:25:51 UTC
[iotdb] branch ml_0815_data_lost created (now d0de0d9273)
This is an automated email from the ASF dual-hosted git repository.
xingtanzjr pushed a change to branch ml_0815_data_lost
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at d0de0d9273 change debug log to info to analyze the root cause of data lost
This branch includes the following new commits:
new d0de0d9273 change debug log to info to analyze the root cause of data lost
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: change debug log to info to analyze the root cause of data lost
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xingtanzjr pushed a commit to branch ml_0815_data_lost
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit d0de0d92732e23207022579be037502286ea951b
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Mon Aug 15 12:25:37 2022 +0800
change debug log to info to analyze the root cause of data lost
---
.../apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java | 2 +-
.../apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java
index 7ee776acda..26d4b0987a 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java
@@ -235,7 +235,7 @@ public class LogDispatcher {
List<TLogBatch> logBatches = new ArrayList<>();
long startIndex = syncStatus.getNextSendingIndex();
long maxIndexWhenBufferedRequestEmpty = startIndex;
- logger.debug("[GetBatch] startIndex: {}", startIndex);
+ logger.info("[GetBatch] startIndex: {}", startIndex);
long endIndex;
if (bufferedRequest.size() <= config.getReplication().getMaxRequestPerBatch()) {
// Use drainTo instead of poll to reduce lock overhead
diff --git a/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java b/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java
index fa7a4aa502..59c17e4609 100644
--- a/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java
+++ b/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java
@@ -180,7 +180,7 @@ public class DataRegionStateMachine extends BaseStateMachine {
Thread.currentThread().interrupt();
}
}
- logger.debug(
+ logger.info(
"region = {}, queue size {}, startSyncIndex = {}, endSyncIndex = {}",
region.getDataRegionId(),
requestCache.size(),