test: adjust retry times if lock failed

This commit is contained in:
Shengliang Guan 2022-06-24 16:47:12 +08:00
parent e81dcb9bb3
commit e823041cf4
1 changed files with 2 additions and 2 deletions

View File

@ -133,10 +133,10 @@ TdFilePtr dmCheckRunning(const char *dataDir) {
ret = taosLockFile(pFile);
if (ret == 0) break;
terrno = TAOS_SYSTEM_ERROR(errno);
taosMsleep(100);
taosMsleep(1000);
retryTimes++;
dError("failed to lock file:%s since %s, retryTimes:%d", filepath, terrstr(), retryTimes);
} while (retryTimes < 120);
} while (retryTimes < 6);
if (ret < 0) {
terrno = TAOS_SYSTEM_ERROR(errno);