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
When using a RecordFilterStrategy in combination with an AckMode like RECORD, only the consumer offsets of the records that have been handled, should be committed.
Suggestion: Add a new AckMode = RECORD_FILTERED that commits the offset only when a record is not filtered out.
Current Behavior
When using ack-mode: RECORD, the offset of every record is committed to Kafka even if it was filtered out.
Context
The synchronous commit of consumer record offset is an expensive operation.
It slows down record consumption unnecessarily in case the consumer is only interested in a small percentage of the records and still wants every record that is processed to be committed.
The text was updated successfully, but these errors were encountered:
@geertvb Thanks for the report. This is almost like a new feature that we need to think through. We are so close to an RC for the 3.3.0 release. I think we need to postpone these types of changes at this point in our release cycle to the next minor version (3.4.x).
Hi @sobychacko, thanks for the quick response and considering it as a feature for one of the next releases.
For the time being we work around the issue by using a pure kafka-client ConsumerInterceptor.
Expected Behavior
When using a RecordFilterStrategy in combination with an AckMode like RECORD, only the consumer offsets of the records that have been handled, should be committed.
Suggestion: Add a new AckMode = RECORD_FILTERED that commits the offset only when a record is not filtered out.
Current Behavior
When using
ack-mode: RECORD
, the offset of every record is committed to Kafka even if it was filtered out.Context
The synchronous commit of consumer record offset is an expensive operation.
It slows down record consumption unnecessarily in case the consumer is only interested in a small percentage of the records and still wants every record that is processed to be committed.
The text was updated successfully, but these errors were encountered: