Skip to content

[FLINK-40097][historyserver] Introduce Lazy Loading for HistoryServer - #28685

Merged
reswqa merged 3 commits into
apache:masterfrom
chenzihao5:FLINK-40097-lazy-loading-of-hs
Jul 22, 2026
Merged

[FLINK-40097][historyserver] Introduce Lazy Loading for HistoryServer#28685
reswqa merged 3 commits into
apache:masterfrom
chenzihao5:FLINK-40097-lazy-loading-of-hs

Conversation

@chenzihao5

Copy link
Copy Markdown
Contributor

What is the purpose of the change

Introduce a lazy-loading mode that loads archive details on demand, improving archive load times and enhancing the user experience.

Brief change log

  • Introduce three configurations:
    • historyserver.archive.load.mode to specify the loading mode, supports EAGER(default) and LAZY
    • historyserver.lazy.fetch.executor.common.pool-size and historyserver.lazy.fetch.executor.individual.pool-size to control the loading thread pool
  • Add PENDING, OVERVIEW_PARSING, OVERVIEW_CREATED, DETAIL_PARSING in ArchiveEventType.
  • Support lazy-loading in org.apache.flink.runtime.webmonitor.history.AbstractHistoryServerHandler#loadResource.

Verifying this change

This change added tests and can be verified as follows:

  • Added unit tests for lazy-loading mode, verify the different stages when lazy loading archive by BlockingArchiveStorage.
  • Added unit tests for other functions that are included in this feature.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? docs

Was generative AI tooling used to co-author this PR?
  • Yes (Claude-4.7-Opus 1M Context)

@flinkbot

flinkbot commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Comment thread docs/content/docs/deployment/advanced/historyserver.md Outdated
@chenzihao5
chenzihao5 force-pushed the FLINK-40097-lazy-loading-of-hs branch from 683fc9f to 1339960 Compare July 15, 2026 03:32
@chenzihao5

Copy link
Copy Markdown
Contributor Author

@reswqa Thanks for your review. I have updated the code after resolving the comments.

@chenzihao5
chenzihao5 force-pushed the FLINK-40097-lazy-loading-of-hs branch from 1339960 to 62eb688 Compare July 17, 2026 07:44

@reswqa reswqa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update.

@reswqa
reswqa merged commit d866030 into apache:master Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants