This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new d89789efcca [200~fix unstable TabletRepairAndBalanceTest~ (#34031)
d89789efcca is described below
commit d89789efcca00cc532956aa7857c28d9684ed75a
Author: yujun <[email protected]>
AuthorDate: Wed Apr 24 21:31:37 2024 +0800
[200~fix unstable TabletRepairAndBalanceTest~ (#34031)
---
fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java | 4 ++++
.../test/java/org/apache/doris/clone/TabletRepairAndBalanceTest.java | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java
index 7084b6090a7..7d65b6b95a2 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java
@@ -699,6 +699,10 @@ public class Tablet extends MetaObject implements Writable
{
* LOW: delay Config.tablet_repair_delay_factor_second * 3;
*/
public boolean readyToBeRepaired(SystemInfoService infoService,
TabletSchedCtx.Priority priority) {
+ if (FeConstants.runningUnitTest) {
+ return true;
+ }
+
if (priority == Priority.VERY_HIGH) {
return true;
}
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 2f04034f763..dfdc6c54451 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
@@ -105,9 +105,11 @@ public class TabletRepairAndBalanceTest {
FeConstants.runningUnitTest = true;
System.out.println(runningDir);
FeConstants.runningUnitTest = true;
- FeConstants.tablet_checker_interval_ms = 1000;
+ FeConstants.tablet_checker_interval_ms = 100;
Config.tablet_repair_delay_factor_second = 1;
Config.colocate_group_relocate_delay_second = 1;
+ Config.schedule_slot_num_per_hdd_path = 1000;
+ Config.schedule_slot_num_per_ssd_path = 1000;
Config.disable_balance = true;
// 5 backends:
// 127.0.0.1
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]