Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10664 Fix failing tests
  3. CASSANDRA-10935

sstableloader_uppercase_keyspace_name_test is failing on 2.2

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.5
    • Legacy/Tools
    • None

    Description

      sstable_generation_loading_test.py:TestSSTableGenerationAndLoading.sstableloader_uppercase_keyspace_name_test is failing on HEAD on cassandra-2.2. It passes on 2.1 and 3.0.

      The error looks like:

      ======================================================================
      ERROR: sstableloader_uppercase_keyspace_name_test (sstable_generation_loading_test.TestSSTableGenerationAndLoading)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/philipthompson/cstar/cassandra-dtest/sstable_generation_loading_test.py", line 122, in sstableloader_uppercase_keyspace_name_test
          self.load_sstable_with_configuration(ks='"Keyspace1"')
        File "/Users/philipthompson/cstar/cassandra-dtest/sstable_generation_loading_test.py", line 210, in load_sstable_with_configuration
          read_and_validate_data(session)
        File "/Users/philipthompson/cstar/cassandra-dtest/sstable_generation_loading_test.py", line 203, in read_and_validate_data
          self.assertEquals([str(i), 'col', str(i)], list(rows[0]))
      IndexError: list index out of range
      -------------------- >> begin captured logging << --------------------
      dtest: DEBUG: cluster ccm directory: /var/folders/v3/z4wf_34n1q506_xjdy49gb780000gn/T/dtest-PY1RTe
      dtest: DEBUG: Testing sstableloader with pre_compression=None and post_compression=None
      dtest: DEBUG: creating keyspace and inserting
      dtest: DEBUG: Making a copy of the sstables
      dtest: DEBUG: Wiping out the data and restarting cluster
      cassandra.cluster: WARNING: Host 127.0.0.2 has been marked down
      cassandra.cluster: WARNING: Host 127.0.0.1 has been marked down
      cassandra.cluster: WARNING: Failed to create connection pool for new host 127.0.0.1:
      Traceback (most recent call last):
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/cluster.py", line 1787, in run_add_or_renew_pool
          new_pool = HostConnection(host, distance, self)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/pool.py", line 297, in __init__
          self._connection.set_keyspace_blocking(session.keyspace)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/connection.py", line 773, in set_keyspace_blocking
          raise conn_exc
      ConnectionException: Problem while setting keyspace: InvalidRequest(u'code=2200 [Invalid query] message="Keyspace \'Keyspace1\' does not exist"',)
      cassandra.cluster: WARNING: Failed to create connection pool for new host 127.0.0.2:
      Traceback (most recent call last):
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/cluster.py", line 1787, in run_add_or_renew_pool
          new_pool = HostConnection(host, distance, self)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/pool.py", line 297, in __init__
          self._connection.set_keyspace_blocking(session.keyspace)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/connection.py", line 773, in set_keyspace_blocking
          raise conn_exc
      ConnectionException: Problem while setting keyspace: InvalidRequest(u'code=2200 [Invalid query] message="Keyspace \'Keyspace1\' does not exist"',)
      cassandra.cluster: WARNING: Failed to create connection pool for new host 127.0.0.2:
      Traceback (most recent call last):
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/cluster.py", line 1787, in run_add_or_renew_pool
          new_pool = HostConnection(host, distance, self)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/pool.py", line 297, in __init__
          self._connection.set_keyspace_blocking(session.keyspace)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/connection.py", line 773, in set_keyspace_blocking
          raise conn_exc
      ConnectionException: Problem while setting keyspace: InvalidRequest(u'code=2200 [Invalid query] message="Keyspace \'Keyspace1\' does not exist"',)
      cassandra.cluster: WARNING: Failed to create connection pool for new host 127.0.0.1:
      Traceback (most recent call last):
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/cluster.py", line 1787, in run_add_or_renew_pool
          new_pool = HostConnection(host, distance, self)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/pool.py", line 297, in __init__
          self._connection.set_keyspace_blocking(session.keyspace)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/connection.py", line 773, in set_keyspace_blocking
          raise conn_exc
      ConnectionException: Problem while setting keyspace: InvalidRequest(u'code=2200 [Invalid query] message="Keyspace \'Keyspace1\' does not exist"',)
      cassandra.cluster: WARNING: Failed to create connection pool for new host 127.0.0.2:
      Traceback (most recent call last):
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/cluster.py", line 1787, in run_add_or_renew_pool
          new_pool = HostConnection(host, distance, self)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/pool.py", line 297, in __init__
          self._connection.set_keyspace_blocking(session.keyspace)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/connection.py", line 773, in set_keyspace_blocking
          raise conn_exc
      ConnectionException: Problem while setting keyspace: InvalidRequest(u'code=2200 [Invalid query] message="Keyspace \'Keyspace1\' does not exist"',)
      cassandra.cluster: WARNING: Failed to create connection pool for new host 127.0.0.1:
      Traceback (most recent call last):
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/cluster.py", line 1787, in run_add_or_renew_pool
          new_pool = HostConnection(host, distance, self)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/pool.py", line 297, in __init__
          self._connection.set_keyspace_blocking(session.keyspace)
        File "build/bdist.macosx-10.11-x86_64/egg/cassandra/connection.py", line 773, in set_keyspace_blocking
          raise conn_exc
      ConnectionException: Problem while setting keyspace: InvalidRequest(u'code=2200 [Invalid query] message="Keyspace \'Keyspace1\' does not exist"',)
      dtest: DEBUG: re-creating the keyspace and column families.
      dtest: DEBUG: Calling sstableloader
      dtest: DEBUG: Reading data back
      

      I expect the issue is just that CASSANDRA-10806 needs backported to 2.2.x.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            marcuse Marcus Eriksson Assign to me
            philipthompson Philip Thompson
            Marcus Eriksson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment