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

RingCache cannot be configured to use local DC only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.10, 2.1.1
    • None
    • Normal

    Description

      RingCache always calls describe_ring, returning the entire cluster. Considering it's used in the context of writing from Hadoop (which is typically in a multi-DC configuration), this is often not desirable behavior. In some cases there may be high-latency connections between the analytics DC and other DCs.

      I am attaching a patch that adds an optional config value to tell RingCache to use local nodes only, in which case it calls describe_local_ring instead. It also adds helpful failed host information to IOExceptions thrown in AbstractColumnFamilyOutputFormat.createAuthenticatedClient, CqlRecordWriter, and ColumnFamilyRecordWriter. This allows a user to more easily solve related connectivity issues.

      Attachments

        1. cassandra-2.0.7-7252-2.txt
          9 kB
          Robert Strickland
        2. cassandra-2.0.7-7252.txt
          8 kB
          Robert Strickland

        Activity

          People

            rstrickland Robert Strickland
            rstrickland Robert Strickland
            Robert Strickland
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: