sreejasahithi opened a new pull request, #9591:
URL: https://github.com/apache/ozone/pull/9591
## What changes were proposed in this pull request?
OzoneManager fails to start in non-HA mode when the following minimal config
is used
```
<property>
<name>ozone.scm.names</name>
<value>host1</value>
</property>
<property>
<name>ozone.om.address</name>
<value>host1:9862</value>
</property>
<property>
<name>ozone.metadata.dirs</name>
<value>/data/ozone/meta</value>
</property>
```
Error: `ERROR om.OzoneManager: Could not initialize OM version
filejava.io.IOException: Failed to get SCM info`
Root Cause:
In non-HA mode, SCMNodeInfo.buildNodeInfo() resolves addresses using
configuration fallback chains. The fallback chains do not include
ozone.scm.names as a final fallback option so when only ozone.scm.names was
configured (without explicit ozone.scm.client.address or
ozone.scm.block.client.address), these lookups returned null, causing
OzoneManager initialization to fail.
This fix adds ozone.scm.names as the final fallback for
scmBlockClientAddress, scmClientAddress, scmSecurityClientAddress
## What is the link to the Apache JIRA
[HDDS-14249](https://issues.apache.org/jira/browse/HDDS-14249)
## How was this patch tested?
This patch was tested locally on a docker non-ha cluster.
Green CI : https://github.com/sreejasahithi/ozone/actions/runs/20706673375
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]