smengcl commented on code in PR #11961:
URL: https://github.com/apache/ozone/pull/11961#discussion_r4493275939
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java:
##########
@@ -1586,7 +1586,9 @@ private RPC.Server getRpcServer(OzoneConfiguration conf)
throws IOException {
ReconfigureProtocolService.newReflectiveBlockingService(
reconfigureServerProtocol);
- return startRpcServer(conf, OmUtils.getOmRpcBindAddress(conf,
omNodeRpcAddr), omService,
+ // Read OmConfig from conf: the config field predates loadOMHAConfig,
which copies the per-node bind host.
+ InetSocketAddress bindAddr =
conf.getObject(OmConfig.class).getRpcBindAddress(omNodeRpcAddr);
Review Comment:
Done in e626b0c4c24: the constructor now calls `loadOMHAConfig(conf)` before
`setConfiguration(conf)`, and `getRpcServer` uses the `config` field instead of
creating a new `OmConfig`.
_🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
--
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]