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

Log a warning when the controller clients receive an error (#2499) #2505

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion linkerd/app/inbound/src/policy/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ impl Recover<tonic::Status> for GrpcRecover {
return Err(status);
}

tracing::trace!(%status, "Recovering");
tracing::warn!(
grpc.status = %status.code(),
grpc.message = status.message(),
"Unexpected policy controller response; retrying with a backoff",
);
Ok(self.0.stream())
}
}
8 changes: 6 additions & 2 deletions linkerd/app/outbound/src/policy/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,12 @@ impl Recover<tonic::Status> for GrpcRecover {
tonic::Code::InvalidArgument | tonic::Code::FailedPrecondition => Err(status),
// Indicates no policy for this target
tonic::Code::NotFound | tonic::Code::Unimplemented => Err(status),
_ => {
tracing::debug!(%status, "Recovering");
code => {
tracing::warn!(
grpc.status = %code,
grpc.message = status.message(),
"Unexpected policy controller response; retrying with a backoff",
);
Ok(self.0.stream())
}
}
Expand Down
6 changes: 5 additions & 1 deletion linkerd/app/src/dst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ impl Recover<tonic::Status> for BackoffUnlessInvalidArgument {
return Err(status);
}

tracing::trace!(%status, "Recovering");
tracing::warn!(
grpc.status = %status.code(),
grpc.message = status.message(),
"Unexpected destination controller response; retrying with a backoff",
);
Ok(self.0.stream())
}
}
Loading