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


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.java:
##########
@@ -97,21 +97,21 @@ public PipeTsFileInsertionEvent(
     this.isGeneratedByPipe = isGeneratedByPipe;
 
     isClosed = new AtomicBoolean(resource.isClosed());
-    // register close listener if TsFile is not closed
+    // Register close listener if TsFile is not closed
     if (!isClosed.get()) {
       final TsFileProcessor processor = resource.getProcessor();
       if (processor != null) {
         processor.addCloseFileListener(
             o -> {
               synchronized (isClosed) {
-                isTsFileFormatValid = o.isTsFileFormatValidForPipe();
+                isTsFileFormatValid.set(o.isTsFileFormatValidForPipe());
                 isClosed.set(true);
                 isClosed.notifyAll();
               }
             });
       }
     }
-    // check again after register close listener in case TsFile is closed 
during the process
+    // Check again after register close listener in case TsFile is closed 
during the process
     isClosed.set(resource.isClosed());
   }

Review Comment:
   if (processor != null) {
     isTsFileFormatValid.set(processor.isTsFileFormatValidForPipe());
   }



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