Commit c671246
GH-2991: Fix unwanted warning logs in KMLC
Fixes: #2991
There is a warning log from `KafkaMessageListenerContainter#checkRebalanceCommits`
that unconditionally prints that offsets could not be committed. Because of this
unconditional check, the messages are very likely to be false positives. Fixing
this by adding a check to see if there are indeed uncommitted records.
(cherry picked from commit f9476a3)1 parent e36c22c commit c671246
File tree
1 file changed
+6
-4
lines changed- spring-kafka/src/main/java/org/springframework/kafka/listener
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
1711 | 1712 | | |
1712 | 1713 | | |
1713 | 1714 | | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1717 | 1719 | | |
1718 | 1720 | | |
1719 | 1721 | | |
| |||
0 commit comments