提交 ac34abdc 编写于 作者: H hf0 提交者: wangzelin.wzl

fix check_partition_exist failure code process logic.

上级 5839aec0
......@@ -1134,7 +1134,7 @@ int ObLogReconfirm::reconfirm()
max_flushed_id_ + 1);
state_ = START_WORKING;
if (OB_INVALID_TIMESTAMP != last_ts_ && OB_FAIL(sw_->try_update_submit_timestamp(last_ts_))) {
CLOG_LOG(ERROR, "sw update timestamp error", K(ret), K(last_ts_));
CLOG_LOG(ERROR, "sw update timestamp error", K(ret), K_(partition_key), K(last_ts_));
} else {
ret = mm_->write_start_membership(OB_LOG_START_MEMBERSHIP);
}
......
......@@ -2038,7 +2038,8 @@ bool ObLogStateMgr::is_reconfirm_role_change_or_sync_timeout_()
if (OB_SUCCESS != (tmp_ret = partition_service_->check_partition_exist(partition_key_, is_exist))) {
CLOG_LOG(WARN, "check_partition_exist failed", K_(partition_key), K(tmp_ret));
}
if (is_exist) {
if (is_exist || (OB_SUCCESS != tmp_ret)) {
// partition exists or check_partition_exist failed
CLOG_LOG(ERROR,
"is_reconfirm_role_change_or_sync_timeout_",
K_(partition_key),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册