Commit b05b04c
GH-1259: Handle Failed Record Recovery
Resolves #1259
Previously if the recoverer in a `SeekToCurrentErrorHandler` or
`DefaultAfterRollbackProcessor` failed to recover a record, the
record could be lost; the `FailedRecordTracker` simply logged
the exception.
Change the `SeekUtils` to detect a failure in the recoverer (actually
any failure when determining if the failed record should be recovered)
and include the failed record in the seeks.
In this way the recovery will be attempted once more on each delivery
attempt.
**cherry-pick to 2.2.x**
# Conflicts:
# spring-kafka/src/main/java/org/springframework/kafka/listener/FailedRecordTracker.java
# spring-kafka/src/main/java/org/springframework/kafka/support/SeekUtils.java
# src/reference/asciidoc/kafka.adoc1 parent ee6e9da commit b05b04c
File tree
4 files changed
+24
-15
lines changed- spring-kafka/src
- main/java/org/springframework/kafka
- listener
- support
- test/java/org/springframework/kafka/listener
- src/reference/asciidoc
4 files changed
+24
-15
lines changedLines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 91 | | |
101 | 92 | | |
102 | 93 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| 536 | + | |
536 | 537 | | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
| |||
587 | 591 | | |
588 | 592 | | |
589 | 593 | | |
590 | | - | |
591 | | - | |
| 594 | + | |
| 595 | + | |
592 | 596 | | |
593 | 597 | | |
594 | 598 | | |
| |||
629 | 633 | | |
630 | 634 | | |
631 | 635 | | |
| 636 | + | |
632 | 637 | | |
633 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
634 | 641 | | |
635 | 642 | | |
636 | 643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2866 | 2866 | | |
2867 | 2867 | | |
2868 | 2868 | | |
| 2869 | + | |
| 2870 | + | |
2869 | 2871 | | |
2870 | 2872 | | |
2871 | 2873 | | |
| |||
2916 | 2918 | | |
2917 | 2919 | | |
2918 | 2920 | | |
| 2921 | + | |
| 2922 | + | |
2919 | 2923 | | |
2920 | 2924 | | |
2921 | 2925 | | |
| |||
0 commit comments