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

Downgrade log message with high spam rate #1507

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

80degreeswest
Copy link
Member

These log messages have a very high rate and are expected during cache expirations. Downgrade these to FINE to avoid spamming the logs.

Copy link
Member

@werkt werkt left a comment

Choose a reason for hiding this comment

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

Please switch the exception type emitted in cfc to be detected as canceled and conditionally downgraded

@80degreeswest 80degreeswest force-pushed the 80degreeswest/downgrade_warning_message branch from b771739 to 8d8d854 Compare October 21, 2023 14:24
@@ -291,6 +291,12 @@ private boolean errorResponse(Throwable t) {
requestMetadata.getToolInvocationId(),
requestMetadata.getActionId(),
name));
} else if ("write cancelled".equals(t.getMessage())) {
Copy link
Member

@werkt werkt Oct 24, 2023

Choose a reason for hiding this comment

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

Prefer that we get a WriteException that specializes to a WriteCancelledException, rather than relying on correlated string messages.

Copy link
Contributor

Choose a reason for hiding this comment

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

We were also getting the same error. This pr has fixed the issue for us #1526.

Copy link
Member

@werkt werkt left a comment

Choose a reason for hiding this comment

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

Can you please add a test that exceptions indicating cancellations are not logged here?

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