Details
Description
Customer found his own issue:
I had a look at the source code for the java driver and found the error there. It is in:
com.couchbase.client.protocol.views.Paginator.getNextPage()
Right after calculating the number of "remaining" keys, it sets the limit of the query to the remaining number of keys and re-runs the query. What is missing here is:
q.setSkip(totalDocs);
To actually start from the entry after the last entry on the current page. I have tried this and it works. But there is more code in this method and it is not very easy to follow so important to make sure that this fits.
I am enclosing a diff.
Attachments
For Gerrit Dashboard: JCBC-241 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
25229,9 | JCBC-241: Refactoring Paginator | master | couchbase-java-client | Status: MERGED | +2 | +1 |