[ https://issues.apache.org/jira/browse/CASSANDRA-19520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Caleb Rackliffe updated CASSANDRA-19520: ---------------------------------------- Fix Version/s: 5.1-alpha > Test failure: > upgrade_tests.py::upgrade_through_versions_test::test_bootstrap_multidc > failing counter checks > ------------------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-19520 > URL: https://issues.apache.org/jira/browse/CASSANDRA-19520 > Project: Cassandra > Issue Type: Bug > Components: Consistency/Bootstrap and Decommission, > Feature/Counters, Test/dtest/python > Reporter: Caleb Rackliffe > Priority: Normal > Fix For: 5.1-alpha > > Attachments: TESTS-TestSuites.xml, ci_summary.html > > > This appears to be a new failure in {{{}test_bootstrap_multidc{}}}, around > {{upgrade_scenario}} verifying counter updates. I can't reproduce locally, so > perhaps there is a counter race condition lurking somewhere... > {noformat} > assert 249 == 248 +249 -248 > self = > <upgrade_tests.upgrade_through_versions_test.TestUpgrade_indev_4_0_x_To_indev_trunk > object at 0x7fbae9b96550> > def test_bootstrap_multidc(self): > # try and add a new node > # multi dc, 2 nodes in each dc > self.prepare() > cluster = self.cluster > if cluster.version() >= '5.0': > cluster.set_configuration_options({'user_defined_functions_threads_enabled': > 'true', > 'scripted_user_defined_functions_enabled': 'false'}) > elif cluster.version() >= '3.0': > cluster.set_configuration_options({'enable_user_defined_functions': 'true', > 'enable_scripted_user_defined_functions': 'true'}) > elif cluster.version() >= '2.2': > cluster.set_configuration_options({'enable_user_defined_functions': 'true'}) > cluster.populate([2, 2]) > [node.start(use_jna=True, wait_for_binary_proto=True) for node in > self.cluster.nodelist()] > self._multidc_schema_create() > > self.upgrade_scenario(populate=False, create_schema=False, > > after_upgrade_call=(self._bootstrap_new_node_multidc,)) > upgrade_tests/upgrade_through_versions_test.py:865: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > upgrade_tests/upgrade_through_versions_test.py:506: in upgrade_scenario > call() > upgrade_tests/upgrade_through_versions_test.py:841: in > _bootstrap_new_node_multidc > self._check_counters() > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > self = > <upgrade_tests.upgrade_through_versions_test.TestUpgrade_indev_4_0_x_To_indev_trunk > object at 0x7fbae9b96550> > def _check_counters(self): > logger.debug("Checking counter values...") > session = self.patient_cql_connection(self.node2, > protocol_version=self.protocol_version) > session.execute("use upgrade;") > for key1 in list(self.expected_counts.keys()): > for key2 in list(self.expected_counts[key1].keys()): > expected_value = self.expected_counts[key1][key2] > query = SimpleStatement("SELECT c from countertable where k1='{key1}' and > k2={key2};".format(key1=key1, key2=key2), > consistency_level=ConsistencyLevel.ONE) > results = session.execute(query) > if results is not None: > actual_value = results[0][0] > else: > # counter wasn't found > actual_value = None > > assert actual_value == expected_value > E assert 249 == 248 > E +249 > E -248 > upgrade_tests/upgrade_through_versions_test.py:789: AssertionError > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org