[bugfix] range of _rebuild_replica_log_lag_threshold should not be +∞

This commit is contained in:
yyy-hust
2023-05-26 07:52:45 +00:00
committed by ob-robot
parent c572f3bf9e
commit 379dbe0109
3 changed files with 4 additions and 3 deletions

View File

@ -98,9 +98,11 @@ int ObLSAdapter::replay(ObLogReplayTask *replay_task)
}
replay_task->replay_cost_ = ObTimeUtility::fast_current_time() - start_ts;
if (replay_task->replay_cost_ > MAX_SINGLE_REPLAY_WARNING_TIME_THRESOLD) {
const bool is_meta_t = is_meta_tenant(MTL_ID());
//meta tenant is in mini mode
if (replay_task->replay_cost_ > MAX_SINGLE_REPLAY_ERROR_TIME_THRESOLD
&& !get_replay_is_writing_throttling()
&& lib::is_mini_mode()) {
&& (!lib::is_mini_mode() || is_meta_t)) {
CLOG_LOG_RET(ERROR, OB_ERR_TOO_MUCH_TIME, "single replay task cost too much time. replay may be delayed", KPC(replay_task));
} else {
CLOG_LOG_RET(WARN, OB_ERR_TOO_MUCH_TIME, "single replay task cost too much time", KPC(replay_task));