[
https://issues.apache.org/jira/browse/RATIS-924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17100792#comment-17100792
]
Shashikant Banerjee commented on RATIS-924:
-------------------------------------------
Currently, even if a raft group is removed, the raft log directory is not
cleaned up. As a result, when datanode restarts it still reinitializes the raft
group as it finds the raft group dir intact. I think we should do the following:
1) Add an config to selectively delete/retain the raft group dir on group remove
2) If the deleteDirectory config is set to false, it should rename the dir so
that the next restart, reinitialisation doesn't happen
> rename raft group dir on disk when remove group is invoked
> ----------------------------------------------------------
>
> Key: RATIS-924
> URL: https://issues.apache.org/jira/browse/RATIS-924
> Project: Ratis
> Issue Type: Bug
> Reporter: runzhiwang
> Assignee: runzhiwang
> Priority: Major
> Attachments: screenshot-1.png
>
>
> !screenshot-1.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)