[ 
https://issues.apache.org/jira/browse/RATIS-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Andika updated RATIS-1913:
-------------------------------
    Summary: Assert that primary peer should be the first peer in RoutingTable  
(was: Assert that primary node should be the first node in RoutingTable)

> Assert that primary peer should be the first peer in RoutingTable
> -----------------------------------------------------------------
>
>                 Key: RATIS-1913
>                 URL: https://issues.apache.org/jira/browse/RATIS-1913
>             Project: Ratis
>          Issue Type: Sub-task
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Minor
>
> While implementing HDDS-9392, I incorrectly updated the first node in 
> `RoutingTable` so that it does not point to the same node in 
> `DataStreamClientImpl#dataStreamServer`. This causes some issues that took a 
> while to debug due to the lack of assertion.
> To prevent this in the future, let's setup an assertion in 
> `DataStreamClientImpl#stream` to throw exception if the first node in 
> `RoutingTable` is not equal to `DataStreamClientImpl#dataStreamServer`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to