Haiming Zhu created IOTDB-4222:
----------------------------------

             Summary: Create data region repeatedly
                 Key: IOTDB-4222
                 URL: https://issues.apache.org/jira/browse/IOTDB-4222
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Engine
    Affects Versions: 0.13.0, 0.14.0
            Reporter: Haiming Zhu
            Assignee: Haiming Zhu
         Attachments: cause.png

One data region maybe created repeatedly when the storage group is created and 
deleted concurrently.

The procedure is (threads are conccurent):
 # thread-1 creates one storage group
 # thread-2 writes some data
 # thread-3 deletes this storage group
 # thread-4 creates this storage group again

The root cause is as below:

!cause.png!

When the first thread creates one storage group and the data region hasn't been 
ready, the second thread deletes this strorage group and the third thread 
creates this storage group again. The two create procedures's mnodes are 
different, so it's unsafe to synchronize mnode.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to