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

Hanisha Koneru edited comment on RATIS-624 at 8/10/20, 7:48 PM:
----------------------------------------------------------------

{quote}I have been reading Ratis code in the last several days. Right now my 
thought is, we gonna need add pause/unpause (should be only one API though) to 
RaftServerProtocol interface. So RaftServer that implements RaftServerProtocol 
will implement pause/unpause.
{quote}
Yes that sounds about right.
{quote}After this is done. In Ozone, when a OM Ratis server is lagging behind, 
I guess a person can use a client to pause that server, ask the server to 
install snapshot, and unpause it.
{quote}
In Ozone, once an OM realizes that it is lagging behind, it would call this 
RaftServer#pause and then install the snapshot. It should not need a client to 
tell it to pause the Ratis server. Install snapshot in OM happens automatically 
when required.


was (Author: hanishakoneru):
{quote}I have been reading Ratis code in the last several days. Right now my 
thought is, we gonna need add pause/unpause (should be only one API though) to 
RaftServerProtocol interface. So RaftServer that implements RaftServerProtocol 
will implement pause/unpause.
{quote}
Yes that sounds about right.
{quote}After this is done. In Ozone, when a OM Ratis server is lagging behind, 
I guess a person can use a client to pause that server, ask the server to 
install snapshot, and unpause it.
{quote}
In Ozone, once an OM realizes that it is lagging behind, it would call this 
RaftServer#pause and then install the snapshot. It should not need a client to 
tell it to pause the server. Install snapshot in OM happens automatically when 
required.

> RaftServer should support pause/ unpause in its LifeCycle state
> ---------------------------------------------------------------
>
>                 Key: RATIS-624
>                 URL: https://issues.apache.org/jira/browse/RATIS-624
>             Project: Ratis
>          Issue Type: Task
>            Reporter: Hanisha Koneru
>            Assignee: Rui Wang
>            Priority: Major
>              Labels: ozone
>             Fix For: 1.1.0
>
>
> This Jira aims to add support to RaftServer to support pause and unpause to 
> its state. When paused, the RaftServer should not accept any incoming append 
> log entries.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to