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

Test failure: dtest.bootstrap_test.TestBootstrap.test_cleanup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • 5.0.x, 5.x
    • Test/dtest/python
    • None
    • Correctness - Test Failure
    • Normal
    • Normal
    • User Report
    • All
    • None

    Description

       

      assert not True
      + where True = <bound method Event.is_set of <threading.Event object at 0x7f5b16fda070>>()
      + where <bound method Event.is_set of <threading.Event object at 0x7f5b16fda070>> = <threading.Event object at 0x7f5b16fda070>.is_set
      Stacktrace
      self = <bootstrap_test.TestBootstrap object at 0x7f5b25f4f880>
      def test_cleanup(self):
      """
      @jira_ticket CASSANDRA-11179
      Make sure we remove processed files during cleanup
      """
      cluster = self.cluster
      cluster.set_environment_variable('CASSANDRA_TOKEN_PREGENERATION_DISABLED', 'True')
      cluster.set_configuration_options(values=
      {'concurrent_compactors': 4}
      )
      cluster.populate(1)
      cluster.start()
      node1, = cluster.nodelist()
      for x in range(0, 5):
      node1.stress(['write', 'n=100k', 'no-warmup', '-schema', 'compaction(strategy=SizeTieredCompactionStrategy,enabled=false)', 'replication(factor=1)', '-rate', 'threads=10'])
      node1.flush()
      node2 = new_node(cluster)
      node2.start(wait_for_binary_proto=True)
      event = threading.Event()
      failed = threading.Event()
      jobs = 1
      thread = threading.Thread(target=self._monitor_datadir, args=(node1, event, len(node1.get_sstables("keyspace1", "standard1")), jobs, failed))
      thread.setDaemon(True)
      thread.start()
      node1.nodetool("cleanup -j {} keyspace1 standard1".format(jobs))
      event.set()
      thread.join()
      > assert not failed.is_set()
      E assert not True
      E + where True = <bound method Event.is_set of <threading.Event object at 0x7f5b16fda070>>()
      E + where <bound method Event.is_set of <threading.Event object at 0x7f5b16fda070>> = <threading.Event object at 0x7f5b16fda070>.is_set
      bootstrap_test.py:912: AssertionError
      

       

      failed twice

      Attachments

        Activity

          People

            brandon.williams Brandon Williams
            maxwellguo Maxwell Guo
            Brandon Williams
            Berenguer Blasi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: