[ 
https://issues.apache.org/jira/browse/IGNITE-23520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kirill Tkalenko updated IGNITE-23520:
-------------------------------------
    Ignite Flags:   (was: Docs Required,Release Notes Required)

> Fix flaky 
> IndexAvailabilityControllerTest#testMetastoreKeysAfterDropIndexWithTwoRemainingPartitions
> ---------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-23520
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23520
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Kirill Tkalenko
>            Assignee: Kirill Tkalenko
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Need to fix the flaky 
> org.apache.ignite.internal.index.IndexAvailabilityControllerTest#testMetastoreKeysAfterDropIndexWithTwoRemainingPartitions.
> [Tc.|https://ci.ignite.apache.org/viewLog.html?buildId=8568088&buildTypeId=ApacheIgnite3xGradle_Test_RunAllTests&fromSakuraUI=true]
> StackTrace:
> {noformat}
> java.lang.AssertionError: java.util.concurrent.TimeoutException
>       at 
> org.apache.ignite.internal.testframework.matchers.CompletableFutureMatcher.matchesSafely(CompletableFutureMatcher.java:78)
>       at 
> org.apache.ignite.internal.testframework.matchers.CompletableFutureMatcher.matchesSafely(CompletableFutureMatcher.java:35)
>       at org.hamcrest.TypeSafeMatcher.matches(TypeSafeMatcher.java:83)
>       at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:10)
>       at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
>       at 
> org.apache.ignite.internal.index.IndexAvailabilityControllerTest.finishBuildingIndexForPartition(IndexAvailabilityControllerTest.java:408)
>       at 
> org.apache.ignite.internal.index.IndexAvailabilityControllerTest.testMetastoreKeysAfterDropIndexWithTwoRemainingPartitions(IndexAvailabilityControllerTest.java:324)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
> Caused by: java.util.concurrent.TimeoutException
>       at 
> java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886)
>       at 
> java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021)
>       at 
> org.apache.ignite.internal.testframework.matchers.CompletableFutureMatcher.matchesSafely(CompletableFutureMatcher.java:74)
>       ... 9 more
> {noformat}
> The problem turned out to be a race between registering the listener and 
> starting the index building task. First, we need to register the listener and 
> only then start the task.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to