You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Yuan Tian (Jira)" <ji...@apache.org> on 2020/07/23 14:08:00 UTC

[jira] [Created] (IOTDB-817) DeadLock after restarting and show latest timeseries

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)