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

SecondaryIndexManagerTest.assert[Not]MarkedAsBuilt produces flaky tests

    XMLWordPrintableJSON

    Details

    • Severity:
      Low

      Description

      The methods SecondaryIndexManagerTest.assertMarkedAsBuilt and SecondaryIndexManagerTest.assertNotMarkedAsBuilt produce occasional test failures.

      These methods assume that there aren't any other indexes in the system.IndexInfo table than those created by the calling test. However, it is possible to find indexes built for other tests (not only SecondaryIndexManagerTest) that rely on CQLTester.afterTest to cleanup to drop their created indexes, because this method is asynchronous. So, it is possible to reach the SecondaryIndexManagerTest.assert(Not)MarkedAsBuilt calls before the indexes created by the previous test have been cleaned up.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                adelapena Andres de la Peña
                Reporter:
                adelapena Andres de la Peña
                Authors:
                Andres de la Peña
                Reviewers:
                Robert Stupp
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: