Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Correctness - Test Failure
-
Normal
-
Normal
-
User Report
-
All
-
None
-
Description
Failed 1 times in the last 20 runs. Flakiness: 5%, Stability: 95%
Error Message
AssertionError: assert None + where None = <function search at 0x7f0de9492c10>('This node was decommissioned and will not rejoin the ring', '', re.MULTILINE) + where <function search at 0x7f0de9492c10> = re.search + and '' = <built-in method join of str object at 0x7f0de963b4b0>([]) + where <built-in method join of str object at 0x7f0de963b4b0> = '\n'.join + and re.MULTILINE = re.MULTILINE
Stacktrace self = <topology_test.TestTopology object at 0x7f0de5899430> @since('3.0') def test_decommissioned_node_cant_rejoin(self): """ @jira_ticket CASSANDRA-8801 Test that a decommissioned node can't rejoin the cluster by: - creating a cluster, - decommissioning a node, and - asserting that the "decommissioned node won't rejoin" error is in the logs for that node and - asserting that the node is not running. """ rejoin_err = 'This node was decommissioned and will not rejoin the ring' self.fixture_dtest_setup.ignore_log_patterns = list(self.fixture_dtest_setup.ignore_log_patterns) + [ rejoin_err] self.cluster.populate(3).start() node1, node2, node3 = self.cluster.nodelist() logger.debug('decommissioning...') node3.decommission(force=self.cluster.version() >= '4.0') logger.debug('stopping...') node3.stop() logger.debug('attempting restart...') node3.start(wait_other_notice=False) try: # usually takes 3 seconds, so give it a generous 15 node3.watch_log_for(rejoin_err, timeout=15) except TimeoutError: # TimeoutError is not very helpful to the reader of the test output; # let that pass and move on to string assertion below pass > assert re.search(rejoin_err, '\n'.join(['\n'.join(err_list) for err_list in node3.grep_log_for_errors()]), re.MULTILINE) E AssertionError: assert None E + where None = <function search at 0x7f0de9492c10>('This node was decommissioned and will not rejoin the ring', '', re.MULTILINE) E + where <function search at 0x7f0de9492c10> = re.search E + and '' = <built-in method join of str object at 0x7f0de963b4b0>([]) E + where <built-in method join of str object at 0x7f0de963b4b0> = '\n'.join E + and re.MULTILINE = re.MULTILINE topology_test.py:416: AssertionError