Do retry when create direct load memtable failed && Add debug log when finish direct load

This commit is contained in:
ZenoWang
2024-07-29 04:36:36 +00:00
committed by ob-robot
parent 2ea917ad05
commit df5e2671ee
2 changed files with 5 additions and 1 deletions

View File

@ -211,6 +211,10 @@ int ObDDLIncCommitClogCb::on_success()
if (log_basic_.get_lob_meta_tablet_id().is_valid()) {
(void)ls->tablet_freeze(log_basic_.get_lob_meta_tablet_id(), is_sync);
}
FLOG_INFO("Commit Async Tablet Freeze Task by DDL Commit Log",
K(ls_id_),
K(log_basic_.get_tablet_id()),
K(log_basic_.get_lob_meta_tablet_id()));
}
status_.set_ret_code(ret);

View File

@ -135,7 +135,7 @@ int ObDirectLoadTableGuard::acquire_memtable_once_()
}
if (OB_FAIL(ret)) {
if ((OB_ALLOCATE_MEMORY_FAILED == ret || OB_MINOR_FREEZE_NOT_ALLOW == ret) &&
if ((OB_EAGAIN == ret || OB_ALLOCATE_MEMORY_FAILED == ret || OB_MINOR_FREEZE_NOT_ALLOW == ret) &&
(ObClockGenerator::getClock() - start_time < MAX_RETRY_CREATE_MEMTABLE_TIME)) {
ret = OB_SUCCESS;
need_create_new_memtable = true;