Fix two bugs: follower can not get full sys tenant ls info and ls meta checker reports too often

This commit is contained in:
obdev
2023-02-07 10:57:15 +08:00
committed by ob-robot
parent 13bcd47b9a
commit bc4490783f
5 changed files with 77 additions and 14 deletions

View File

@ -240,7 +240,7 @@ int ObRpcLSTable::do_detect_master_rs_ls_(
&& start_idx <= end_idx
&& end_idx < server_list.count()
&& OB_ISNULL(leader)) {
LOG_INFO("[RPC_LS] do detect master rs", K(cluster_id), K(start_idx), K(end_idx), K(server_list));
LOG_TRACE("[RPC_LS] do detect master rs", K(cluster_id), K(start_idx), K(end_idx), K(server_list));
if (OB_FAIL(do_detect_master_rs_ls_(cluster_id, start_idx, end_idx,
server_list, ls_info))) {
LOG_WARN("fail to detect master rs", KR(ret), K(cluster_id),
@ -248,7 +248,7 @@ int ObRpcLSTable::do_detect_master_rs_ls_(
} else {
int tmp_ret = ls_info.find_leader(leader);
if (OB_SUCCESS == tmp_ret && OB_NOT_NULL(leader)) {
LOG_INFO("[RPC_LS] get master rs", KR(ret), K(cluster_id), "addr", leader->get_server());
LOG_TRACE("[RPC_LS] get master rs", KR(ret), K(cluster_id), "addr", leader->get_server());
}
start_idx = end_idx + 1;
end_idx = server_list.count() - 1;