cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-3157) After a "short read", the wrong read command may be used
Date Thu, 08 Sep 2011 13:48:09 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-3157:
----------------------------------------

    Attachment: 3157.patch

> 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

        

Mime
View raw message