Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Correctness - Test Failure
-
Normal
-
Normal
-
Unit Test
-
All
-
None
-
Committed as 9f3bc657273dfa9e20d233636adf662904f01f34 to 4.1 and 11bdf1bf8038fa7f872fe9161a0568d023e6cfac to trunk.
-
Description
Error Message AssertionError: assert 0 == 8 + where 8 = <bound method JolokiaAgent.read_attribute of <tools.jmxutils.JolokiaAgent object at 0x7f1fca78dac0>>('org.apache.cassandra.metrics:type=Storage,name=TotalHints', 'Count') + where <bound method JolokiaAgent.read_attribute of <tools.jmxutils.JolokiaAgent object at 0x7f1fca78dac0>> = <tools.jmxutils.JolokiaAgent object at 0x7f1fca78dac0>.read_attribute + and 'org.apache.cassandra.metrics:type=Storage,name=TotalHints' = make_mbean('metrics', type='Storage', name='TotalHints') Stacktrace self = <write_failures_test.TestMultiDCWriteFailures object at 0x7f1fca9dac40> def test_oversized_mutation(self): """ Test that multi-DC write failures return operation failed rather than a timeout. @jira_ticket CASSANDRA-16334. """ cluster = self.cluster cluster.populate([2, 2]) cluster.set_configuration_options(values={'max_mutation_size_in_kb': 128}) cluster.start() node1 = cluster.nodelist()[0] session = self.patient_exclusive_cql_connection(node1) session.execute("CREATE KEYSPACE k WITH replication = {'class': 'NetworkTopologyStrategy', 'dc1': 2, 'dc2': 2}") session.execute("CREATE TABLE k.t (key int PRIMARY KEY, val blob)") payload = '1' * 1024 * 256 query = "INSERT INTO k.t (key, val) VALUES (1, textAsBlob('{}'))".format(payload) assert_write_failure(session, query, ConsistencyLevel.LOCAL_ONE) assert_write_failure(session, query, ConsistencyLevel.ONE) # verify that no hints are created with JolokiaAgent(node1) as jmx: > assert 0 == jmx.read_attribute(make_mbean('metrics', type='Storage', name='TotalHints'), 'Count') E AssertionError: assert 0 == 8 E + where 8 = <bound method JolokiaAgent.read_attribute of <tools.jmxutils.JolokiaAgent object at 0x7f1fca78dac0>>('org.apache.cassandra.metrics:type=Storage,name=TotalHints', 'Count') E + where <bound method JolokiaAgent.read_attribute of <tools.jmxutils.JolokiaAgent object at 0x7f1fca78dac0>> = <tools.jmxutils.JolokiaAgent object at 0x7f1fca78dac0>.read_attribute E + and 'org.apache.cassandra.metrics:type=Storage,name=TotalHints' = make_mbean('metrics', type='Storage', name='TotalHints') write_failures_test.py:277: AssertionError REST API CloudBees CI Client Controller 2.319.3.4-rolling
Attachments
Attachments
Issue Links
- is related to
-
CASSANDRA-17164 CEP-14: Paxos Improvements
- Resolved
- links to