[FEAT MERGE] Merge syslog user experience improvement to master

Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: tino247 <tino247@126.com>
Co-authored-by: chaser-ch <chaser.ch@antgroup.com>
This commit is contained in:
stdliu
2023-02-06 15:52:23 +08:00
committed by ob-robot
parent 1de9266dd0
commit f8c5c2647f
796 changed files with 4465 additions and 3036 deletions

View File

@ -130,8 +130,11 @@ void ObRsReentrantThread::check_alert(const ObRsReentrantThread &thread)
int64_t last_run_interval = ObTimeUtility::current_time() - last_run_timestamp;
int64_t schedule_interval = thread.get_schedule_interval();
int64_t check_interval = schedule_interval + MAX_THREAD_SCHEDULE_OVERRUN_TIME;
LOG_ERROR("rs_monitor_check : thread hang", K(thread_id), K(thread_name), K(last_run_timestamp),
LOG_ERROR_RET(common::OB_ERR_UNEXPECTED, "rs_monitor_check : thread hang", K(thread_id), K(thread_name), K(last_run_timestamp),
KTIME(last_run_timestamp), K(last_run_interval), K(check_interval), K(schedule_interval));
LOG_DBA_WARN(OB_ERR_ROOTSERVICE_THREAD_HUNG, "msg", "rootservice backgroud thread may be hung",
K(thread_id), K(thread_name), K(last_run_timestamp), KTIME(last_run_timestamp),
K(last_run_interval), K(check_interval), K(schedule_interval));
}
}
@ -205,7 +208,7 @@ void CheckThreadSet::loop_operation(void (*func)(const ObRsReentrantThread&))
SpinRLockGuard guard(rwlock_);
for (int i = 0; i < arr_.count(); i++) {
if (OB_ISNULL(arr_[i])) {
LOG_WARN("rs_monitor_check : arr[i] is NULL", K(i));
LOG_WARN_RET(common::OB_ERR_UNEXPECTED, "rs_monitor_check : arr[i] is NULL", K(i));
continue;
}
func(*(arr_[i]));