Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-4222

Create data region repeatedly when concurrently deleting and creating storage groups

    XMLWordPrintableJSON

Details

    • 2022-8-Cluster

    Description

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

      The procedure is (threads are conccurent):

      1. thread-1 creates one storage group
      2. thread-2 writes some data
      3. thread-3 deletes this storage group
      4. thread-4 creates this storage group again

      The root cause is as below:

      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.

      Attachments

        1. cause.png
          176 kB
          Haiming Zhu

        Activity

          People

            HeimingZ Haiming Zhu
            HeimingZ Haiming Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: