Caideyipi commented on code in PR #12723:
URL: https://github.com/apache/iotdb/pull/12723#discussion_r1639113842
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java:
##########
@@ -1076,35 +1124,54 @@ private class RequestExecutor {
// An ordered set that buffers transfer requests' TCommitId, whose length
is not larger than
// PIPE_CONSENSUS_PIPELINE_SIZE.
// Here we use set is to avoid duplicate events being received in some
special cases
- private final TreeSet<TCommitId> reqExecutionOrderBuffer;
+ private final TreeSet<RequestMeta> reqExecutionOrderBuffer;
private final Lock lock;
private final Condition condition;
- private long onSyncedCommitIndex = -1;
+ private final PipeConsensusReceiverMetrics metric;
+ private long onSyncedCommitIndex = 0;
private int connectorRebootTimes = 0;
+ private int WALEventCount = 0;
+ private int tsFileEventCount = 0;
Review Comment:
Better use volatile here because these two are got by the metrics framework.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]