[ https://issues.apache.org/jira/browse/CASSANDRA-13991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239598#comment-16239598 ]
ZhaoYang commented on CASSANDRA-13991: -------------------------------------- [~mildebrandt] Thanks for the report. I think it's gocql driver issue of re-writing the output buffer of {{iter.PageState()}} ( This [value|https://github.com/gocql/gocql/blob/aa93acc8f067e9233982b9a7de370e4d64b9c33e/session.go#L1303] is probably reused internally in gocql). I am not familiar with golang spec, but you can try clone the output of {{iter.PageState()}} . {code} cloned_paging := make([]byte, len(next)) copy(cloned_paging, next) {code} Do you mind create an issue on gocql github? At the same time, in Cassandra, we could improve the error handling with null PK for range pager. > NullPointerException when querying a table with a previous state > ---------------------------------------------------------------- > > Key: CASSANDRA-13991 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13991 > Project: Cassandra > Issue Type: Bug > Components: CQL > Reporter: Chris mildebrandt > Attachments: CASSANDRA-13991.log > > > Performing the following steps (using the gocql library) results in an NPE: > * With a table of 12 entries, read all rows. > * Set the page size to 1 and read the first row. Save the query state. > * Read all the row again. > * Set the page size to 5 and the page state to the previous state. (This is > where the NPE occurs). > This can be reproduced with the following project: > https://github.com/eyeofthefrog/CASSANDRA-13991 -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org