Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: add a switch pd leader log #186

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

Lloyd-Pottiger
Copy link
Contributor

No description provided.

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
@Lloyd-Pottiger
Copy link
Contributor Author

/cc @JaySon-Huang @gengliqi

src/pd/Client.cc Outdated
@@ -202,6 +202,7 @@ void Client::switchLeader(const ::google::protobuf::RepeatedPtrField<std::string
return;
}

log->debug("switch leader from " + old_leader + " to " + leader);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log it as info level? info level is enabled by default and I think switching leader is not frequent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
@gengliqi gengliqi merged commit 2d79122 into tikv:master Jul 22, 2024
2 checks passed
@Lloyd-Pottiger Lloyd-Pottiger deleted the add-switch-leader-log branch July 22, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants