-
Notifications
You must be signed in to change notification settings - Fork 37
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
Wrong handling of multiple consecutive empty pages in Java Driver 4.x #254
Comments
Maybe this is a wrong repo to write this, but as for other drivers:
|
First of all I'm not sure the "expected behavior" is correct: you set the page size to 1 and execute the query just once. AFAIR this way you are supposed to get a single page only. If I'm right then the behavior of the 4.x driver is actually right (it apparently brings you a single empty page) while the behavior of other drivers isn't. Or possibly the semantics of
|
No, the driver is supposed to transparently fetch new pages as you iterate (https://docs.datastax.com/en/developer/java-driver/4.13/manual/core/paging/#quick-overview). |
Got it. Then there is some bug indeed. |
@avelanarius are you sending a PR with the fix (avelanarius@40da47a)? |
Update about other drivers:
|
Thanks @sylwiaszunejko - please open an issue on its repo so we can track it properly. |
Sorry for my mistake, I already edited the comment it does not have this problem |
Even better! So now lets just make sure Rust and Java are safe (and btw, would be good to add tests to them) |
@avelanarius are we sending PR to the upstream driver? to our fork? Both? |
Adds a simple test that checks if empty pages are correctly skipped through and all rows are being returned. Covers scylladb#254.
Adds a test method to SimpleStatementCcmIT that checks if SimpleStatement with page size 1 correctly fetches all rows. Covers issue scylladb#254.
Adds a test method to SimpleStatementCcmIT that checks if SimpleStatement with page size 1 correctly fetches all rows. Covers issue scylladb#254.
Adds a simple test that checks if empty pages are correctly skipped through and all rows are being returned. Covers scylladb#254.
Adds a simple test that checks if empty pages are correctly skipped through and all rows are being returned. Covers scylladb#254.
Adds a simple test that checks if empty pages are correctly skipped through and all rows are being returned. Covers #254.
@avelanarius - what's the latest status here? |
Adds a test method to SimpleStatementCcmIT that checks if SimpleStatement with page size 1 correctly fetches all rows. Covers issue #254.
Solved by merged a04fadf |
When Scylla returns multiple consecutive empty pages, Java Driver 4.x doesn't handle it correctly. Reproducer:
The code is supposed to print 3 rows, but it doesn't print anything.
The text was updated successfully, but these errors were encountered: