szetszwo commented on a change in pull request #602:
URL: https://github.com/apache/ratis/pull/602#discussion_r807574834
##########
File path: ratis-client/src/main/java/org/apache/ratis/client/api/AdminApi.java
##########
@@ -40,4 +40,7 @@ default RaftClientReply setConfiguration(RaftPeer[]
serversInNewConf) throws IOE
/** Transfer leadership to the given server.*/
RaftClientReply transferLeadership(RaftPeerId newLeader, long timeoutMs)
throws IOException;
+
+ /** Step down the leader.*/
+ RaftClientReply stepDownLeader(RaftPeerId newLeader, long timeoutMs) throws
IOException;
Review comment:
Let's reuse transferLeadership with newLeader==null.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]