cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patricio Echague (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-3082) Operation with CL=EACH_QUORUM doesn't succeed when a replica is down (RF=3)
Date Fri, 26 Aug 2011 16:22:30 GMT

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

Patricio Echague updated CASSANDRA-3082:
----------------------------------------

          Description: 
{code}  DatacenterSyncWriteResponseHandler#assureSufficientLiveNodes()
     ...
     ...
        // Throw exception if any of the DC doesn't have livenodes to accept write.
        for (String dc: strategy.getDatacenters())
        {
        	if (dcEndpoints.get(dc).get() != responses.get(dc).get())
                throw new UnavailableException();
        }
{code}

should be:
 
{code}
      if (dcEndpoints.get(dc).get() < responses.get(dc).get())
{code}

  was:

{code}  DatacenterSyncWriteResponseHandler#assureSufficientLiveNodes()
     ...
     ...
        // Throw exception if any of the DC doesn't have livenodes to accept write.
        for (String dc: strategy.getDatacenters())
        {
        	if (dcEndpoints.get(dc).get() != responses.get(dc).get())
                throw new UnavailableException();
        }
{code}

should be:
 
{code}
      if (dcEndpoints.get(dc).get() < responses.get(dc).get())
{code}

    Affects Version/s:     (was: 0.8.4)
                           (was: 0.7.8)
                       0.7.0
                       0.8.0

> Operation with CL=EACH_QUORUM doesn't succeed when a replica is down (RF=3)
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3082
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3082
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7.0, 0.8.0
>            Reporter: Patricio Echague
>            Assignee: Patricio Echague
>              Labels: consistency
>             Fix For: 0.7.9, 0.8.5, 1.0
>
>
> {code}  DatacenterSyncWriteResponseHandler#assureSufficientLiveNodes()
>      ...
>      ...
>         // Throw exception if any of the DC doesn't have livenodes to accept write.
>         for (String dc: strategy.getDatacenters())
>         {
>         	if (dcEndpoints.get(dc).get() != responses.get(dc).get())
>                 throw new UnavailableException();
>         }
> {code}
> should be:
>  
> {code}
>       if (dcEndpoints.get(dc).get() < responses.get(dc).get())
> {code}

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

        

Mime
View raw message