Add the kafka-error-handling module
This commit is contained in:
14
kafka-error-handling/scripts/run-all.sh
Executable file
14
kafka-error-handling/scripts/run-all.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerate every file under docs/output/. A real Kafka broker starts in-process in KRaft mode;
|
||||
# no Docker and no local install.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
mvn -B test 2>&1 | tr -d '\000' | tee /tmp/eh-test.log > /dev/null
|
||||
sed -n '/=== DefaultErrorHandler default back-off ===/,/total deliveries/p' /tmp/eh-test.log > docs/output/default-backoff.txt
|
||||
sed -n '/=== transient failure ===/,/gap between/p' /tmp/eh-test.log > docs/output/retry-and-dlt.txt
|
||||
sed -n '/=== transient failure on the DLT ===/,/__TypeId__/p' /tmp/eh-test.log >> docs/output/retry-and-dlt.txt
|
||||
sed -n '/=== poison pill on the DLT ===/,/DLT payload/p' /tmp/eh-test.log > docs/output/poison-pill.txt
|
||||
sed -n '/=== byte-aware DLT ===/,/DLT payload/p' /tmp/eh-test.log >> docs/output/poison-pill.txt
|
||||
sed -n '/=== @RetryableTopic delivery trace ===/,/topics touched/p' /tmp/eh-test.log > docs/output/retry-topics.txt
|
||||
grep -aE 'Tests run:.*in com\.ankurm' /tmp/eh-test.log | sed 's/^\[INFO\] //' > docs/output/tests.txt
|
||||
echo "regenerated:"; ls -1 docs/output/
|
||||
Reference in New Issue
Block a user