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

New authentication module does not wok in multi datacenters in case of network outage

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 12.04
      Cluster of 16 nodes in 2 datacenters (8 nodes in each datacenter)

      Description

      With 1.2.2, I am using the new authentication backend PasswordAuthenticator with the authorizer CassandraAuthorizer

      In case of network outage, we are no more able to connect to Cassandra.

      Here is the error message we get when I want to connect through cqlsh:
      Traceback (most recent call last):
      File "./cqlsh", line 2262, in <module>
      main(*read_options(sys.argv[1:], os.environ))
      File "./cqlsh", line 2248, in main
      display_float_precision=options.float_precision)
      File "./cqlsh", line 483, in _init_
      cql_version=cqlver, transport=transport)

      File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 143, in connect
      File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 59, in _init_
      File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thrifteries.py", line 157, in establish_connection
      File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 455, in login
      File "./../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 476, in recv_login
      cql.cassandra.ttypes.AuthenticationException: AuthenticationException(why='org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level QUORUM')

        Attachments

        1. auth_fix_consistency.patch
          10 kB
          Cyril Scetbon

          Activity

            People

            • Assignee:
              aleksey Aleksey Yeschenko
              Reporter:
              jal06 jal
              Authors:
              Aleksey Yeschenko
              Reviewers:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: