Xinyu Tan created IOTDB-3448:
--------------------------------

             Summary: Migrate the logic of deleteRegion onto the consensus 
module
                 Key: IOTDB-3448
                 URL: https://issues.apache.org/jira/browse/IOTDB-3448
             Project: Apache IoTDB
          Issue Type: Improvement
            Reporter: Xinyu Tan
            Assignee: Xinyu Tan


The deletion of a region is used as a raft log to synchronize inside the region.

If the underlying state machine fails to recover to the previous state after 
the restart, NPE problems may occur during the restart.

In addition, executing a raft log that removes itself is very strange for the 
consensus layer because we still end up removing the corresponding region in 
the consensus layer, which is not done in current implementation

So we can move the deleteRegion operation above the consensus layer



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to