och5351 opened a new pull request, #30201:
URL: https://github.com/apache/flink/pull/30201

   ## What is the purpose of the change
   
   The regular JobManager web frontend already caches its static dashboard 
assets under a dedicated `flink-web-ui` subdirectory of its tmpdir 
(`RestHandlerConfiguration`), keeping it separate from anything else. The 
HistoryServer does not follow this: it caches the same assets flat in the root 
of `historyserver.web.tmpdir`, mixed in with the archive data. This PR makes 
the HistoryServer follow the same convention.
   
   <img width="540" height="541" alt="image" 
src="https://github.com/user-attachments/assets/063653f6-b461-4bf3-929a-f68ec3e95d29";
 />
   
   
   
   ## Brief change log
   
   - Added `webUiDir` (`<rootPath>/flink-web-ui`) to 
`AbstractHistoryServerHandler` as the cache location for classloader-fetched 
static assets. `rootPath` itself is unchanged and still enforces the security 
boundary in `responseWithFile`.
   
   ## Verifying this change
   
   - Updated `AbstractHistoryServerHandlerTest` for the new cache path.
   - Manually verified with a real cluster: ran finished/failed/cancelled jobs, 
started both `FILE` and `ROCKSDB` HistoryServer instances (both backends 
introduced by 
[FLIP-584](https://cwiki.apache.org/confluence/spaces/FLINK/pages/430408093/FLIP-584+Support+Pluggable+Storage+Backend+for+HistoryServer)
 / [FLINK-39911](https://issues.apache.org/jira/browse/FLINK-39911), which is 
why I tested each separately) against the same archive directory, and confirmed 
`flink-web-ui/` sits as asibling of the archive data in both tmpdirs —same 
directory name the regular JobManager web frontend uses.
   
   <img width="441" height="542" alt="image" 
src="https://github.com/user-attachments/assets/c601b422-c19a-4072-b358-985ab5305c3a";
 />
   
   
   <img width="515" height="542" alt="image" 
src="https://github.com/user-attachments/assets/8b4679b5-cd37-4fef-875c-ada04ceb498b";
 />
   
   
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (yes / no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes / no)
     - The serializers: (yes / no / don't know)
     - The runtime per-record code paths (performance sensitive): (yes / no / 
don't know)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
     - The S3 file system connector: (yes / no / don't know)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / no)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs 
/ not documented)
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
please
   change the checkbox below to `[X]` and replace the placeholder in the 
"Generated-by"
   line with the tool name and version. Otherwise remove the "Generated-by" 
line.
   See the ASF Generative Tooling Guidance for details:
   https://www.apache.org/legal/generative-tooling.html
   
   You are responsible for the quality and correctness of every change in this 
PR
   regardless of the tooling used. Low-effort AI-generated PRs will be closed. 
See
   AGENTS.md for the full guidance.
   -->
   
   - [ ] Yes (please specify the tool below)
   
   Generated-by: [Tool Name and Version]
   


-- 
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]

Reply via email to