[ https://issues.apache.org/jira/browse/CASSANDRA-6545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13863210#comment-13863210 ]
Alex Liu commented on CASSANDRA-6545: ------------------------------------- Lift both EACH_QUORUM and LOCAL_QUORUM. Cast strategy to NTS only if it's an instance of NTS, otherwise don't cast it and use it the same way as QUORUM. > LOCAL_QUORUM still doesn't work with SimpleStrategy but don't throw a > meaningful error message anymore > ------------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-6545 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6545 > Project: Cassandra > Issue Type: Bug > Reporter: Sylvain Lebresne > Assignee: Alex Liu > Fix For: 1.2.14 > > > It seems it was the intent of CASSANDRA-6238 originally, though I've tracked > to the commit of CASSANDRA-6309 (f7efaffadace3e344eeb4a1384fa72c73d8422b0 to > be precise) but in any case, ConsistencyLevel.validateForWrite does not > reject LOCAL_QUORUM when SimpleStrategy is used anymore, yet > ConsistencyLevel.blockFor definitively cast the strategy to NTS for > LOCAL_QUORUM (in localQuorumFor() to be precise). Which results in a > ClassCastException as reported by > https://datastax-oss.atlassian.net/browse/JAVA-241. > Note that while we're at it, I tend to agree with Aleksey comment on > CASSANDRA-6238, why not make EACH_QUORUM == QUORUM for SimpleStrategy too? -- This message was sent by Atlassian JIRA (v6.1.5#6160)