[
https://issues.apache.org/jira/browse/HDFS-11597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030500#comment-16030500
]
Tsz Wo Nicholas Sze commented on HDFS-11597:
--------------------------------------------
> What is the semantics of this function ? What does it really do ?
{code}
//RaftClient.java
/** Send reinitialize request to the service. */
RaftClientReply reinitialize(RaftPeer[] serversInNewConf, RaftPeerId server)
throws IOException;
{code}
The client will re-initialize the given server with the pees specified in
serversInNewConf.
This was added by RATIS-86. Before RATIS-86, when a RaftServer starts, it is
initialized with a particular cluster and it cannot join another cluster.
After RATIS-86, when a RaftServer starts, it only initializes an RPC server (so
that it can receive commands) but it does not join any cluster. The
reinitialize(..) method is to reinitialize the server so that it will join a
particular cluster.
> Is this documented anywhere ? or should I look at ratis source code ?
Sorry that the javadoc currently is very simple (will add more details) as
shown above. Please read the source code for the moment.
> Ozone: Add Ratis management API
> -------------------------------
>
> Key: HDFS-11597
> URL: https://issues.apache.org/jira/browse/HDFS-11597
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Attachments: HDFS-11597-HDFS-7240.20170522.patch,
> HDFS-11597-HDFS-7240.20170523.patch, HDFS-11597-HDFS-7240.20170524.patch,
> HDFS-11597-HDFS-7240.20170528b.patch, HDFS-11597-HDFS-7240.20170528.patch,
> HDFS-11597-HDFS-7240.20170529.patch
>
>
> We need APIs to manage Ratis clusters for the following operations:
> - create cluster;
> - close cluster;
> - get members; and
> - update members.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]