Merge pull request #27078 from taosdata/case/TD-31176-3.0
fix: restore delete_check.py case
This commit is contained in:
commit
1c6ca34732
|
@ -342,7 +342,7 @@
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/splitVGroup.py -N 3 -n 3
|
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/splitVGroup.py -N 3 -n 3
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/splitVGroupWal.py -N 3 -n 3
|
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/splitVGroupWal.py -N 3 -n 3
|
||||||
,,n,system-test,python3 ./test.py -f 0-others/timeRangeWise.py -N 3
|
,,n,system-test,python3 ./test.py -f 0-others/timeRangeWise.py -N 3
|
||||||
#,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/delete_check.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/delete_check.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/test_hot_refresh_configurations.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/test_hot_refresh_configurations.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/subscribe_stream_privilege.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/subscribe_stream_privilege.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/empty_identifier.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/empty_identifier.py
|
||||||
|
|
|
@ -47,9 +47,9 @@ class TDTestCase:
|
||||||
def compactDatbase(self):
|
def compactDatbase(self):
|
||||||
# compact database
|
# compact database
|
||||||
tdSql.execute(f"compact database {self.dbname}", show=True)
|
tdSql.execute(f"compact database {self.dbname}", show=True)
|
||||||
waitSeconds = 20
|
waitSeconds = 60
|
||||||
if self.waitTranslation(waitSeconds) == False:
|
if self.waitCompacts(waitSeconds) == False:
|
||||||
tdLog.exit(f"translation can not finish after wait {waitSeconds} seconds")
|
tdLog.exit(f"compacts can not finish after wait {waitSeconds} seconds")
|
||||||
return
|
return
|
||||||
|
|
||||||
# check tsdb folder empty
|
# check tsdb folder empty
|
||||||
|
@ -108,6 +108,19 @@ class TDTestCase:
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def waitCompacts(self, waitSeconds):
|
||||||
|
# wait end
|
||||||
|
for i in range(waitSeconds):
|
||||||
|
sql ="show compacts;"
|
||||||
|
rows = tdSql.query(sql)
|
||||||
|
if rows == 0:
|
||||||
|
return True
|
||||||
|
tdLog.info(f"i={i} wait for translation finish ...")
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
# run
|
# run
|
||||||
def run(self):
|
def run(self):
|
||||||
# seed
|
# seed
|
||||||
|
|
Loading…
Reference in New Issue