After a "short read", the wrong read command may be used
--------------------------------------------------------

                 Key: CASSANDRA-3157
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3157
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0
            Reporter: Sylvain Lebresne
            Assignee: Sylvain Lebresne
            Priority: Minor
             Fix For: 1.0
         Attachments: 3157.patch

In fetchRows, there is this code:
{noformat}
    for (int i = 0; i < commandsToSend.size(); i++)
    {
        ReadCallback<Row> handler = readCallbacks.get(i);
        ReadCommand command = commands.get(i);
{noformat}
On the first iteration of fetchRows, commands == commandsToSend so this is ok, 
but on a short read, commandsToSend will only contain the command to retry so 
we'll pick up the wrong command on the last line.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to