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

[enhancement](blacklist) print the detail stack that the client is shutdown #45850

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,12 @@ public Future<InternalService.PGetBeResourceResponse> getBeResource(InternalServ
return stub.withDeadlineAfter(timeoutSec, TimeUnit.SECONDS).getBeResource(request);
}

// Shutdown will also interrupt the coordinators that are using this client to receive data.
// And the backend will be add to blacklist and will not serve read or write.
public void shutdown() {
ConnectivityState state = channel.getState(false);
LOG.warn("shut down backend service client: {}, channel state: {}", address, state);
// Print the detail exception stack, so that we could find the reason why it is treat as bad.
LOG.warn("shut down backend service client: {}, channel state: {}", address, state, new Exception());
if (!channel.isShutdown()) {
channel.shutdown();
try {
Expand Down
Loading