Cool! Just make sure to acknowledge the event (and release the buffer, usually at the same time) on every code path, otherwise small leaks can add up and consume the entire buffer.
Did you get chance to check why we got more snapshots than we requested ?
Unfortunately I have not found time to investigate. Support via the public forum is provided on a “best effort” basis. If the suggested workaround is not sufficient, please file a Jira issue at https://issues.couchbase.com (to request an account, follow the “contact administrators” link in the login form). If you are an enterprise customer, please also reach out to the support team. I should probably also temper expectations by mentioning that the Java DCP client is not an officially supported product – but we still want to help you, of course.
DCP should be able to pickup from any point we left even if it was in middle of some snapshot, right?
Yes, that’s correct.
Thanks,
David