Skip to content

Commit

Permalink
Update DLT log message and docs (#3656)
Browse files Browse the repository at this point in the history
  • Loading branch information
bky373 authored Dec 3, 2024
1 parent 3f72bb3 commit eca3750
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void processMessage(MyPojo message) {
}
@DltHandler
public void processMessage(MyPojo message) {
public void processDltMessage(MyPojo message) {
// ... message processing, persistence, etc
}
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate<String, MyPojo> templa
return RetryTopicConfigurationBuilder
.newInstance()
.dltRoutingRules(Map.of("-deserialization", Set.of(DeserializationException.class)))
.create(kafkaOperations)
.create(template);
}
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
* @author Gary Russell
* @author Tomaz Fernandes
* @author Watlas R
* @author Borahm Lee
* @since 2.2
*
*/
Expand Down Expand Up @@ -571,7 +572,7 @@ private void sendOrThrow(ProducerRecord<Object, Object> outRecord,

private void maybeThrow(ConsumerRecord<?, ?> record, Exception exception) {
String message = String.format("No destination returned for record %s and exception %s. " +
"failIfNoDestinationReturned: %s", KafkaUtils.format(record), exception,
"throwIfNoDestinationReturned: %s", KafkaUtils.format(record), exception,
this.throwIfNoDestinationReturned);
this.logger.warn(message);
if (this.throwIfNoDestinationReturned) {
Expand Down

0 comments on commit eca3750

Please sign in to comment.