mychaow commented on a change in pull request #2423:
URL: https://github.com/apache/iotdb/pull/2423#discussion_r552327539



##########
File path: 
server/src/main/java/org/apache/iotdb/db/query/control/QueryFileManager.java
##########
@@ -119,6 +121,9 @@ void addFilePathToMap(long queryId, TsFileResource tsFile, 
boolean isClosed) {
     if (!pathMap.get(queryId).contains(tsFile)) {
       pathMap.get(queryId).add(tsFile);
       FileReaderManager.getInstance().increaseFileReaderReference(tsFile, 
isClosed);
+      logger.warn("{} is read-locked by {}", tsFile, queryId, new Exception());
     }
   }
+
+  private static final Logger logger = 
LoggerFactory.getLogger(QueryFileManager.class);

Review comment:
       may put this to the first line of Class will be better.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to