Caideyipi commented on code in PR #12723: URL: https://github.com/apache/iotdb/pull/12723#discussion_r1637633960
########## iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java: ########## @@ -1196,12 +1273,15 @@ private TPipeConsensusTransferResp onRequest( if (timeout && reqExecutionOrderBuffer.size() < IOTDB_CONFIG.getPipeConsensusPipelineSize() && reqExecutionOrderBuffer.first() != null - && reqExecutionOrderBuffer.first().equals(tCommitId)) { + && reqExecutionOrderBuffer.first().equals(requestMeta)) { + long startApplyNanos = System.nanoTime(); + metric.recordDispatchWaitingTimer(startApplyNanos - startDispatchNanos); + requestMeta.setStartApplyNanos(startApplyNanos); TPipeConsensusTransferResp resp = loadEvent(req); if (resp != null && resp.getStatus().getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) { Review Comment: What about redirection.... -- 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-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org