suxiaogang223 opened a new pull request, #69138:
URL: https://github.com/apache/doris/pull/69138
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: The randomized FederationBackendPolicy tests can generate
one backend but request two distinct local hosts. The sampling loop then never
terminates, leaving FE UT running indefinitely.
Cap the host count by the available backend count in both tests. Run each
with 1, 2, and 99 backends to cover the single-backend boundary on every
execution while preserving the split-assignment assertions.
### Release note
None
### Check List (For Author)
- Test
- [x] Unit Test: FederationBackendPolicyTest passed (16 tests); FE
Checkstyle passed.
- Behavior changed:
- [x] No. Test-only change.
- Does this need documentation?
- [x] No.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]