s3/test: default duration to 100 with replicas
This commit is contained in:
parent
0e6493d85d
commit
cd470aa2a6
|
@ -104,7 +104,7 @@ class TDSql:
|
|||
for k, v in kwargs.items():
|
||||
s += f" {k} {v}"
|
||||
if "duration" not in kwargs:
|
||||
s += " duration 300"
|
||||
s += " duration 100"
|
||||
self.cursor.execute(s)
|
||||
s = f'use {dbname}'
|
||||
self.cursor.execute(s)
|
||||
|
|
|
@ -128,6 +128,12 @@ endi
|
|||
if $data21_db != 3000 then # wal_fsync_period
|
||||
return -1
|
||||
endi
|
||||
if $data30_db != 525600m then # s3_keeplocal
|
||||
return -1
|
||||
endi
|
||||
if $data31_db != 1 then # s3_compact
|
||||
return -1
|
||||
endi
|
||||
|
||||
sql drop database db
|
||||
|
||||
|
|
|
@ -62,6 +62,12 @@ class TDTestCase:
|
|||
tdSql.query("show dnode 1 variables like '____debugFlag'")
|
||||
tdSql.checkRows(2)
|
||||
|
||||
tdSql.query("show dnode 1 variables like 's3MigrateEna%'")
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkData(0, 0, 1)
|
||||
tdSql.checkData(0, 1, 's3MigrateEnabled')
|
||||
tdSql.checkData(0, 2, 0)
|
||||
|
||||
def threadTest(self, threadID):
|
||||
print(f"Thread {threadID} starting...")
|
||||
tdsqln = tdCom.newTdSql()
|
||||
|
|
Loading…
Reference in New Issue