Do retry when create direct load memtable failed && Add debug log when finish direct load
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user