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

Handle both TimeoutError and NodeError when expecting node start failure

    XMLWordPrintableJSON

Details

    Description

      Summary

      Some tests are validating situation, when node (or cluster) does not start correctly.

      They rely on `TimeoutError` to be raised, but technically it is also possible that `ccm` will raise `NodeError` without waiting for timeout to be met.

      Why we need this change

      We can improve `ccm` to fail fast in case node being started terminates. This would:

      • make unexpected test failures faster to fail (not waiting 90 or 120s)
      • shorten overall test duration, even if timeout is given

      ccm work (in progress): https://github.com/riptano/ccm/pull/724

      Proposed improvement

      Handle both TimeoutError and NodeError as expected node failure.

      PR

      https://github.com/apache/cassandra-dtest/pull/120

       

      Attachments

        Activity

          People

            tomasz.lasica Tomasz Lasica
            tomasz.lasica Tomasz Lasica
            Tomasz Lasica
            Jacek Lewandowski, Michael Semb Wever
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: