[ https://issues.apache.org/jira/browse/FLINK-37501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitriy Linevich updated FLINK-37501: ------------------------------------- Description: History server use incorrect url to jobmanager logs for job. Reproduce scenario: * start history server with following config {code:java} jobmanager.archive.fs.dir: file:///tmp/jobs # Monitor the following directories for completed jobs historyserver.archive.fs.dir: file:///tmp/jobs # Refresh every 10 seconds historyserver.archive.fs.refresh-interval: 10000 historyserver.web.tmpdir: file:///tmp/historyj # HistoryServer will replace <jobid> with the relevant job id historyserver.log.jobmanager.url-pattern: http://my.log-browsing.url/<jobid> {code} * need to have 2 or more jobs in history * open first job page * open 'completed jobs' page * open second job page (in url for logs used job id of first job). it will be correct if you refresh the page. Suggestion for fix: need to move gettin log url from [init step|https://github.com/apache/flink/blob/f3d96815a1698bcecc5cbe9b179b2a1a97389b08/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts#L86] to [jobDetail update handling step|https://github.com/apache/flink/blob/f3d96815a1698bcecc5cbe9b179b2a1a97389b08/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts#L130] was: History server use incorrect url to jobmanager logs for job. Reproduce scenario: * start history server with following config {code:java} jobmanager.archive.fs.dir: file:///tmp/jobs # Monitor the following directories for completed jobs historyserver.archive.fs.dir: file:///tmp/jobs # Refresh every 10 seconds historyserver.archive.fs.refresh-interval: 10000 historyserver.web.tmpdir: file:///tmp/historyj # HistoryServer will replace <jobid> with the relevant job id historyserver.log.jobmanager.url-pattern: http://my.log-browsing.url/<jobid> {code} * need to have 2 or more jobs in history * open first job page * open 'completed jobs' page * open second job page (in url for logs used job id of first job). it will be correct if you refresh the page. !Screenshot from 2025-03-18 11-54-03.png! Suggestion for fix: need to move gettin log url from [init step|https://github.com/apache/flink/blob/f3d96815a1698bcecc5cbe9b179b2a1a97389b08/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts#L86] to [jobDetail update handling step|https://github.com/apache/flink/blob/f3d96815a1698bcecc5cbe9b179b2a1a97389b08/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts#L130] > Incorrect url for jobmanager log on history server > -------------------------------------------------- > > Key: FLINK-37501 > URL: https://issues.apache.org/jira/browse/FLINK-37501 > Project: Flink > Issue Type: Bug > Components: Runtime / Web Frontend > Reporter: Dmitriy Linevich > Priority: Minor > Labels: pull-request-available > > History server use incorrect url to jobmanager logs for job. > Reproduce scenario: > * start history server with following config > {code:java} > jobmanager.archive.fs.dir: file:///tmp/jobs > # Monitor the following directories for completed jobs > historyserver.archive.fs.dir: file:///tmp/jobs > # Refresh every 10 seconds > historyserver.archive.fs.refresh-interval: 10000 > historyserver.web.tmpdir: file:///tmp/historyj > # HistoryServer will replace <jobid> with the relevant job id > historyserver.log.jobmanager.url-pattern: http://my.log-browsing.url/<jobid> > {code} > * need to have 2 or more jobs in history > * open first job page > * open 'completed jobs' page > * open second job page (in url for logs used job id of first job). it will > be correct if you refresh the page. > Suggestion for fix: need to move gettin log url from [init > step|https://github.com/apache/flink/blob/f3d96815a1698bcecc5cbe9b179b2a1a97389b08/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts#L86] > to [jobDetail update handling > step|https://github.com/apache/flink/blob/f3d96815a1698bcecc5cbe9b179b2a1a97389b08/flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts#L130] -- This message was sent by Atlassian Jira (v8.20.10#820010)