cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andres de la Peña (Jira) <>
Subject [jira] [Commented] (CASSANDRA-16972) Fix org.apache.cassandra.cql3.ViewTest.testTruncateWhileBuilding
Date Thu, 23 Sep 2021 09:36:00 GMT


Andres de la Peña commented on CASSANDRA-16972:

I think that the check for the completion of the MV build completion [here|]
is not reliable in 3.0 and 3.11 because in those branches the views are built on the same
executor that is used for compaction and the number of pending compaction tasks is estimated.
That's not a problem in 4.0 and trunk because in those branches the MVs are built on their
own dedicated executor.

The proposed patch just removes the wait for the running compactions and instead waits for
the MV to be marked as built. That seems to survive 5000 runs of the {{ViewTest#testTruncateWhileBuilding}}
method and 2000 of for the entire {{ViewTest}} suite:

||branch||Multiplexed method||Multiplexed suite||
|[3.0|]  |[j8|]|[j8|]|
|[3.11|] |[j8|]|[j8|]|
|[4.0|]  |[j8|]

> Fix org.apache.cassandra.cql3.ViewTest.testTruncateWhileBuilding 
> -----------------------------------------------------------------
>                 Key: CASSANDRA-16972
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/unit
>            Reporter: Ekaterina Dimitrova
>            Assignee: Andres de la Peña
>            Priority: Normal
>             Fix For: 3.11.x
> [org.apache.cassandra.cql3.ViewTest.testTruncateWhileBuilding|] 
fails in 3.11
> {code:java}
> Error Message
> expected:<0> but was:<1>
> Stacktrace
> junit.framework.AssertionFailedError: expected:<0> but was:<1> at org.apache.cassandra.Util.spinAssertEquals(
at org.apache.cassandra.cql3.ViewTest.testTruncateWhileBuilding( at org.jboss.byteman.contrib.bmunit.BMUnitRunner$9.evaluate(
at org.jboss.byteman.contrib.bmunit.BMUnitRunner$6.evaluate( at org.jboss.byteman.contrib.bmunit.BMUnitRunner$1.evaluate(
> {code}

This message was sent by Atlassian Jira

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

View raw message