This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 1d6e2f96768 [fix](feut) fix TabletRepairAndBalanceTest (#31653)
1d6e2f96768 is described below
commit 1d6e2f96768ad0345f7f947017fefa134baada7e
Author: yujun <[email protected]>
AuthorDate: Mon Mar 4 18:57:02 2024 +0800
[fix](feut) fix TabletRepairAndBalanceTest (#31653)
---
.../test/java/org/apache/doris/clone/TabletRepairAndBalanceTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/clone/TabletRepairAndBalanceTest.java
b/fe/fe-core/src/test/java/org/apache/doris/clone/TabletRepairAndBalanceTest.java
index 0417a525b8b..356d8ed6422 100644
---
a/fe/fe-core/src/test/java/org/apache/doris/clone/TabletRepairAndBalanceTest.java
+++
b/fe/fe-core/src/test/java/org/apache/doris/clone/TabletRepairAndBalanceTest.java
@@ -287,12 +287,12 @@ public class TabletRepairAndBalanceTest {
String alterStr2 = "alter table test.tbl1 modify partition p1"
+ " set (\"replication_allocation\" = \"tag.location.zone1: 1,
tag.location.zone2: 2\");";
ExceptionChecker.expectThrowsNoException(() -> alterTable(alterStr2));
+ Thread.sleep(5000);
Partition p1 = tbl.getPartition("p1");
ReplicaAllocation p1ReplicaAlloc =
tbl.getPartitionInfo().getReplicaAllocation(p1.getId());
Assert.assertEquals(3, p1ReplicaAlloc.getTotalReplicaNum());
Assert.assertEquals(Short.valueOf((short) 1),
p1ReplicaAlloc.getReplicaNumByTag(tag1));
Assert.assertEquals(Short.valueOf((short) 2),
p1ReplicaAlloc.getReplicaNumByTag(tag2));
- ExceptionChecker.expectThrows(UserException.class, () ->
tbl.checkReplicaAllocation());
// check backend get() methods
SystemInfoService infoService = Env.getCurrentSystemInfo();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]