[
https://issues.apache.org/jira/browse/CASSANDRA-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870964#action_12870964
]
Matthew F. Dennis commented on CASSANDRA-1073:
----------------------------------------------
The response() method in WriteResponseHandler (specifically the call to
condition.signal()) is the culprit. With the call commented out, my test is
able to run indefinitely (or as best as I can approximate "indefinite" anyway)
without failure. As soon as the call to condition.signal() is added back in,
the test fails within just a few iterations (often on the first or second run).
I'm still looking into what the exact cause is (which is somewhat complicated
as much of the code is wrapped up in Thrift itself) but my guess at this point
is that the client is waiting on this condition and when it is killed, the
condition and/or waiting thread doesn't correctly handle this.
> EOFException with Cassandra.Client.get_range_slices() API
> ---------------------------------------------------------
>
> Key: CASSANDRA-1073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1073
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.6
> Reporter: Frank Du
> Assignee: Matthew F. Dennis
> Fix For: 0.6.3
>
>
> Below is the snippet I tried to run. The keyspace is named 'Keyspac1', with
> only 1 column family named 'CF1'.
> ColumnParent cp = new ColumnParent("CF1");
>
> SlicePredicate predicate = new SlicePredicate();
> SliceRange sliceRange = new SliceRange();
> sliceRange.setStart(new byte[0]);
> sliceRange.setFinish(new byte[0]);
> predicate.setSlice_range(sliceRange);
>
> KeyRange range = new KeyRange(10);
> range.setStart_key("".getBytes());
> range.setEnd_key("".getBytes());
>
> client.set_keyspace(keyspace);
> List<KeySlice> slices = client.get_range_slices(cp, predicate,
> range, ConsistencyLevel.ONE);
> Then an EOFException was spit out. For readability, it is included in the
> next comment.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.