-
Notifications
You must be signed in to change notification settings - Fork 14.5k
MINOR : Handle error for client telemetry push #19881
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
MINOR : Handle error for client telemetry push #19881
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - but I'll defer to @apoorvmittal10 for the final say
@k-raina thanks for this contribution.
NoClassDefFoundError is not caught correctly. Could you please fix it as well?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, 1 minor query.
} catch (Throwable e) { | ||
log.info("Failed to compress telemetry payload for compression: {}, sending uncompressed data", compressionType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For log.info("Failed to compress telemetry payload for....
, should it be in debug mode i.e. silent exception. Or we should still log it in INFO mode so application is aware of? What others think @AndrewJSchofield @bbejeck @chia7712 @k-raina?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. Using info
may caused the log to be flooded with messages. If that is acceptable exception, then using debug
mode should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to debug logs 3ea7dbb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as we should have this fix in 4.1.
Update catch to handle compression errors
Before :

After