Skip to content

Instantly share code, notes, and snippets.

@stanley-shi
Last active May 10, 2016 09:32
Show Gist options
  • Save stanley-shi/1bfc60c56e09d36d15c1f59ab58f57b6 to your computer and use it in GitHub Desktop.
Save stanley-shi/1bfc60c56e09d36d15c1f59ab58f57b6 to your computer and use it in GitHub Desktop.
Couchbase DCP will compact several changes of the same document into one DCP event;
DCP will serialize the offset (vis state serializer) immediately when it determines the current offset.
That means, if you started the DCP, the state that's been serialized is the latest offset; not the offset that has been streamed.
In other words, DO NOT stop the streaming if the data has not been fully streamed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment