You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2010/12/01 23:58:16 UTC

[jira] Created: (CASSANDRA-1803) fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel

fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel
--------------------------------------------------------------------------------------------

                 Key: CASSANDRA-1803
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1803
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Jonathan Ellis
            Assignee: Jonathan Ellis
            Priority: Minor
             Fix For: 0.7.0


Currently strongRead (the patch for ConsistencyLevel > 1) always sends out requests to all live replicas, even if there are not enough  to satisfy the ConsistencyLevel.  This is a violation of our contract w/ the client to throw UnavailableException when we know ahead of time that the request cannot be fulfilled.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1803) fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel

Posted by "T Jake Luciani (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

T Jake Luciani updated CASSANDRA-1803:
--------------------------------------

    Attachment: 1803_v2.txt

Renamed QRH.available() to .assureSufficientLiveNodes() throws UnavailableException to match corresponding WriteResponseHandler call...

Added Unit tests to verify consistency check for QRH and WRH.

+1

> fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel
> --------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1803
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1803
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.0
>
>         Attachments: 1803.txt, 1803_v2.txt
>
>
> Currently strongRead (the patch for ConsistencyLevel > 1) always sends out requests to all live replicas, even if there are not enough  to satisfy the ConsistencyLevel.  This is a violation of our contract w/ the client to throw UnavailableException when we know ahead of time that the request cannot be fulfilled.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1803) fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970391#action_12970391 ] 

Hudson commented on CASSANDRA-1803:
-----------------------------------

Integrated in Cassandra-0.7 #70 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/70/])
    

> fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel
> --------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1803
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1803
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.0 rc 2
>
>         Attachments: 1803.txt, 1803_v2.txt
>
>
> Currently strongRead (the patch for ConsistencyLevel > 1) always sends out requests to all live replicas, even if there are not enough  to satisfy the ConsistencyLevel.  This is a violation of our contract w/ the client to throw UnavailableException when we know ahead of time that the request cannot be fulfilled.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1803) fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-1803:
--------------------------------------

    Attachment: 1803.txt

Adds QRH.available() method to allow this.

Also cleans up response/result duplication between QRH/IResponseResolver classes.

> fail fast in strongRead when insufficient replicas are available to satisfy ConsistencyLevel
> --------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1803
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1803
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.0
>
>         Attachments: 1803.txt
>
>
> Currently strongRead (the patch for ConsistencyLevel > 1) always sends out requests to all live replicas, even if there are not enough  to satisfy the ConsistencyLevel.  This is a violation of our contract w/ the client to throw UnavailableException when we know ahead of time that the request cannot be fulfilled.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.