fix log archive checkpoint issuing LIST and TAGGING requests too frequently when delete mode is tagging

This commit is contained in:
LoLolobster
2024-08-16 07:17:56 +00:00
committed by ob-robot
parent f1845ce8e9
commit 315a2dd5ec
11 changed files with 132 additions and 48 deletions

View File

@ -245,17 +245,17 @@ int TestArchiveCheckpointMgr::test_write_and_read_checkpoint(const ObStorageType
uint64_t checkpoint = 0;
if (OB_FAIL(mgr.init(root_path, OB_STR_CHECKPOINT_FILE_NAME, ObBackupFileSuffix::ARCHIVE, &storage_info_))) {
LOG_WARN("failed to init checkpoint mgr", K(ret), K(root_path));
} else if (OB_FAIL(mgr.write(10))) {
} else if (OB_FAIL(mgr.write(10, 9))) {
LOG_WARN("failed to write files", K(ret), K(root_path));
} else if (OB_FAIL(mgr.write(9))) {
} else if (OB_FAIL(mgr.write(9, 8))) {
LOG_WARN("failed to write files", K(ret), K(root_path));
} else if (OB_FAIL(mgr.read(checkpoint))) {
LOG_WARN("failed to read files", K(ret));
} else if (checkpoint != 10) {
ret = OB_ERROR;
} else if (OB_FAIL(mgr.write(100))) {
} else if (OB_FAIL(mgr.write(100, 99))) {
LOG_WARN("failed to write files", K(ret), K(root_path));
} else if (OB_FAIL(mgr.write(50))) {
} else if (OB_FAIL(mgr.write(50, 49))) {
LOG_WARN("failed to write files", K(ret), K(root_path));
} else if (OB_FAIL(mgr.read(checkpoint))) {
LOG_WARN("failed to read files", K(ret));