You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Shashikant Banerjee (Jira)" <ji...@apache.org> on 2020/05/06 13:20:00 UTC
[jira] [Commented] (RATIS-924) rename raft group dir on disk when
remove group is invoked
[ 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)