You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Ivan Andika (Jira)" <ji...@apache.org> on 2023/10/20 02:51:00 UTC
[jira] [Updated] (RATIS-1913) Assert that primary peers in DataStreamClient and RoutingTable are equal
[ 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 peers in DataStreamClient and RoutingTable are equal (was: Assert that primary peer should be the first peer in RoutingTable)
> Assert that primary peers in DataStreamClient and RoutingTable are equal
> ------------------------------------------------------------------------
>
> 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)