@@ -775,8 +775,8 @@ Create topics:
775
775
776
776
[source,bash]
777
777
----
778
- docker exec broker kafka-topics --bootstrap-server broker:9092 --create --topic input-topic --replication-factor 1 --partitions 1
779
778
docker exec broker kafka-topics --bootstrap-server broker:9092 --create --topic retry-topic --replication-factor 1 --partitions 1
779
+ docker exec broker kafka-topics --bootstrap-server broker:9092 --create --topic dlq-topic --replication-factor 1 --partitions 1
780
780
----
781
781
782
782
Run consumer managing retry topics:
@@ -803,12 +803,19 @@ Verify in consumer log if messages are sent to retry and dlq topics:
803
803
804
804
[source,bash]
805
805
----
806
- Group id eb35b080-6cc7-4934-9363-fcf1bcfcaef7 - Consumer id: consumer-eb35b080-6cc7-4934-9363-fcf1bcfcaef7-1-56d0ad79-8496-4410-a8c1-3519a7605baf - Topic: input-topic - Partition: 0 - Offset: 0 - Key: alice - Value: {col_foo:1}
807
- Group id eb35b080-6cc7-4934-9363-fcf1bcfcaef7 - Consumer id: consumer-eb35b080-6cc7-4934-9363-fcf1bcfcaef7-1-56d0ad79-8496-4410-a8c1-3519a7605baf - Topic: input-topic - Partition: 0 - Offset: 1 - Key: alice - Value: {col_foo:1}
808
- Error message detected: number of retries left 3
809
- Group id eb35b080-6cc7-4934-9363-fcf1bcfcaef7 - Consumer id: consumer-eb35b080-6cc7-4934-9363-fcf1bcfcaef7-1-56d0ad79-8496-4410-a8c1-3519a7605baf - Topic: input-topic - Partition: 0 - Offset: 2 - Key: alice - Value: {col_foo:1}
810
- Error message detected: number of retries left 3
811
- send to RETRY topic: retry_topic
806
+ Group id c9a19a62-0284-4251-be22-5d691243646a - Consumer id: consumer-c9a19a62-0284-4251-be22-5d691243646a-1-86fb972e-b5c8-4621-8464-9c1a747a920b - Topic: input-topic - Partition: 0 - Offset: 0 - Key: alice - Value: {col_foo:1}
807
+ Group id c9a19a62-0284-4251-be22-5d691243646a - Consumer id: consumer-c9a19a62-0284-4251-be22-5d691243646a-1-86fb972e-b5c8-4621-8464-9c1a747a920b - Topic: input-topic - Partition: 0 - Offset: 1 - Key: alice - Value: {col_foo:1}
808
+ Error message detected: number of retries 3 left for key alice
809
+ send to RETRY topic: retry-topic
810
+ Group id c9a19a62-0284-4251-be22-5d691243646a - Consumer id: consumer-c9a19a62-0284-4251-be22-5d691243646a-1-86fb972e-b5c8-4621-8464-9c1a747a920b - Topic: input-topic - Partition: 0 - Offset: 2 - Key: alice - Value: {col_foo:1}
811
+ Error message detected: number of retries 2 left for key alice
812
+ send to RETRY topic: retry-topic
813
+ Group id c9a19a62-0284-4251-be22-5d691243646a - Consumer id: consumer-c9a19a62-0284-4251-be22-5d691243646a-1-86fb972e-b5c8-4621-8464-9c1a747a920b - Topic: input-topic - Partition: 0 - Offset: 3 - Key: alice - Value: {col_foo:1}
814
+ Error message detected: number of retries 1 left for key alice
815
+ send to RETRY topic: retry-topic
816
+ Group id c9a19a62-0284-4251-be22-5d691243646a - Consumer id: consumer-c9a19a62-0284-4251-be22-5d691243646a-1-86fb972e-b5c8-4621-8464-9c1a747a920b - Topic: input-topic - Partition: 0 - Offset: 4 - Key: alice - Value: {col_foo:1}
817
+ Error message detected: number of retries 0 left for key alice
818
+ number of retries exhausted, send to DLQ topic: dlq-topic
812
819
----
813
820
814
821
=== Interceptor
0 commit comments