[
https://issues.apache.org/jira/browse/HDDS-17979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154350#comment-18154350
]
Aleksei Ieshin commented on HDDS-17979:
---------------------------------------
I checked the protos that OM receives from SCM. One of them is
{{NodeTopology}}, which is used for inner nodes:
{code:java}
message NodeTopology {
optional string name = 1;
optional string location = 2;
optional uint32 cost = 3;
optional uint32 level = 4;
}
{code}
As you can see, it includes {{cost}} and {{level}} values. I'm wondering
whether OM could collect the costs at each level when building its own
{{NetworkTopologyImpl}} from this data, and then validate them against the
costs defined in OM's schema. For now, we can just log a error if the values
don't match.
> OM's and SCM's schema costs may differ
> --------------------------------------
>
> Key: HDDS-17979
> URL: https://issues.apache.org/jira/browse/HDDS-17979
> Project: Apache Ozone
> Issue Type: Improvement
> Components: OM
> Reporter: Tsz-wo Sze
> Priority: Major
>
> When reviewing HDDS-17555., Claude pointed out that the linked path uses
> InnerNode.getCost() (which may come from SCM's proto, InnerNodeImpl line
> ~508). The location path uses the local schemaManager.getCost(level). If OM's
> and SCM's schema costs ever differ, a mixed linked/unlinked list could sort
> inconsistently.
> What should we do for such case?
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]