SteveYurongSu commented on code in PR #11532:
URL: https://github.com/apache/iotdb/pull/11532#discussion_r1396630100


##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/pipe/PipeTaskInfo.java:
##########
@@ -80,12 +84,51 @@ private void releaseReadLock() {
 
   private void acquireWriteLock() {
     pipeMetaKeeper.acquireWriteLock();
+    pipeTaskInfoVersion.increaseLatestVersion();
   }
 
   private void releaseWriteLock() {
     pipeMetaKeeper.releaseWriteLock();
   }
 
+  /////////////////////////////// Version ///////////////////////////////
+
+  private class PipeTaskInfoVersion {

Review Comment:
   It is recommended to remove this class from PipeTaskInfo, as Info records 
content that needs to be persisted to the consensus layer. PipeTaskInfoVersion 
can be placed in the PipeTaskCoordinator class (or its package)



-- 
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]

Reply via email to