This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new db3e72019e5 [fix](test) Fix decommission backend UT bucket count
(#65202)
db3e72019e5 is described below
commit db3e72019e51d70dc52aeb24fc592f2b761a506a
Author: shuke <[email protected]>
AuthorDate: Fri Jul 3 20:56:07 2026 +0800
[fix](test) Fix decommission backend UT bucket count (#65202)
### What problem does this PR solve?
On branch-4.1, `DecommissionTest.testDecommissionBackend` creates
`test.tbl1` with `buckets 64`, but still verifies balance with
`totalReplicaNum = 1 * 2400`.
That makes the initial round-robin tablet distribution `[16, 16, 16,
16]` look unbalanced because `checkBalance()` computes the expected
average from 2400 replicas.
This PR aligns the branch-4.1 test with the master-side handling:
- disable `Config.max_bucket_num_per_partition` for this UT
- restore the DDL to `buckets 2400`
- keep `totalReplicaNum = 1 * 2400` unchanged
### Check List
- [x] `git diff --check HEAD~1..HEAD`
- [ ] `./run-fe-ut.sh --run
org.apache.doris.clone.DecommissionTest#testDecommissionBackend`
(blocked locally before Java UT:
`/Users/keshu/dudu/doris/thirdparty/installed/bin/protoc` is missing)
- [ ] `mvn test -Dcheckstyle.skip=true -DfailIfNoTests=false
-Dtest=org.apache.doris.clone.DecommissionTest#testDecommissionBackend`
(blocked locally before `fe-core`: generated `org.apache.doris.thrift`
classes are missing because generated sources cannot be produced without
`protoc`)
### Release note
None
---
fe/fe-core/src/test/java/org/apache/doris/clone/DecommissionTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/clone/DecommissionTest.java
b/fe/fe-core/src/test/java/org/apache/doris/clone/DecommissionTest.java
index 87bd00e6901..fd73dab7159 100644
--- a/fe/fe-core/src/test/java/org/apache/doris/clone/DecommissionTest.java
+++ b/fe/fe-core/src/test/java/org/apache/doris/clone/DecommissionTest.java
@@ -81,6 +81,7 @@ public class DecommissionTest {
Config.max_scheduling_tablets = 10000;
Config.schedule_batch_size = 10000;
Config.disable_balance = true;
+ Config.max_bucket_num_per_partition = 0;
// 4 backends:
// 127.0.0.1
// 127.0.0.2
@@ -144,7 +145,7 @@ public class DecommissionTest {
// test colocate tablet repair
String createStr = "create table test.tbl1\n"
+ "(k1 date, k2 int)\n"
- + "distributed by hash(k2) buckets 64\n"
+ + "distributed by hash(k2) buckets 2400\n"
+ "properties\n"
+ "(\n"
+ " \"replication_num\" = \"1\"\n"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]