[
https://issues.apache.org/jira/browse/FLINK-31518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703867#comment-17703867
]
Yao Zhang commented on FLINK-31518:
-----------------------------------
Hi [~prabhujoseph] ,
It seems that we can retrieve the web monitor address (including the port) by
calling WebMonitorEndpoint::getServerAddress(). Or we can write the actual port
back to configuration when WebMonitorEndpoint has been successfully started.
But the challenge is, how can we retrieve WebMonitorEndpoint from
HighAvailabilityServicesUtils? And another one is which one is invoked first,
the start of WebMonitorEndpoint or the creation of high available service?
> HighAvailabilityServiceUtils resolves wrong webMonitorAddress in Standalone
> mode
> --------------------------------------------------------------------------------
>
> Key: FLINK-31518
> URL: https://issues.apache.org/jira/browse/FLINK-31518
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Configuration, Runtime / REST
> Affects Versions: 1.16.0, 1.17.0, 1.16.1, 1.17.1
> Reporter: Vineeth Naroju
> Priority: Major
>
> {{HighAvailabilityServiceUtils#createHighAvailabilityServices()}} in
> {{HighAvailabilityMode.NONE}} mode uses
> {{HighAvailabilityServiceUtils#getWebMonitorAddress()}} to get web monitor
> address.
> {{HighAvailabilityServiceUtils#getWebMonitorAddress()}} reads only from
> {{rest.port}} in {{flink-conf.yaml}} . If {{rest.port}} is not enabled, then
> it returns {{0}} port number. It should dynamically fetch port number if
> {{rest.port}} is disabled.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)