Skip to content

[fix](cloud) Fix ConcurrentModificationException in cloud rebalance - #52013

Merged
gavinchou merged 2 commits into
apache:masterfrom
deardeng:fix-warm-up-rebalance
Jun 25, 2025
Merged

[fix](cloud) Fix ConcurrentModificationException in cloud rebalance#52013
gavinchou merged 2 commits into
apache:masterfrom
deardeng:fix-warm-up-rebalance

Conversation

@deardeng

Copy link
Copy Markdown
Contributor
2025-06-19 15:58:44,191 ERROR (cloud tablet rebalancer|277) [Daemon.run():121] daemon thread got exception. name: cloud tablet rebalancer
java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.checkInflghtWarmUpCacheAsync(CloudTabletRebalancer.java:421) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.runAfterCatalogReady(CloudTabletRebalancer.java:257) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.Daemon.run(Daemon.java:119) ~[doris-fe.jar:1.2-SNAPSHOT]

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

```
2025-06-19 15:58:44,191 ERROR (cloud tablet rebalancer|277) [Daemon.run():121] daemon thread got exception. name: cloud tablet rebalancer
java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.checkInflghtWarmUpCacheAsync(CloudTabletRebalancer.java:421) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.runAfterCatalogReady(CloudTabletRebalancer.java:257) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.Daemon.run(Daemon.java:119) ~[doris-fe.jar:1.2-SNAPSHOT]
```
@deardeng

Copy link
Copy Markdown
ContributorAuthor

run buildall

@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?

@dataroaringdataroaring added dev/3.0.x dev/3.1.x usercase Important user case type label labels Jun 20, 2025
@deardeng

Copy link
Copy Markdown
ContributorAuthor

run buildall

@deardeng

Copy link
Copy Markdown
ContributorAuthor

run feut

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

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

@dataroaringdataroaring 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

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

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@gavinchou
gavinchou merged commit 1d37391 into apache:masterJun 25, 2025
github-actionsBot pushed a commit that referenced this pull request Jun 25, 2025
…#52013)
```
2025-06-19 15:58:44,191 ERROR (cloud tablet rebalancer|277) [Daemon.run():121] daemon thread got exception. name: cloud tablet rebalancer
java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.checkInflghtWarmUpCacheAsync(CloudTabletRebalancer.java:421) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.runAfterCatalogReady(CloudTabletRebalancer.java:257) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.Daemon.run(Daemon.java:119) ~[doris-fe.jar:1.2-SNAPSHOT]
```
github-actionsBot pushed a commit that referenced this pull request Jun 25, 2025
…#52013)
```
2025-06-19 15:58:44,191 ERROR (cloud tablet rebalancer|277) [Daemon.run():121] daemon thread got exception. name: cloud tablet rebalancer
java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.checkInflghtWarmUpCacheAsync(CloudTabletRebalancer.java:421) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.runAfterCatalogReady(CloudTabletRebalancer.java:257) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.Daemon.run(Daemon.java:119) ~[doris-fe.jar:1.2-SNAPSHOT]
```
dataroaring pushed a commit that referenced this pull request Jun 26, 2025
…ud rebalance #52013 (#52309)
Cherry-picked from #52013
Co-authored-by: deardeng <dengxin@selectdb.com>
morrySnow pushed a commit that referenced this pull request Jun 26, 2025
…ud rebalance #52013 (#52310)
Cherry-picked from #52013
Co-authored-by: deardeng <dengxin@selectdb.com>
koarz pushed a commit to koarz/doris that referenced this pull request Jul 3, 2025
…ud rebalance apache#52013 (apache#52309)
Cherry-picked from apache#52013
Co-authored-by: deardeng <dengxin@selectdb.com>
@gavinchougavinchou mentioned this pull request Aug 15, 2025
BiteTheDDDDt pushed a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Sep 1, 2025
apache#4141)
… (apache#52013)
```
2025-06-19 15:58:44,191 ERROR (cloud tablet rebalancer|277) [Daemon.run():121] daemon thread got exception. name: cloud tablet rebalancer
java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.checkInflghtWarmUpCacheAsync(CloudTabletRebalancer.java:421) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.cloud.catalog.CloudTabletRebalancer.runAfterCatalogReady(CloudTabletRebalancer.java:257) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.Daemon.run(Daemon.java:119) ~[doris-fe.jar:1.2-SNAPSHOT]
```
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.clouddev/3.0.7-mergeddev/3.1.0-mergedreviewedusercaseImportant user case type label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@deardeng@hello-stephen@gavinchou@dataroaring@morrySnow