Skip to content

Conversation

@devendra-nr
Copy link

Reopening #13135

record.kafkaPartition(),
record.kafkaOffset()),
e);
String.format(
Copy link
Member

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 {
Copy link
Member

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.

Copy link
Member

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);
Copy link
Member

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?

@manuzhang
Copy link
Member

@devendra-nr Please add some tests for your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants