Skip to content

[fix](cloud) refresh event warmup backends - #62839

Merged
gavinchou merged 1 commit into
apache:masterfrom
liaoxin01:fix-load-event-warmup-be-refresh-pr
Apr 28, 2026
Merged

[fix](cloud) refresh event warmup backends#62839
gavinchou merged 1 commit into
apache:masterfrom
liaoxin01:fix-load-event-warmup-be-refresh-pr

Conversation

@liaoxin01

@liaoxin01liaoxin01 commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

Refresh the source BE address list before each event-driven cloud warm-up notification so newly added BEs can receive the SET_JOB event.

Add a unit test covering refresh of event-driven source backend addresses.

Testing

  • git diff --check
  • mvn -pl fe-core -am -Dtest=org.apache.doris.cloud.CloudWarmUpJobTest -DfailIfNoTests=false test

CopilotAI review requested due to automatic review settings April 25, 2026 15:13
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

gavinchou
gavinchou previously approved these changes Apr 25, 2026

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR ensures event-driven cloud warm-up notifications always target an up-to-date source backend list, so newly added BEs receive the SET_JOB event.

Changes:

  • Refresh source BE thrift address list before each event-driven warm-up notification.
  • Add a unit test intended to verify event-driven BE address refresh behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
fe/fe-core/src/main/java/org/apache/doris/cloud/CloudWarmUpJob.javaRefreshes BE address mapping prior to sending event-driven warm-up RPCs; resets cached client/address state.
fe/fe-core/src/test/java/org/apache/doris/cloud/CloudWarmUpJobTest.javaAdds a new unit test for refreshing event-driven source backend addresses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadfe/fe-core/src/test/java/org/apache/doris/cloud/CloudWarmUpJobTest.java Outdated
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Apr 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@liaoxin01

Copy link
Copy Markdown
ContributorAuthor

run buildall

@liaoxin01
liaoxin01force-pushed the fix-load-event-warmup-be-refresh-pr branch from 447b47a to 105551dCompareApril 25, 2026 15:51
@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label Apr 25, 2026
@liaoxin01

Copy link
Copy Markdown
ContributorAuthor

Addressed review comments:

  • Rewrote CloudWarmUpJobTest to use Mockito/Mockito-inline instead of JMockit.
  • Reduced event-driven BE refresh INFO log to address counts and moved full address maps to DEBUG.

Verified with:

  • git diff --check
  • mvn -pl fe-core -am -Dtest=org.apache.doris.cloud.CloudWarmUpJobTest -DfailIfNoTests=false test

@liaoxin01

Copy link
Copy Markdown
ContributorAuthor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 69.23% (9/13) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 0.00% (0/13) 🎉
Increment coverage report
Complete coverage report

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Apr 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@gavinchougavinchou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gavinchou
gavinchou merged commit d61e8eb into apache:masterApr 28, 2026
33 of 34 checks passed
github-actionsBot pushed a commit that referenced this pull request Apr 28, 2026
Refresh the source BE address list before each event-driven cloud warm-up notification so newly added BEs can receive the SET_JOB event.
Add a unit test covering refresh of event-driven source backend addresses.
github-actionsBot pushed a commit that referenced this pull request Apr 28, 2026
Refresh the source BE address list before each event-driven cloud warm-up notification so newly added BEs can receive the SET_JOB event.
Add a unit test covering refresh of event-driven source backend addresses.
yiguolei pushed a commit that referenced this pull request May 1, 2026
Cherry-picked from #62839
Co-authored-by: Xin Liao <liaoxin@selectdb.com>
yiguolei pushed a commit that referenced this pull request May 10, 2026
Cherry-picked from #62839
Co-authored-by: Xin Liao <liaoxin@selectdb.com>
@yiguoleiyiguolei mentioned this pull request May 20, 2026
@morningmanmorningman mentioned this pull request Jun 3, 2026
zhaorongsheng pushed a commit to zhaorongsheng/doris that referenced this pull request Jun 4, 2026
Refresh the source BE address list before each event-driven cloud warm-up notification so newly added BEs can receive the SET_JOB event.
Add a unit test covering refresh of event-driven source backend addresses.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.dev/4.0.6-mergeddev/4.1.1-mergedreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@liaoxin01@hello-stephen@gavinchou@bobhan1@yiguolei