-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Error handling with DLQ support #14618
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
base: main
Are you sure you want to change the base?
Conversation
| record.kafkaPartition(), | ||
| record.kafkaOffset()), | ||
| e); | ||
| String.format( |
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.
unneeded indent change.
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
| public class DlqReporter implements AutoCloseable { |
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.
Please add some comments for this class.
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.
Is this intended to be public?
| String key = (data.key()==null) ? null : data.key().toString(); | ||
| String value = (data.value()==null) ? null : data.value().toString(); | ||
| try { | ||
| LOG.info("Published DLQ record {}", value); |
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.
Do we need to log every value to DLQ?
|
@devendra-nr Please add some tests for your changes. |
Reopening #13135