public void endQuery(long queryId) {
    // remove usage of opened file paths of current thread
    filePathsManager.removeUsedFilesForQuery(queryId);
  }
Whenever the jdbc request is closed normally or abnormally, this method must be invoked. All
read tokens created by this jdbc request must be cleared.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/read/control/QueryResourceManager.java