Skip to content

[server] Fix flaky RebalanceManagerITCase.testBuildClusterModel#3306

Open
Kaixuan-Duan wants to merge 1 commit into
apache:mainfrom
Kaixuan-Duan:issue-3063-unstable-rebalance-test
Open

[server] Fix flaky RebalanceManagerITCase.testBuildClusterModel#3306
Kaixuan-Duan wants to merge 1 commit into
apache:mainfrom
Kaixuan-Duan:issue-3063-unstable-rebalance-test

Conversation

@Kaixuan-Duan
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3063

Brief change log

  • Modified RebalanceManager.buildClusterModel() method to gracefully handle buckets without LeaderAndIsr information
  • Replaced the strict checkArgument with a conditional continue statement
  • Added explanatory comments about the transient state handling

This change addresses the race condition that occurs during table creation when leader election is not yet completed. The fix allows the rebalance manager to skip buckets in transient states rather than failing the entire operation.

Tests

./mvnw -pl fluss-server \
-Dtest='RebalanceManagerITCase#testBuildClusterModel' \
-DfailIfNoTests=false \
test

API and Format

Documentation

@Kaixuan-Duan
Copy link
Copy Markdown
Contributor Author

The reason for CI failure seems to be a known flaky test #2974 .

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.

[test] Unstable test RebalanceManagerITCase.testBuildClusterModel

1 participant