Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paging through Repository query methods do not retain Sort [DATACASS-700] #870

spring-projects-issues opened this issue Nov 12, 2019 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented Nov 12, 2019

Jeremy GUEGAN opened DATACASS-700 and commented

When i use Pagination with cassandra, i have to iterate over the slices.

When doing this, an exception appears:

com.datastax.driver.core.exceptions.PagingStateException: Paging state mismatch, this means that either the paging state contents were altered, or you're trying to apply it to a different statement


after analysis, i have discovered that CassandraPagingRequest lose Sort when i get it from the slice (An example is shown on the stackOverflow issue referenced).


i used a workaround to achieve the request and the pagination, it's seems to work and  sort the results (again, the workaround is shown in the stackOverflow issue).


If a developer needs to have a full example of code to reproduce the issue, i'll be glad to communicate (by private message) a link to the code.


Affects: 2.1.12 (Lovelace SR12), 2.2.1 (Moore SR1)

Reference URL:

Referenced from: commits 287f9d2, 34ad06d, afebb7c

Backported to: 2.2.2 (Moore SR2), 2.1.13 (Lovelace SR13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants