You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2021/05/20 07:26:00 UTC

[jira] [Updated] (HDDS-5256) Fix fall back of config in SCM HA Cluster

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

Bharat Viswanadham updated HDDS-5256:
-------------------------------------
        Parent: HDDS-2823
    Issue Type: Sub-task  (was: Improvement)

> Fix fall back of config in SCM HA Cluster
> -----------------------------------------
>
>                 Key: HDDS-5256
>                 URL: https://issues.apache.org/jira/browse/HDDS-5256
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>
> If a config is appended with serviceId and nodeId use that, else fall back to config. If config is also not defined, fallback to default value.
> *Example:*
> ozone.scm.grpc.port = 9898 is set
> We should use this port for SCM Grpc Service, as there is no port config with serviceid and nodeid defined.
> Current code behavior is if port config with service id and node id not defined read from the default value.
> The problematic code is
> {code:java}
>         String ratisPortKey = ConfUtils.addKeySuffixes(OZONE_SCM_RATIS_PORT_KEY,
>             serviceId, nodeId);
> int ratisPort = conf.getInt(ratisPortKey, OZONE_SCM_RATIS_PORT_DEFAULT);
> {code}
> In this way fix similarly for all rpc services.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org