[PALF] adjust log level

This commit is contained in:
BinChenn
2023-04-26 13:04:25 +00:00
committed by ob-robot
parent 17ea70672e
commit 4154d0df4b
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ int ObLSAdapter::wait_append_sync(const share::ObLSID &ls_id)
ObLSHandle ls_handle;
ObLogHandler *log_handler = NULL;
if (OB_FAIL(ls_service_->get_ls(ls_id, ls_handle, ObLSGetMod::ADAPTER_MOD))) {
CLOG_LOG(ERROR, "get log stream failed", K(ret), K(ls_id));
CLOG_LOG(WARN, "get log stream failed", K(ret), K(ls_id));
} else if (OB_ISNULL(ls = ls_handle.get_ls())) {
ret = OB_ERR_UNEXPECTED;
CLOG_LOG(ERROR, "log stream not exist", K(ret), K(ls_id));

View File

@ -609,7 +609,7 @@ int ObRoleChangeService::switch_leader_to_follower_forcedly_(
// however, the flying callback may have not been pushed into apply service, and then, 'switch_to_follower' will be executed, for trans,
// if the callback be executed after 'switch_to_follower', will cause abort.
if (OB_FAIL(apply_service_->wait_append_sync(ls_id))) {
CLOG_LOG(ERROR, "wait_apply_sync failed", K(ret), K(ls_id));
CLOG_LOG(WARN, "wait_apply_sync failed", K(ret), K(ls_id));
} else if (FALSE_IT(time_guard.click("apply_service->wait_apply_sync"))
|| OB_FAIL(apply_service_->switch_to_follower(ls_id))) {
CLOG_LOG(WARN, "apply_service_ switch_to_follower failed", K(ret), K(new_role), K(new_proposal_id));