[
https://issues.apache.org/jira/browse/FLINK-37501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18034714#comment-18034714
]
Dmitriy Linevich edited comment on FLINK-37501 at 11/1/25 9:02 AM:
-------------------------------------------------------------------
[~panyuepeng]
Can you check?
was (Author: lda-dima):
[~panyuepeng]
> 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)