public ReadWriteLock getFlushQueryLock() {
    return flushQueryLock;
  }
Return Long.MAX_VALUE if workMemTable is null
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java