cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ZhaoYang (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-13991) NullPointerException when querying a table with a previous state
Date Sun, 05 Nov 2017 15:57:00 GMT


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|]
is probably reused internally in gocql). 
I am not familiar with golang spec, but you can try clone the output of {{iter.PageState()}}
	cloned_paging := make([]byte, len(next))
	copy(cloned_paging, next)
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

> NullPointerException when querying a table with a previous state
> ----------------------------------------------------------------
>                 Key: CASSANDRA-13991
>                 URL:
>             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:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message