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

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

Comments

@spring-projects-issues
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: https://stackoverflow.com/questions/58792760/pagination-and-sorting-in-cassandra-using-spring-data-cassandra

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants