fix unit gc blocked by running compaction dag by adding dag_yield

This commit is contained in:
Tsunaou
2023-11-08 13:39:24 +00:00
committed by ob-robot
parent e3c7ed0253
commit b5b2a5f052
8 changed files with 33 additions and 71 deletions

View File

@ -163,12 +163,7 @@ static int advance_checkpoint_by_flush(const uint64_t tenant_id, const share::Ob
}
ob_usleep(CHECK_TIME_INTERVAL);
if (OB_FAIL(share::dag_yield())) {
if (OB_CANCELED == ret) {
LOG_INFO("Cancel this task since the whole dag is canceled", K(ret));
break;
} else {
LOG_WARN("Invalid return value for dag_yield", K(ret));
}
LOG_WARN("fail to yield dag", KR(ret));
}
}
} while (OB_SUCC(ret));
@ -5047,12 +5042,7 @@ int ObLSBackupComplementLogTask::wait_piece_frozen_(const share::ObTenantArchive
LOG_INFO("wait piece frozen", K(piece));
ob_usleep(CHECK_TIME_INTERVAL);
if (OB_FAIL(share::dag_yield())) {
if (OB_CANCELED == ret) {
LOG_INFO("Cancel this task since the whole dag is canceled", K(ret));
break;
} else {
LOG_WARN("Invalid return value for dag_yield", K(ret));
}
LOG_WARN("fail to yield dag", KR(ret));
}
}
} while (OB_SUCC(ret));