check start scn of macro redo matched when alloc kv.

This commit is contained in:
obdev
2024-01-10 07:42:54 +00:00
committed by ob-robot
parent 93b7f4e8aa
commit f578fa87fe
5 changed files with 26 additions and 11 deletions

View File

@ -308,8 +308,14 @@ int ObDDLRedoReplayExecutor::do_replay_(ObTabletHandle &tablet_handle)
if (OB_SUCC(ret) && need_replay) {
if (OB_FAIL(ObDDLKVPendingGuard::set_macro_block(tablet_handle.get_obj(), macro_block,
snapshot_version, data_format_version, direct_load_mgr_handle))) {
LOG_WARN("set macro block into ddl kv failed", K(ret), K(tablet_handle), K(macro_block),
K(snapshot_version), K(data_format_version));
if (OB_TASK_EXPIRED == ret) {
need_replay = false;
LOG_INFO("task expired, skip replay the redo", K(ret), K(macro_block), KPC(direct_load_mgr_handle.get_obj()));
ret = OB_SUCCESS;
} else {
LOG_WARN("set macro block into ddl kv failed", K(ret), K(tablet_handle), K(macro_block),
K(snapshot_version), K(data_format_version));
}
}
}
}