You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/01/06 06:52:32 UTC

[GitHub] [iotdb] jt2594838 commented on a change in pull request #2423: Remove EnvironmentUtil in the cluster module and optimize UT

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



##########
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:
       I added it just to print some logs in tests for debugging, and I will remove it.




----------------------------------------------------------------
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:
users@infra.apache.org