lhotari commented on code in PR #22511:
URL: https://github.com/apache/pulsar/pull/22511#discussion_r1565846411
##########
pulsar-io/kafka/src/main/java/org/apache/pulsar/io/kafka/KafkaAbstractSource.java:
##########
@@ -253,6 +265,12 @@ public void ack() {
completableFuture.complete(null);
}
+ @Override
+ public void fail() {
+ completableFuture.completeExceptionally(
+ new RuntimeException("Failed to process record with key: " +
getKey() + " and value: " + getValue()));
Review Comment:
I wonder if it would be better to skip appending `getValue()` to the
exception message?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]