tengu-alt commented on issue #1445: URL: https://github.com/apache/cassandra-gocql-driver/issues/1445#issuecomment-2604936045
I have reproduced this on the provided version. That happens because `PageSize` and amount of iterations are not equal. After we get the first 10 items - `Scan()` returns a new `Iter`, which we use for getting the rest 2 items. After that, the new `Iter` is created (with a new paging state) and we skip the remaining 8 items. That explains why we got only 600 elements in the result instead of 1000. I have set the for loop for `i < 14` and got 700 elements in the result. After I tried to run the provided code on the current version I encountered endless recursion if we don't reset the query `PageState` manually after each iteration. @joao-r-reis Is it desired state when we fall into recursion if we don't reset page size manually? Or is it a bug that needs to be fixed? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
