[ 
https://issues.apache.org/jira/browse/CASSANDRA-14037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16270792#comment-16270792
 ] 

Alex Petrov commented on CASSANDRA-14037:
-----------------------------------------

+1 [~jkni], I had the same patch locally but I didn't get to submit it. Thank 
you!

> sstableloader_with_failing_2i_test - 
> sstable_generation_loading_test.TestSSTableGenerationAndLoading fails: 
> Expected [['k', 'idx']] ... but got [[u'k', u'idx', None]]
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14037
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14037
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Michael Kjellman
>            Assignee: Joel Knighton
>
> sstableloader_with_failing_2i_test - 
> sstable_generation_loading_test.TestSSTableGenerationAndLoading fails: 
> Expected [['k', 'idx']] ... but got [[u'k', u'idx', None]]
> Expected [['k', 'idx']] from SELECT * FROM system."IndexInfo" WHERE 
> table_name='k', but got [[u'k', u'idx', None]]
> -------------------- >> begin captured logging << --------------------
> dtest: DEBUG: cluster ccm directory: /tmp/dtest-2My0fh
> dtest: DEBUG: Done setting configuration options:
> {   'initial_token': None,
>     'num_tokens': '32',
>     'phi_convict_threshold': 5,
>     'range_request_timeout_in_ms': 10000,
>     'read_request_timeout_in_ms': 10000,
>     'request_timeout_in_ms': 10000,
>     'truncate_request_timeout_in_ms': 10000,
>     'write_request_timeout_in_ms': 10000}
> cassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:
> Traceback (most recent call last):
>   File "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal
>     return self._try_connect(host)
>   File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect
>     connection = self._cluster.connection_factory(host.address, 
> is_control_connection=True)
>   File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory
>     return self.connection_class.factory(address, self.connect_timeout, 
> *args, **kwargs)
>   File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory
>     conn = cls(host, *args, **kwargs)
>   File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__
>     self._connect_socket()
>   File "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket
>     raise socket.error(sockerr.errno, "Tried connecting to %s. Last error: 
> %s" % ([a[4] for a in addresses], sockerr.strerror or sockerr))
> error: [Errno 111] Tried connecting to [('127.0.0.1', 9042)]. Last error: 
> Connection refused
> cassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:
> Traceback (most recent call last):
>   File "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal
>     return self._try_connect(host)
>   File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect
>     connection = self._cluster.connection_factory(host.address, 
> is_control_connection=True)
>   File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory
>     return self.connection_class.factory(address, self.connect_timeout, 
> *args, **kwargs)
>   File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory
>     conn = cls(host, *args, **kwargs)
>   File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__
>     self._connect_socket()
>   File "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket
>     raise socket.error(sockerr.errno, "Tried connecting to %s. Last error: 
> %s" % ([a[4] for a in addresses], sockerr.strerror or sockerr))
> error: [Errno 111] Tried connecting to [('127.0.0.1', 9042)]. Last error: 
> Connection refused
> cassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:
> Traceback (most recent call last):
>   File "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal
>     return self._try_connect(host)
>   File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect
>     connection = self._cluster.connection_factory(host.address, 
> is_control_connection=True)
>   File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory
>     return self.connection_class.factory(address, self.connect_timeout, 
> *args, **kwargs)
>   File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory
>     conn = cls(host, *args, **kwargs)
>   File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__
>     self._connect_socket()
>   File "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket
>     raise socket.error(sockerr.errno, "Tried connecting to %s. Last error: 
> %s" % ([a[4] for a in addresses], sockerr.strerror or sockerr))
> error: [Errno 111] Tried connecting to [('127.0.0.1', 9042)]. Last error: 
> Connection refused
> cassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:
> Traceback (most recent call last):
>   File "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal
>     return self._try_connect(host)
>   File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect
>     connection = self._cluster.connection_factory(host.address, 
> is_control_connection=True)
>   File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory
>     return self.connection_class.factory(address, self.connect_timeout, 
> *args, **kwargs)
>   File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory
>     conn = cls(host, *args, **kwargs)
>   File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__
>     self._connect_socket()
>   File "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket
>     raise socket.error(sockerr.errno, "Tried connecting to %s. Last error: 
> %s" % ([a[4] for a in addresses], sockerr.strerror or sockerr))
> error: [Errno 111] Tried connecting to [('127.0.0.1', 9042)]. Last error: 
> Connection refused
> cassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:
> Traceback (most recent call last):
>   File "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal
>     return self._try_connect(host)
>   File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect
>     connection = self._cluster.connection_factory(host.address, 
> is_control_connection=True)
>   File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory
>     return self.connection_class.factory(address, self.connect_timeout, 
> *args, **kwargs)
>   File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory
>     conn = cls(host, *args, **kwargs)
>   File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__
>     self._connect_socket()
>   File "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket
>     raise socket.error(sockerr.errno, "Tried connecting to %s. Last error: 
> %s" % ([a[4] for a in addresses], sockerr.strerror or sockerr))
> error: [Errno 111] Tried connecting to [('127.0.0.1', 9042)]. Last error: 
> Connection refused
> cassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:
> Traceback (most recent call last):
>   File "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal
>     return self._try_connect(host)
>   File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect
>     connection = self._cluster.connection_factory(host.address, 
> is_control_connection=True)
>   File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory
>     return self.connection_class.factory(address, self.connect_timeout, 
> *args, **kwargs)
>   File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory
>     conn = cls(host, *args, **kwargs)
>   File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__
>     self._connect_socket()
>   File "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket
>     raise socket.error(sockerr.errno, "Tried connecting to %s. Last error: 
> %s" % ([a[4] for a in addresses], sockerr.strerror or sockerr))
> error: [Errno 111] Tried connecting to [('127.0.0.1', 9042)]. Last error: 
> Connection refused
> --------------------- >> end captured logging << ---------------------
>   File "/usr/lib/python2.7/unittest/case.py", line 329, in run
>     testMethod()
>   File "/home/cassandra/cassandra-dtest/tools/decorators.py", line 48, in 
> wrapped
>     f(obj)
>   File "/home/cassandra/cassandra-dtest/sstable_generation_loading_test.py", 
> line 333, in sstableloader_with_failing_2i_test
>     assert_one(session, """SELECT * FROM system."IndexInfo" WHERE 
> table_name='k'""", ['k', 'idx'])
>   File "/home/cassandra/cassandra-dtest/tools/assertions.py", line 130, in 
> assert_one
>     assert list_res == [expected], "Expected {} from {}, but got 
> {}".format([expected], query, list_res)
> 'Expected [[\'k\', \'idx\']] from SELECT * FROM system."IndexInfo" WHERE 
> table_name=\'k\', but got [[u\'k\', u\'idx\', None]]\n-------------------- >> 
> begin captured logging << --------------------\ndtest: DEBUG: cluster ccm 
> directory: /tmp/dtest-2My0fh\ndtest: DEBUG: Done setting configuration 
> options:\n{   \'initial_token\': None,\n    \'num_tokens\': \'32\',\n    
> \'phi_convict_threshold\': 5,\n    \'range_request_timeout_in_ms\': 10000,\n  
>   \'read_request_timeout_in_ms\': 10000,\n    \'request_timeout_in_ms\': 
> 10000,\n    \'truncate_request_timeout_in_ms\': 10000,\n    
> \'write_request_timeout_in_ms\': 10000}\ncassandra.cluster: WARNING: [control 
> connection] Error connecting to 127.0.0.1:\nTraceback (most recent call 
> last):\n  File "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal\n    return 
> self._try_connect(host)\n  File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect\n    connection = 
> self._cluster.connection_factory(host.address, is_control_connection=True)\n  
> File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory\n    return 
> self.connection_class.factory(address, self.connect_timeout, *args, 
> **kwargs)\n  File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory\n    conn = cls(host, *args, 
> **kwargs)\n  File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__\n    self._connect_socket()\n  File 
> "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket\n    raise 
> socket.error(sockerr.errno, "Tried connecting to %s. Last error: %s" % ([a[4] 
> for a in addresses], sockerr.strerror or sockerr))\nerror: [Errno 111] Tried 
> connecting to [(\'127.0.0.1\', 9042)]. Last error: Connection 
> refused\ncassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:\nTraceback (most recent call last):\n  File 
> "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal\n    return 
> self._try_connect(host)\n  File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect\n    connection = 
> self._cluster.connection_factory(host.address, is_control_connection=True)\n  
> File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory\n    return 
> self.connection_class.factory(address, self.connect_timeout, *args, 
> **kwargs)\n  File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory\n    conn = cls(host, *args, 
> **kwargs)\n  File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__\n    self._connect_socket()\n  File 
> "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket\n    raise 
> socket.error(sockerr.errno, "Tried connecting to %s. Last error: %s" % ([a[4] 
> for a in addresses], sockerr.strerror or sockerr))\nerror: [Errno 111] Tried 
> connecting to [(\'127.0.0.1\', 9042)]. Last error: Connection 
> refused\ncassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:\nTraceback (most recent call last):\n  File 
> "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal\n    return 
> self._try_connect(host)\n  File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect\n    connection = 
> self._cluster.connection_factory(host.address, is_control_connection=True)\n  
> File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory\n    return 
> self.connection_class.factory(address, self.connect_timeout, *args, 
> **kwargs)\n  File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory\n    conn = cls(host, *args, 
> **kwargs)\n  File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__\n    self._connect_socket()\n  File 
> "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket\n    raise 
> socket.error(sockerr.errno, "Tried connecting to %s. Last error: %s" % ([a[4] 
> for a in addresses], sockerr.strerror or sockerr))\nerror: [Errno 111] Tried 
> connecting to [(\'127.0.0.1\', 9042)]. Last error: Connection 
> refused\ncassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:\nTraceback (most recent call last):\n  File 
> "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal\n    return 
> self._try_connect(host)\n  File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect\n    connection = 
> self._cluster.connection_factory(host.address, is_control_connection=True)\n  
> File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory\n    return 
> self.connection_class.factory(address, self.connect_timeout, *args, 
> **kwargs)\n  File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory\n    conn = cls(host, *args, 
> **kwargs)\n  File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__\n    self._connect_socket()\n  File 
> "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket\n    raise 
> socket.error(sockerr.errno, "Tried connecting to %s. Last error: %s" % ([a[4] 
> for a in addresses], sockerr.strerror or sockerr))\nerror: [Errno 111] Tried 
> connecting to [(\'127.0.0.1\', 9042)]. Last error: Connection 
> refused\ncassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:\nTraceback (most recent call last):\n  File 
> "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal\n    return 
> self._try_connect(host)\n  File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect\n    connection = 
> self._cluster.connection_factory(host.address, is_control_connection=True)\n  
> File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory\n    return 
> self.connection_class.factory(address, self.connect_timeout, *args, 
> **kwargs)\n  File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory\n    conn = cls(host, *args, 
> **kwargs)\n  File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__\n    self._connect_socket()\n  File 
> "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket\n    raise 
> socket.error(sockerr.errno, "Tried connecting to %s. Last error: %s" % ([a[4] 
> for a in addresses], sockerr.strerror or sockerr))\nerror: [Errno 111] Tried 
> connecting to [(\'127.0.0.1\', 9042)]. Last error: Connection 
> refused\ncassandra.cluster: WARNING: [control connection] Error connecting to 
> 127.0.0.1:\nTraceback (most recent call last):\n  File 
> "cassandra/cluster.py", line 2781, in 
> cassandra.cluster.ControlConnection._reconnect_internal\n    return 
> self._try_connect(host)\n  File "cassandra/cluster.py", line 2803, in 
> cassandra.cluster.ControlConnection._try_connect\n    connection = 
> self._cluster.connection_factory(host.address, is_control_connection=True)\n  
> File "cassandra/cluster.py", line 1195, in 
> cassandra.cluster.Cluster.connection_factory\n    return 
> self.connection_class.factory(address, self.connect_timeout, *args, 
> **kwargs)\n  File "cassandra/connection.py", line 332, in 
> cassandra.connection.Connection.factory\n    conn = cls(host, *args, 
> **kwargs)\n  File 
> "/home/cassandra/env/src/cassandra-driver/cassandra/io/asyncorereactor.py", 
> line 344, in __init__\n    self._connect_socket()\n  File 
> "cassandra/connection.py", line 371, in 
> cassandra.connection.Connection._connect_socket\n    raise 
> socket.error(sockerr.errno, "Tried connecting to %s. Last error: %s" % ([a[4] 
> for a in addresses], sockerr.strerror or sockerr))\nerror: [Errno 111] Tried 
> connecting to [(\'127.0.0.1\', 9042)]. Last error: Connection 
> refused\n--------------------- >> end captured logging << 
> ---------------------'



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to