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
Have tested Siddhi app and bumped into the issue with setting enable.offsets.commit = "false". When it's set, the source may start reading same events twice duplicating them in the sink. "May" - because there is no stable reproducing steps. Usually it happens after some period of using the source with that property set to false. Or it may start behave like this from very beginning. Most likely, some memory garbage stays in memory and has this side effect.
The issue is disappearing when this setting set to it's default value (removed). Or if group.id is changed. But it may not always disappear after the 2nd.
Can it be fixed so that consumer reads only one event and not duplicate, when offset is not committed?
The text was updated successfully, but these errors were encountered:
With above in place, Siddhi will commit the offset for each message consumed hence no message will be duplicated.
I am not sure whether I have understood your question correctly but, why you expect the consumer to process only once, while setting enable.offsets.commit = "false"?
@dilini-muthumala
This was during testing. So I've got a topic in Kafka with prepared events in it (let's say event #1, event #2, event #3). Assuming enable.offsets.commit = "false", my testing steps would look like follows:
run Siddhi app (it reads all events, but not commit the offset)
stop the app
make changes if needed
run again (it should read same topic from the beginning)
So the app needs to read same events each time I run it. But actually it was reading events like this: [#1, #1], [#2, #2], [#3, #3] - this is what I've got in Siddhi source stream.
I solved that only by removing that setting and each time removing the registered group id in Kafka (or changing it on each run).
Hi,
Have tested Siddhi app and bumped into the issue with setting
enable.offsets.commit = "false"
. When it's set, the source may start reading same events twice duplicating them in the sink. "May" - because there is no stable reproducing steps. Usually it happens after some period of using the source with that property set to false. Or it may start behave like this from very beginning. Most likely, some memory garbage stays in memory and has this side effect.The issue is disappearing when this setting set to it's default value (removed). Or if group.id is changed. But it may not always disappear after the 2nd.
Can it be fixed so that consumer reads only one event and not duplicate, when offset is not committed?
The text was updated successfully, but these errors were encountered: