Add the kafka-error-handling module
This commit is contained in:
6
kafka-error-handling/docs/output/default-backoff.txt
Normal file
6
kafka-error-handling/docs/output/default-backoff.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
=== DefaultErrorHandler default back-off ===
|
||||
interval 0 ms
|
||||
max attempts 9 retries
|
||||
SeekUtils.DEFAULT_MAX_FAILURES = 10
|
||||
retry intervals [0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
total deliveries 10
|
||||
15
kafka-error-handling/docs/output/poison-pill.txt
Normal file
15
kafka-error-handling/docs/output/poison-pill.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
=== poison pill on the DLT ===
|
||||
kafka_dlt-exception-fqcn org.springframework.kafka.support.serializer.DeserializationException
|
||||
kafka_dlt-exception-cause-fqcn org.springframework.kafka.support.serializer.DeserializationException
|
||||
kafka_dlt-exception-message failed to deserialize
|
||||
kafka_dlt-exception-stacktrace org.springframework.kafka.support.serializer.DeserializationException: failed to deseriali...
|
||||
kafka_dlt-original-topic payments
|
||||
kafka_dlt-original-partition 0x00000000
|
||||
kafka_dlt-original-offset 0x0000000000000000
|
||||
kafka_dlt-original-timestamp 0x000001a04bd35409
|
||||
kafka_dlt-original-timestamp-type CreateTime
|
||||
kafka_dlt-original-consumer-group payments
|
||||
__TypeId__ [B
|
||||
DLT payload -> "eyB0aGlzIGlzIG5vdCBqc29u"
|
||||
=== byte-aware DLT ===
|
||||
DLT payload -> { this is not json
|
||||
15
kafka-error-handling/docs/output/retry-and-dlt.txt
Normal file
15
kafka-error-handling/docs/output/retry-and-dlt.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
=== transient failure ===
|
||||
deliveries 3
|
||||
gap between 1&2 1007 ms (FixedBackOff interval 1000)
|
||||
=== transient failure on the DLT ===
|
||||
kafka_dlt-exception-fqcn org.springframework.kafka.listener.ListenerExecutionFailedException
|
||||
kafka_dlt-exception-cause-fqcn com.ankurm.kafkaerrors.Failures$TransientFailure
|
||||
kafka_dlt-exception-message Listener method 'public void com.ankurm.kafkaerrors.PaymentListener.onPayment(org.apache.k...
|
||||
kafka_dlt-exception-stacktrace org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method 'publ...
|
||||
kafka_dlt-original-topic payments
|
||||
kafka_dlt-original-partition 0x00000000
|
||||
kafka_dlt-original-offset 0x0000000000000002
|
||||
kafka_dlt-original-timestamp 0x000001a04bd35f33
|
||||
kafka_dlt-original-timestamp-type CreateTime
|
||||
kafka_dlt-original-consumer-group payments
|
||||
__TypeId__ com.ankurm.kafkaerrors.Payment
|
||||
8
kafka-error-handling/docs/output/retry-topics.txt
Normal file
8
kafka-error-handling/docs/output/retry-topics.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
=== @RetryableTopic delivery trace ===
|
||||
+0 ms invoices transient-1
|
||||
+522 ms invoices-retry-500 transient-1
|
||||
+539 ms invoices ok-1
|
||||
+1548 ms invoices-retry-1000 transient-1
|
||||
+3554 ms invoices-retry-2000 transient-1
|
||||
DLT: [transient-1 on invoices-dlt]
|
||||
topics touched: [invoices, invoices-retry-1000, invoices-retry-2000, invoices-retry-500]
|
||||
4
kafka-error-handling/docs/output/tests.txt
Normal file
4
kafka-error-handling/docs/output/tests.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.009 s -- in com.ankurm.kafkaerrors.RetryableTopicTest
|
||||
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.809 s -- in com.ankurm.kafkaerrors.DeadLetterTopicTest
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s -- in com.ankurm.kafkaerrors.DefaultBackOffTest
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.935 s -- in com.ankurm.kafkaerrors.ByteAwareDltTest
|
||||
Reference in New Issue
Block a user