[
https://issues.apache.org/jira/browse/CASSANDRA-11669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Lerer resolved CASSANDRA-11669.
----------------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.0.x)
(was: 3.x)
3.0.6
3.6
Committed into 3.0 at 474d3bf8c14e2b572efd9b6a66703f9cbe1164c5 and merged into
trunk
> RangeName queries might not return all the results
> --------------------------------------------------
>
> Key: CASSANDRA-11669
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11669
> Project: Cassandra
> Issue Type: Bug
> Components: CQL
> Reporter: Benjamin Lerer
> Assignee: Benjamin Lerer
> Fix For: 3.6, 3.0.6
>
>
> It seems that if a page end in the middle of a partition the remaining rows
> of the partition will never be returned.
> The problem can be reproduced using the java driver with the following code:
> {code}
> session = cluster.connect();
> session.execute("CREATE KEYSPACE IF NOT EXISTS test WITH REPLICATION
> = {'class' : 'SimpleStrategy', 'replication_factor' : '1'}");
> session.execute("USE test");
> session.execute("DROP TABLE IF EXISTS test");
> session.execute("CREATE TABLE IF NOT EXISTS test (a int, b int, c
> int, d int, PRIMARY KEY(a, b, c))");
> PreparedStatement prepare = session.prepare("INSERT INTO test (a, b,
> c, d) VALUES (?, ?, ?, ?);");
> for (int i = 1; i < 4; i++)
> for (int j = 1; j < 5; j++)
> for (int k = 1; k < 5; k++)
> session.execute(prepare.bind(i, j, k, i + j));
> ResultSet rs = session.execute(session.newSimpleStatement("SELECT *
> FROM test WHERE b = 1 and c IN (1, 2, 3) ALLOW FILTERING")
> .setFetchSize(4));
> for (Row row : rs)
> {
> System.out.println(row); // Only one row will be returned for
> partition 2 instead of 3
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)