Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.13.0, 0.14.0
-
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):
- 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:
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.