cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrés de la Peña (JIRA) <>
Subject [jira] [Commented] (CASSANDRA-13965) SecondaryIndexManagerTest.assert[Not]MarkedAsBuilt produces flaky tests
Date Wed, 18 Oct 2017 15:31:00 GMT


Andrés de la Peña commented on CASSANDRA-13965:

[Here|] is a patch
modifying the methods to only verify the presence/absence in {{system.IndexInfo}} table of
the index of interest.

> SecondaryIndexManagerTest.assert[Not]MarkedAsBuilt produces flaky tests
> -----------------------------------------------------------------------
>                 Key: CASSANDRA-13965
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Secondary Indexes, Testing
>            Reporter: Andrés de la Peña
>            Assignee: Andrés de la Peña
>            Priority: Minor
>             Fix For: 4.x
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message