fix: add 10m to max size
This commit is contained in:
parent
8f985a9be3
commit
c8e2faf76c
|
@ -52,7 +52,7 @@ class TDTestCase(TBase):
|
||||||
's3MigrateEnabled': '1'
|
's3MigrateEnabled': '1'
|
||||||
}
|
}
|
||||||
|
|
||||||
maxFileSize = 128 * 1014 * 1024
|
maxFileSize = (128 + 10) * 1014 * 1024 # add 10M buffer
|
||||||
|
|
||||||
def insertData(self):
|
def insertData(self):
|
||||||
tdLog.info(f"insert data.")
|
tdLog.info(f"insert data.")
|
||||||
|
@ -84,7 +84,7 @@ class TDTestCase(TBase):
|
||||||
fileName = cols[8]
|
fileName = cols[8]
|
||||||
#print(f" filesize={fileSize} fileName={fileName} line={line}")
|
#print(f" filesize={fileSize} fileName={fileName} line={line}")
|
||||||
if fileSize > maxFileSize:
|
if fileSize > maxFileSize:
|
||||||
tdLog.info(f"error, over maxFileSize({maxFileSize}), {line} \n")
|
tdLog.info(f"error, {fileSize} over max size({maxFileSize}) ), {line} \n")
|
||||||
overCnt += 1
|
overCnt += 1
|
||||||
else:
|
else:
|
||||||
tdLog.info(f"{fileName}({fileSize}) check size passed.")
|
tdLog.info(f"{fileName}({fileSize}) check size passed.")
|
||||||
|
@ -114,7 +114,7 @@ class TDTestCase(TBase):
|
||||||
tdLog.info(f"All data files({len(rets)}) size bellow {self.maxFileSize}, check upload to s3 ok.")
|
tdLog.info(f"All data files({len(rets)}) size bellow {self.maxFileSize}, check upload to s3 ok.")
|
||||||
break
|
break
|
||||||
|
|
||||||
tdLog.info(f"loop={loop} no upload {cnt} data files wait 3s retry ...")
|
tdLog.info(f"loop={loop} no upload {overCnt} data files wait 3s retry ...")
|
||||||
if loop == 3:
|
if loop == 3:
|
||||||
sc.dnodeStop(1)
|
sc.dnodeStop(1)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
Loading…
Reference in New Issue