Commit ad24675
GH-1587: Don't Correct TX Offsets After Seek(s)
Resolves #1587
We should not advance the consumer partition if Seek operations have been
performed; skip fixing the offsets if that condition is detected.
Capture the positions after the poll and check during the fix operation.
This is difficult to write a unit test for; tested with a Boot application,
observing the correct behavior via DEBUG logs.
**cherry-pick to 2.5.x**
(cherry picked from commit bd911ad)1 parent 80aa8fd commit ad24675
File tree
1 file changed
+18
-0
lines changed- spring-kafka/src/main/java/org/springframework/kafka/listener
1 file changed
+18
-0
lines changedLines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| |||
1119 | 1121 | | |
1120 | 1122 | | |
1121 | 1123 | | |
| 1124 | + | |
1122 | 1125 | | |
1123 | 1126 | | |
1124 | 1127 | | |
| |||
1129 | 1132 | | |
1130 | 1133 | | |
1131 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
1132 | 1142 | | |
1133 | 1143 | | |
1134 | 1144 | | |
1135 | 1145 | | |
1136 | 1146 | | |
1137 | 1147 | | |
1138 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1139 | 1157 | | |
1140 | 1158 | | |
1141 | 1159 | | |
| |||
0 commit comments