Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17456

Test Failures: write_failures_test.TestMultiDCWriteFailures.test_oversized_mutation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.1-alpha1, 4.1
    • CI
    • None
    • Correctness - Test Failure
    • Normal
    • Normal
    • Unit Test
    • All
    • None
    • 4.1
    • Committed as 9f3bc657273dfa9e20d233636adf662904f01f34 to 4.1 and 11bdf1bf8038fa7f872fe9161a0568d023e6cfac to trunk.

    • Hide

      I made the existing dtest applicable to C* versions until 4.0.x and added an in-jvm dtest to cover rejection of oversized mutations on insert.

      Show
      I made the existing dtest applicable to C* versions until 4.0.x and added an in-jvm dtest to cover rejection of oversized mutations on insert.

    Description

      https://ci-cassandra.apache.org/job/Cassandra-trunk/1002/testReport/dtest-offheap.write_failures_test/TestMultiDCWriteFailures/test_oversized_mutation/

      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

        Issue Links

          Activity

            People

              Gerrrr Alex Sorokoumov
              e.dimitrova Ekaterina Dimitrova
              Alex Sorokoumov
              Andres de la Peña, Josh McKenzie
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m