[jira] [Updated] (CASSANDRA-6836) WriteTimeoutException always reports that the serial CL is "SERIAL"
[ https://issues.apache.org/jira/browse/CASSANDRA-6836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Hanna updated CASSANDRA-6836: Labels: LWT lhf (was: lhf) > WriteTimeoutException always reports that the serial CL is "SERIAL" > --- > > Key: CASSANDRA-6836 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6836 > Project: Cassandra > Issue Type: Bug >Reporter: Nicolas Favre-Felix >Assignee: Irfan Nagoo >Priority: Minor > Labels: LWT, lhf > Attachments: trunk-6836.txt > > > In StorageProxy.proposePaxos, the WriteTimeoutException is thrown with > information about the consistency level. This CL is hardcoded to > ConsistencyLevel.SERIAL, which might be wrong when LOCAL_SERIAL is used: > {code} > if (timeoutIfPartial && !callback.isFullyRefused()) > throw new WriteTimeoutException(WriteType.CAS, > ConsistencyLevel.SERIAL, callback.getAcceptCount(), requiredParticipants); > {code} > Suggested fix: pass consistencyForPaxos as a parameter to proposePaxos(). -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Updated] (CASSANDRA-6836) WriteTimeoutException always reports that the serial CL is SERIAL
[ https://issues.apache.org/jira/browse/CASSANDRA-6836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Irfan Nagoo updated CASSANDRA-6836: --- Attachment: trunk-6836.txt PFA the patch. I directly took Cassandra trunk to fix this very simple jira. Please let me know if fix needs to be in a particular branch as this is my first patch in Cassandra. WriteTimeoutException always reports that the serial CL is SERIAL --- Key: CASSANDRA-6836 URL: https://issues.apache.org/jira/browse/CASSANDRA-6836 Project: Cassandra Issue Type: Bug Components: Core Reporter: Nicolas Favre-Felix Priority: Minor Labels: lhf Attachments: trunk-6836.txt In StorageProxy.proposePaxos, the WriteTimeoutException is thrown with information about the consistency level. This CL is hardcoded to ConsistencyLevel.SERIAL, which might be wrong when LOCAL_SERIAL is used: {code} if (timeoutIfPartial !callback.isFullyRefused()) throw new WriteTimeoutException(WriteType.CAS, ConsistencyLevel.SERIAL, callback.getAcceptCount(), requiredParticipants); {code} Suggested fix: pass consistencyForPaxos as a parameter to proposePaxos(). -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (CASSANDRA-6836) WriteTimeoutException always reports that the serial CL is SERIAL
[ https://issues.apache.org/jira/browse/CASSANDRA-6836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremiah Jordan updated CASSANDRA-6836: --- Labels: lhf (was: ) WriteTimeoutException always reports that the serial CL is SERIAL --- Key: CASSANDRA-6836 URL: https://issues.apache.org/jira/browse/CASSANDRA-6836 Project: Cassandra Issue Type: Bug Components: Core Reporter: Nicolas Favre-Felix Priority: Minor Labels: lhf In StorageProxy.proposePaxos, the WriteTimeoutException is thrown with information about the consistency level. This CL is hardcoded to ConsistencyLevel.SERIAL, which might be wrong when LOCAL_SERIAL is used: {code} if (timeoutIfPartial !callback.isFullyRefused()) throw new WriteTimeoutException(WriteType.CAS, ConsistencyLevel.SERIAL, callback.getAcceptCount(), requiredParticipants); {code} Suggested fix: pass consistencyForPaxos as a parameter to proposePaxos(). -- This message was sent by Atlassian JIRA (v6.2#6252)