[ 
https://issues.apache.org/jira/browse/RATIS-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16167159#comment-16167159
 ] 

Jing Zhao commented on RATIS-107:
---------------------------------

I think one state machine managing all the storage containers can be the case 
for ozone, but not a general case. For example, if we want to use multiple raft 
groups to replicate different shards for a database, we can have multiple state 
machines there. In that case, {{reinitialize}} as a RPC cannot access/include 
all the information we want, and we should not trigger the new raft group 
creation from the raft protocol level.

I will finish a partial patch these days which converts the reinitialize to a 
local API. 

> Restrict reinitialize to be from/to an empty group
> --------------------------------------------------
>
>                 Key: RATIS-107
>                 URL: https://issues.apache.org/jira/browse/RATIS-107
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>         Attachments: r107_20170816.patch, r107_20170822.patch, 
> r107_20170909.patch
>
>
> In order to avoid servers being accidentally reinitialized incorrectly, we 
> propose that reinitialize must be applied from an empty group to a non-empty 
> group, or from a non-empty group to an empty group.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to