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 7331481e460 [fix](trash) Fix `clean_trash` docker regression case
(#40925)
7331481e460 is described below
commit 7331481e460a82412243544b81293f79f3460b50
Author: deardeng <[email protected]>
AuthorDate: Sat Sep 21 09:21:03 2024 +0800
[fix](trash) Fix `clean_trash` docker regression case (#40925)
---
regression-test/suites/trash_p0/clean_trash.groovy | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/regression-test/suites/trash_p0/clean_trash.groovy
b/regression-test/suites/trash_p0/clean_trash.groovy
index fdfafc4887f..525e8054ce5 100644
--- a/regression-test/suites/trash_p0/clean_trash.groovy
+++ b/regression-test/suites/trash_p0/clean_trash.groovy
@@ -32,13 +32,15 @@ suite("test_clean_trash", "docker") {
options.beConfigs += [
'max_garbage_sweep_interval=2',
'min_garbage_sweep_interval=1',
- 'report_disk_state_interval_seconds=1'
+ 'report_disk_state_interval_seconds=1',
+ 'trash_file_expire_time_sec=600'
]
options.beNum = 3
docker(options) {
+
def checkFunc = { boolean trashZero ->
def succ = false
- for (int i=0; i < 300; ++i) {
+ dockerAwaitUntil(300) {
def bes = sql_return_maparray """show backends"""
succ = bes.every {
if (trashZero) {
@@ -47,10 +49,7 @@ suite("test_clean_trash", "docker") {
return !"0.000".equals((it.TrashUsedCapacity).trim())
}
}
- if (succ) {
- break;
- }
- sleep(1000)
+ succ
}
Assert.assertTrue(succ)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]