Unit Test Results.

Designed for use with JUnit and Ant.

All Failures

ClassNameStatusTypeTime(s)
8_cythonno_x86_64_14_64test_cant_create_existing_userFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-35r73g7p/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab24bebb0>
process = <subprocess.Popen object at 0x7ffab1ca6040>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-35r73g7p/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <auth_test.TestAuth object at 0x7ffab2985730>

def test_cant_create_existing_user(self):
"""
* Launch a one node cluster
* Connect as the default superuser
* Create a new user
* Verify that attempting to create a duplicate user fails with InvalidRequest
"""
> self.prepare()

auth_test.py:185:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
auth_test.py:1135: in prepare
self.cluster.populate(nodes).start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab24bebb0>
process = <subprocess.Popen object at 0x7ffab1ca6040>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-35r73g7p/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.529
8_cythonno_x86_64_14_64test_killed_wiped_node_cannot_joinFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-y6bbxrjd/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab25a8fd0>
process = <subprocess.Popen object at 0x7ffab25add00>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-y6bbxrjd/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <bootstrap_test.TestBootstrap object at 0x7ffab28fb460>

def test_killed_wiped_node_cannot_join(self):
> self._wiped_node_cannot_join_test(gently=False)

bootstrap_test.py:621:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
bootstrap_test.py:638: in _wiped_node_cannot_join_test
cluster.start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab25a8fd0>
process = <subprocess.Popen object at 0x7ffab25add00>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-y6bbxrjd/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.758
8_cythonno_x86_64_14_64test_compression_cql_optionsFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-1tt8q478/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab275b940>
process = <subprocess.Popen object at 0x7ffab29a8d90>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-1tt8q478/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <compression_test.TestCompression object at 0x7ffab291f4f0>

@since("3.0")
def test_compression_cql_options(self):
"""
@jira_ticket CASSANDRA-8384
using new cql create table syntax to configure compression
"""
cluster = self.cluster
> cluster.populate(1).start()

compression_test.py:63:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab275b940>
process = <subprocess.Popen object at 0x7ffab29a8d90>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-1tt8q478/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.817
8_cythonno_x86_64_14_64test_prepared_statement_invalidationFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-rgz_v3jm/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab158b460>
process = <subprocess.Popen object at 0x7ffab2666730>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-rgz_v3jm/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <cql_test.TestMiscellaneousCQL object at 0x7ffab2750ee0>

def test_prepared_statement_invalidation(self):
"""
@jira_ticket CASSANDRA-7910

- CREATE a table and INSERT a row
- prepare 2 prepared SELECT statements
- SELECT the row with a bound prepared statement and assert it returns the expected row
- ALTER the table, dropping a column
- assert prepared statement without that column in it still works
- assert prepared statement containing that column fails
- ALTER the table, adding a column
- assert prepared statement without that column in it still works
- assert prepared statement containing that column also still works
- ALTER the table, changing the type of a column
- assert that both prepared statements still work
"""
> session = self.prepare()

cql_test.py:632:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cql_test.py:57: in prepare
cluster.populate(nodes).start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab158b460>
process = <subprocess.Popen object at 0x7ffab2666730>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-rgz_v3jm/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.044
8_cythonno_x86_64_14_64test_collection_updateFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-mf7tcbax/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab2942850>
process = <subprocess.Popen object at 0x7ffab2985370>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-mf7tcbax/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <json_test.TestFromJsonUpdate object at 0x7ffab270b790>

def test_collection_update(self):
"""
Setup schema, add a row:

>>> cqlsh('''
... CREATE TABLE basic_collections (
... key1 text PRIMARY KEY,
... mylist list<text>,
... myset set<text>,
... mymap map<text, int>)
... ''')

>>> cqlsh("INSERT INTO basic_collections (key1) values ('row1')")

Issue some updates:

>>> cqlsh('''
... UPDATE basic_collections
... SET mylist = fromJson('["c"]'),
... myset = fromJson('["f"]'),
... mymap = fromJson('{"one": 1}')
... WHERE key1 = 'row1'
... ''')

>>> cqlsh('''
... UPDATE basic_collections
... SET mylist = fromJson('["a","b"]') + mylist,
... myset = myset + fromJson('["d","e"]'),
... mymap['two'] = fromJson('2')
... WHERE key1 = 'row1'
... ''')

Query the row and make sure it's correct:

>>> cqlsh_print("SELECT * from basic_collections where key1 = 'row1'")
<BLANKLINE>
key1 | mylist | mymap | myset
------+-----------------+----------------------+-----------------
row1 | ['a', 'b', 'c'] | {'one': 1, 'two': 2} | {'d', 'e', 'f'}
<BLANKLINE>
(1 rows)
<BLANKLINE>

Some more updates of differing types:

>>> cqlsh('''
... UPDATE basic_collections
... SET mylist = mylist + fromJson('["d","e"]'),
... myset = myset + fromJson('["g"]'),
... mymap['three'] = fromJson('3')
... WHERE key1 = 'row1'
... ''')

>>> cqlsh('''
... UPDATE basic_collections
... SET mylist = mylist - fromJson('["b"]'),
... myset = myset - fromJson('["d"]'),
... mymap['three'] = fromJson('4')
... WHERE key1 = 'row1'
... ''')

Query final state and check it:

>>> cqlsh_print("SELECT * from basic_collections where key1 = 'row1'")
<BLANKLINE>
key1 | mylist | mymap | myset
------+----------------------+----------------------------------+-----------------
row1 | ['a', 'c', 'd', 'e'] | {'one': 1, 'three': 4, 'two': 2} | {'e', 'f', 'g'}
<BLANKLINE>
(1 rows)
<BLANKLINE>
"""
> run_func_docstring(tester=self, test_func=self.test_collection_update)

json_test.py:758:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
json_test.py:176: in run_func_docstring
globs = build_doc_context(tester, name)
json_test.py:38: in build_doc_context
tester.cluster.populate(1).start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab2942850>
process = <subprocess.Popen object at 0x7ffab2985370>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-mf7tcbax/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.434
8_cythonno_x86_64_14_64test_paging_with_no_clustering_columnsFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-jr0i_lbe/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab2624220>
process = <subprocess.Popen object at 0x7ffab2619e20>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-jr0i_lbe/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <paging_test.TestPagingData object at 0x7ffab26e49a0>

def test_paging_with_no_clustering_columns(self):
"""
test paging for tables without clustering columns
@jira_ticket CASSANDRA-11208
"""
> session = self.prepare(row_factory=tuple_factory)

paging_test.py:2569:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
paging_test.py:33: in prepare
cluster.populate(3).start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab2624220>
process = <subprocess.Popen object at 0x7ffab2619e20>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-jr0i_lbe/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
35.080
8_cythonno_x86_64_14_64test_replace_with_insufficient_replicasFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-fntup4br/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab2602d90>
process = <subprocess.Popen object at 0x7ffab260b490>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-fntup4br/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <replace_address_test.TestReplaceAddress object at 0x7ffab2688460>

def test_replace_with_insufficient_replicas(self):
"""
Test that replace fails when there are insufficient replicas
@jira_ticket CASSANDRA-11848
"""
self.fixture_dtest_setup.ignore_log_patterns = list(self.fixture_dtest_setup.ignore_log_patterns) + [
r'Unable to find sufficient sources for streaming range']

> self._setup(n=3)

replace_address_test.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
replace_address_test.py:76: in _setup
self.cluster.start(jvm_args=jvm_args)
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab2602d90>
process = <subprocess.Popen object at 0x7ffab260b490>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-fntup4br/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
36.036
8_cythonno_x86_64_14_64test_basic_snapshot_and_restoreFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-oett0ox4/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab0236b80>
process = <subprocess.Popen object at 0x7ffab25adb50>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-oett0ox4/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <snapshot_test.TestSnapshot object at 0x7ffab2651b20>

def test_basic_snapshot_and_restore(self):
cluster = self.cluster
> cluster.populate(1).start()

snapshot_test.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab0236b80>
process = <subprocess.Popen object at 0x7ffab25adb50>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-oett0ox4/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.074
8_cythonno_x86_64_14_64test_describe_describes_non_default_compaction_parametersFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-g0uaiw9d/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab26d7220>
process = <subprocess.Popen object at 0x7ffab26e1130>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-g0uaiw9d/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <cqlsh_tests.test_cqlsh.TestCqlsh object at 0x7ffab25a32e0>

def test_describe_describes_non_default_compaction_parameters(self):
self.cluster.populate(1)
> self.cluster.start()

cqlsh_tests/test_cqlsh.py:950:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab26d7220>
process = <subprocess.Popen object at 0x7ffab26e1130>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-g0uaiw9d/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
34.382
8_cythonno_x86_64_14_64test_null_as_null_indicatorFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-vovv5buc/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab29b5040>
process = <subprocess.Popen object at 0x7ffab24be340>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-vovv5buc/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <cqlsh_tests.test_cqlsh_copy.TestCqlshCopy object at 0x7ffab25072e0>

def test_null_as_null_indicator(self):
"""
Use custom_null_indicator_template to test COPY with NULL = 'null'.
"""
> self.custom_null_indicator_template('null')

cqlsh_tests/test_cqlsh_copy.py:564:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cqlsh_tests/test_cqlsh_copy.py:477: in custom_null_indicator_template
self.prepare()
cqlsh_tests/test_cqlsh_copy.py:116: in prepare
self.cluster.populate(nodes, tokens=tokens).start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab29b5040>
process = <subprocess.Popen object at 0x7ffab24be340>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-vovv5buc/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.530
8_cythonno_x86_64_14_64test_reading_empty_strings_for_different_typesFailureccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-1fuyazup/test/node1/cassandra.pid'

self = <ccmlib.node.Node object at 0x7ffab02c77c0>
process = <subprocess.Popen object at 0x7ffab26d3eb0>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
> with open(pidfile, 'rb') as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-1fuyazup/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2107: FileNotFoundError

During handling of the above exception, another exception occurred:

self = <cqlsh_tests.test_cqlsh_copy.TestCqlshCopy object at 0x7ffab24b9b50>

@since('3.0')
def test_reading_empty_strings_for_different_types(self):
"""
Users can use the NULL=<marker> option to force importing empty strings in the primary key
as long as the marker is set to something that indicates that the value should be safely skipped (typically
something not present in the csv). A problem was reported when trying to import a csv file with
many missing values, including strings and numbers, because the empty strings could not be converted
to numbers.

@jira_ticket CASSANDRA-12794
"""
> self.prepare()

cqlsh_tests/test_cqlsh_copy.py:3147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cqlsh_tests/test_cqlsh_copy.py:116: in prepare
self.cluster.populate(nodes, tokens=tokens).start()
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/cluster.py:543: in start
if not node._wait_for_running(p, timeout_s=7):
../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:938: in _wait_for_running
self._update_pid(process)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ccmlib.node.Node object at 0x7ffab02c77c0>
process = <subprocess.Popen object at 0x7ffab26d3eb0>

def _update_pid(self, process):
"""
Reads pid from cassandra.pid file and stores in the self.pid
After setting up pid updates status (UP, DOWN, etc) and node.conf
"""
pidfile = os.path.join(self.get_path(), 'cassandra.pid')

start = time.time()
while not (os.path.isfile(pidfile) and os.stat(pidfile).st_size > 0):
if (time.time() - start > 30.0):
common.error("Timed out waiting for pidfile to be filled (current time is {})".format(datetime.now()))
break
else:
time.sleep(0.1)

try:
with open(pidfile, 'rb') as f:
if common.is_modern_windows_install(self.get_base_cassandra_version()):
self.pid = int(f.readline().strip().decode('utf-16').strip())
else:
self.pid = int(f.readline().strip())
except IOError as e:
> raise NodeError('Problem starting node %s due to %s' % (self.name, e), process)
E ccmlib.node.NodeError: Problem starting node node1 due to [Errno 2] No such file or directory: '/home/cassandra/cassandra/build/run-python-dtest.aMXms5/dtest-1fuyazup/test/node1/cassandra.pid'

../cassandra/build/venv/lib/python3.8/site-packages/ccmlib/node.py:2113: NodeError
33.142
8_cythonno_x86_64_19_64test_simultaneous_bootstrapFailurecassandra.OperationTimedOut: errors={'127.0.0.2:9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.2:9042

self = <bootstrap_test.TestBootstrap object at 0x7fb537a15ac0>

@since('2.1.1', max_version='5.0.x')
def test_simultaneous_bootstrap(self):
"""
Attempt to bootstrap two nodes at once, to assert the second bootstrapped node fails, and does not interfere.

Start a one node cluster and run a stress write workload.
Start up a second node, and wait for the first node to detect it has joined the cluster.
While the second node is bootstrapping, start a third node. This should fail.

@jira_ticket CASSANDRA-7069
@jira_ticket CASSANDRA-9484
"""

bootstrap_error = "Other bootstrapping/leaving/moving nodes detected," \
" cannot bootstrap while cassandra.consistent.rangemovement is true"

cluster = self.cluster
cluster.set_environment_variable('CASSANDRA_TOKEN_PREGENERATION_DISABLED', 'True')
cluster.populate(1)
cluster.start()

node1, = cluster.nodelist()

node1.stress(['write', 'n=500K', 'no-warmup', '-schema', 'replication(factor=1)',
'-rate', 'threads=10'])

node2 = new_node(cluster)
node2.start()

for _ in range(30): # wait until node2 shows up
ntout = node1.nodetool('status').stdout
if re.search(r'UJ\s+' + node2.ip_addr, ntout):
break
time.sleep(0.1)

node3 = new_node(cluster, remote_debug_port='2003')
try:
node3.start(wait_other_notice=False, verbose=False)
except NodeError:
pass # node doesn't start as expected

time.sleep(.5)
node2.watch_log_for("Starting listening for CQL clients")

node3.watch_log_for(bootstrap_error)

session = self.patient_exclusive_cql_connection(node2)

# Repeat the select count(*) query, to help catch
# bugs like 9484, where count(*) fails at higher
# data loads.
for _ in range(5):
> assert_one(session, "SELECT count(*) from keyspace1.standard1", [500000], cl=ConsistencyLevel.ONE)

bootstrap_test.py:933:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tools/assertions.py:130: in assert_one
res = session.execute(simple_query)
../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:2618: in execute
return self.execute_async(query, parameters, trace, custom_payload, timeout, execution_profile, paging_state, host, execute_as).result()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ResponseFuture: query='<SimpleStatement query="SELECT count(*) from keyspace1.standard1", consistency=ONE>' request_i...9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.2:9042 coordinator_host=None>

def result(self):
"""
Return the final result or raise an Exception if errors were
encountered. If the final result or error has not been set
yet, this method will block until it is set, or the timeout
set for the request expires.

Timeout is specified in the Session request execution functions.
If the timeout is exceeded, an :exc:`cassandra.OperationTimedOut` will be raised.
This is a client-side timeout. For more information
about server-side coordinator timeouts, see :class:`.policies.RetryPolicy`.

Example usage::

>>> future = session.execute_async("SELECT * FROM mycf")
>>> # do other stuff...

>>> try:
... rows = future.result()
... for row in rows:
... ... # process results
... except Exception:
... log.exception("Operation failed:")

"""
self._event.wait()
if self._final_result is not _NOT_SET:
return ResultSet(self, self._final_result)
else:
> raise self._final_exception
E cassandra.OperationTimedOut: errors={'127.0.0.2:9042': 'Client request timeout. See Session.execute[_async](timeout)'}, last_host=127.0.0.2:9042

../cassandra/build/venv/src/cassandra-driver/cassandra/cluster.py:4894: OperationTimedOut
230.861