Replies: 1 comment 3 replies
-
The
The logic then is like this:
So, you set that option to See more info in docs: https://docs.spring.io/spring-kafka/reference/html/#filtering-messages |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm using
RecordFilterStrategy
to filter records based on headers. This works great on single messages, the filter works and records don't reach the listener (annotated with@KafkaListener
).When using batch mode, filtering also works but when the entire batch is filtered, the listener is invoked with an empty list.
Is this expected behavior? According to this when returning an empty list all records are filtered
Is there a way to configure it not to reach the listener at all? (on an empty bulk)
Thanks!
Sorry for the unformatted code, I tried editing the message but the code is still messed up
Beta Was this translation helpful? Give feedback.
All reactions