Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnlineIndexerBuildRankIndexTest::addWhileBuildingParallelRank fails intermittently #2710

Open
alecgrieser opened this issue May 9, 2024 · 0 comments
Labels
indexer Online Indexer issues test failure A test is failing at least some of the time

Comments

@alecgrieser
Copy link
Contributor

This assertion appears to be failing intermittently for the OnlineIndexerBuildRankIndexIndexTest::addWhileBuildingParallelRank test:

assertEquals(indexBuilder.getTotalRecordsScanned(), indexBuildState.getRecordsScanned());

For example, this test failure on commit hash 396a0ce:

OnlineIndexerBuildRankIndexTest$Unsafe > addWhileBuildingParallelRank(long) > com.apple.foundationdb.record.provider.foundationdb.OnlineIndexerBuildRankIndexTest$Unsafe.addWhileBuildingParallelRank(long)[2] FAILED
    org.opentest4j.AssertionFailedError: expected: <182> but was: <181>
        at app//org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
        at app//org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
        at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
        at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
        at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:618)
        at app//com.apple.foundationdb.record.provider.foundationdb.OnlineIndexerBuildIndexTest.singleRebuild(OnlineIndexerBuildIndexTest.java:301)
        at app//com.apple.foundationdb.record.provider.foundationdb.OnlineIndexerBuildRankIndexTest.rankRebuild(OnlineIndexerBuildRankIndexTest.java:180)
        at app//com.apple.foundationdb.record.provider.foundationdb.OnlineIndexerBuildRankIndexTest.addWhileBuildingParallelRank(OnlineIndexerBuildRankIndexTest.java:263)

This assertion comes from after the index has been built, but before it has been marked as readable, and it appears to be checking that number of records reported in the persisted "index build state" match the number of records in the metrics. In this case, it seems like the index builder has an extra record beyond the value that is being stored in the index builder.

@alecgrieser alecgrieser added test failure A test is failing at least some of the time indexer Online Indexer issues labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
indexer Online Indexer issues test failure A test is failing at least some of the time
Projects
None yet
Development

No branches or pull requests

1 participant