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

fix: compare errors with string to avoid log spew in jetstream sensor #3441

Merged

Conversation

sercant
Copy link
Contributor

@sercant sercant commented Jan 20, 2025

This PR fixes an issue in the error comparison to avoid log spew. Instead of comparing the errors directly, compare the string versions.

Checklist:

@sercant sercant force-pushed the fix-avoid-log-spew-in-jetstream-sensor branch from 4b2e2e5 to 2a356f5 Compare January 20, 2025 04:50
@sercant sercant marked this pull request as ready for review January 20, 2025 05:07
@sercant sercant requested a review from whynowy as a code owner January 20, 2025 05:07
@sercant
Copy link
Contributor Author

sercant commented Jan 22, 2025

Hello @whynowy !

We are submitting this change because on our setup, when one of the NATS Jetstream replica is changing instance (spot), argo-events eventsource emits millions of logs. It would be great if you could take a look at it when you have time. 🙏

@whynowy whynowy self-assigned this Jan 23, 2025
Copy link
Member

@whynowy whynowy left a comment

Choose a reason for hiding this comment

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

LGTM

@whynowy whynowy merged commit 157146a into argoproj:master Jan 23, 2025
7 checks passed
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.

2 participants