You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves#1587
See javadoc for `ConsumerProperties.setFixTxOffsets()` for more information.
**cherry-pick to 2.5.x**
* Add `this.` to `logger` to honor Checkstyle
Copy file name to clipboardExpand all lines: src/reference/asciidoc/kafka.adoc
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2293,6 +2293,13 @@ The default executor creates threads named `<name>-C-n`; with the `KafkaMessageL
2293
2293
|`BETA`
2294
2294
|Exactly Once Semantics mode; see <<exactly-once>>.
2295
2295
2296
+
|fixTxOffsets
2297
+
|`false`
2298
+
|When consuming records produced by a transactional producer, and the consumer is positioned at the end of a partition, the lag can incorrectly be reported as greater than zero, due to the pseudo record used to indicate transaction commit/rollback and, possibly, the presence of rolled-back records.
2299
+
This does not functionally affect the consumer but some users have expressed concern that the "lag" is non-zero.
2300
+
Set this property to `true` and the container will correct such mis-reported offsets.
2301
+
The check is performed before the next poll to avoid adding significant complexity to the commit processing.
2302
+
2296
2303
|groupId
2297
2304
|`null`
2298
2305
|Overrides the consumer `group.id` property; automatically set by the `@KafkaListener` `id` or `groupId` property.
0 commit comments