Philip Thompson created CASSANDRA-10935:
-------------------------------------------

             Summary: sstableloader_uppercase_keyspace_name_test is failing on 
2.2
                 Key: CASSANDRA-10935
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10935
             Project: Cassandra
          Issue Type: Sub-task
          Components: Tools
            Reporter: Philip Thompson
             Fix For: 2.2.x


{{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:
{code}
======================================================================
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
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to