Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6545

LOCAL_QUORUM still doesn't work with SimpleStrategy but don't throw a meaningful error message anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.14
    • None
    • None
    • Normal

    Description

      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?

      Attachments

        1. 6545-2.0-branch.txt
          5 kB
          Alex Liu
        2. 6545-1.2-branch.txt
          4 kB
          Alex Liu

        Activity

          People

            alexliu68 Alex Liu
            slebresne Sylvain Lebresne
            Alex Liu
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: