print error log when replay log failed last for long time
This commit is contained in:
@ -820,8 +820,13 @@ int ObLogReplayService::do_replay_task_(ObLogReplayTask *replay_task,
|
||||
replay_status->dec_pending_task(replay_task->log_size_);
|
||||
}
|
||||
} else if (OB_FAIL(ls_adapter_->replay(replay_task))) {
|
||||
if (replay_task->retry_cost_ > 60 * 1000 *1000 &&
|
||||
REACH_TIME_INTERVAL(1 * 1000 * 1000)) {
|
||||
CLOG_LOG(ERROR, "ls do replay retry failed last for long time", K(ret), KPC(replay_task));
|
||||
} else {
|
||||
CLOG_LOG(WARN, "ls do replay failed", K(ret), KPC(replay_task));
|
||||
}
|
||||
}
|
||||
if (OB_SUCC(ret) && need_replay) {
|
||||
if (replay_task->is_post_barrier_) {
|
||||
if (OB_FAIL(replay_status->set_post_barrier_finished(replay_task->lsn_))) {
|
||||
|
||||
Reference in New Issue
Block a user