fix retry index task core

This commit is contained in:
YoungYang0820
2022-01-05 10:42:50 +08:00
committed by LINxiansheng
parent bfa4cc4e12
commit 8bc16fc202

View File

@ -1335,13 +1335,12 @@ int ObIndexBuilder::submit_build_global_index_task(const ObTableSchema& index_sc
// submit retry task if retryable, otherwise report error
if (OB_EAGAIN == ret || OB_ALLOCATE_MEMORY_FAILED == ret) {
int record_ret = ret;
if (OB_FAIL(GCTX.ob_service_->submit_retry_ghost_index_task(inner_index_schema->get_table_id()))) {
if (OB_FAIL(GCTX.ob_service_->submit_retry_ghost_index_task(index_schema.get_table_id()))) {
LOG_WARN("fail to submit retry ghost index task", K(ret));
ret = OB_TIMEOUT;
} else {
LOG_INFO("submit build global index task fail but fast retryable",
K(record_ret),
K(inner_index_schema->get_table_id()));
LOG_INFO(
"submit build global index task fail but fast retryable", K(record_ret), K(index_schema.get_table_id()));
}
} else if (OB_FAIL(ret)) {
LOG_WARN("submit global index task fail, mark it as timeout", K(ret));