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

Lokesh Jain commented on HDDS-1868:
-----------------------------------

ContainerStateMachine already has an api called notifyLeader which notifies the 
state machine that the server has been elected as leader. We can use that api 
to trigger pipeline report from leader. For followers we will either need to 
add another api or leverage the notifyLeader to notify about elected leader to 
the follower datanode. This would require change in Ratis.

> Ozone pipelines should be marked as ready only after the leader election is 
> complete
> ------------------------------------------------------------------------------------
>
>                 Key: HDDS-1868
>                 URL: https://issues.apache.org/jira/browse/HDDS-1868
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Datanode, SCM
>    Affects Versions: 0.4.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Siddharth Wagle
>            Priority: Major
>             Fix For: 0.5.0
>
>         Attachments: HDDS-1868.01.patch, HDDS-1868.02.patch
>
>
> Ozone pipeline on restart start in allocated state, they are moved into open 
> state after all the pipeline have reported to it. However this potentially 
> can lead into an issue where the pipeline is still not ready to accept any 
> incoming IO operations.
> The pipelines should be marked as ready only after the leader election is 
> complete and leader is ready to accept incoming IO.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to