提交 c1ff5dd3 编写于 作者: O obdev 提交者: wangzelin.wzl

relax replay done condition in ls migration

上级 4afce610
......@@ -1010,7 +1010,7 @@ int ObStartCompleteMigrationTask::wait_log_replay_sync_()
STORAGE_LOG(WARN, "task is cancelled", K(ret), K(*this));
} else if (OB_FAIL(ls->get_max_decided_log_ts_ns(current_replay_log_ts_ns))) {
LOG_WARN("failed to get current replay log ts", K(ret), KPC(ctx_));
} else if (current_replay_log_ts_ns >= log_sync_scn_) {
} else if (current_replay_log_ts_ns + IS_REPLAY_DONE_THRESHOLD_NS >= log_sync_scn_) {
wait_log_replay_success = true;
const int64_t cost_ts = ObTimeUtility::current_time() - wait_replay_start_ts;
LOG_INFO("wait replay log ts ns success, stop wait", "arg", ctx_->arg_, K(cost_ts));
......
......@@ -188,6 +188,7 @@ private:
int record_server_event_();
private:
static const int64_t IS_REPLAY_DONE_THRESHOLD_NS = 3L * 1000 * 1000 * 1000;
bool is_inited_;
ObLSHandle ls_handle_;
ObLSCompleteMigrationCtx *ctx_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册