You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "BUAAserein (via GitHub)" <gi...@apache.org> on 2023/02/10 07:08:19 UTC

[GitHub] [iotdb] BUAAserein commented on a diff in pull request #9023: [IOTDB-5502] Source counters for construct batches in IoTConsensus

BUAAserein commented on code in PR #9023:
URL: https://github.com/apache/iotdb/pull/9023#discussion_r1102356199


##########
consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/Batch.java:
##########
@@ -55,6 +57,9 @@ public void buildIndex() {
 
   public void addTLogEntry(TLogEntry entry) {
     logEntries.add(entry);
+    if (entry.fromWAL) {
+      logEntriesNumFromWAL += 1;

Review Comment:
   ok



##########
consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcher.java:
##########
@@ -65,6 +66,9 @@ public class LogDispatcher {
 
   private boolean stopped = false;
 
+  private final AtomicLong logEntriesFromWAL = new AtomicLong(0);
+  private final AtomicLong logEntriesFromConsensusRequest = new AtomicLong(0);

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org