Yuan Tian created IOTDB-817:
-------------------------------
Summary: DeadLock after restarting and show latest timeseries
Key: IOTDB-817
URL: https://issues.apache.org/jira/browse/IOTDB-817
Project: Apache IoTDB
Issue Type: Bug
Components: Core/Engine
Reporter: Yuan Tian
Assignee: Yuan Tian
After we restart iotdb, the last cache in MNode won't be cached, so while we do
the `show latest timeseries` query, we will need to read from disk.
While reading from disk, we need to lock the readlock of the corresponding
TsFileLock. However, we forgot to unlock the readLock, so when we do merge,
delete storage group and such operations will need to acquire the writeLock
before actually deleting the tsfile. Then deadlock will happen, the delete
operation will be blocked forever.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)