luoluoyuyu commented on code in PR #15411: URL: https://github.com/apache/iotdb/pull/15411#discussion_r2062516034
########## iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/protocol/pipeconsensus/PipeConsensusAsyncConnector.java: ########## @@ -108,6 +110,7 @@ public class PipeConsensusAsyncConnector extends IoTDBConnector implements Conse private IClientManager<TEndPoint, AsyncPipeConsensusServiceClient> asyncTransferClientManager; private PipeConsensusAsyncBatchReqBuilder tabletBatchBuilder; private volatile long currentReplicateProgress = 0; + private final Lock lock = new ReentrantLock(); Review Comment: Since the probability of a thread that has acquired the lock again is higher, please use fair locks. -- 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]
