Skip to content

Resolve flaky test RankIndexTest.concurrentMutationsToRankIndex by disabling unsafe concurrency mode - #4716

Merged
alecgrieser merged 2 commits into
FoundationDB:mainfrom
alecgrieser:04714-disable-flaky-rank-index-test
Oct 7, 2026
Merged

alecgrieser merged 2 commits into
FoundationDB:mainfrom
alecgrieser:04714-disable-flaky-rank-index-test

Conversation

@alecgrieser

@alecgrieser alecgrieser commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

This updates the test RankIndexTest.concurrentMutationsToRankIndex so that it does not attempt to insert multiple entries into the rank index if the concurrency manager on the store is diabled. The rank index is not currently expected to supported concurrent updates at the moment. We could attempt to better enumerate the classes of failures that concurrent updates might attempt to do, but this seems like a bit of wild-goose chase, so instead, this just modifies the scenarios for the test to avoid the case we don't support (yet). Once we do support it, we can modify the parameters back.

This fixes #4714.

…disabling unsafe concurrency mode

This updates the tset `RankIndexTest.concurrentMutationsToRankIndex` so that it does not attempt to insert multiple entries into the rank index if the concurrency manager on the store is diabled. The rank index is not currently expected to supported concurrent updates at the moment. We could attempt to better enumerate the classes of failures that concurrent updates might attempt to do, but this seems like a bit of wild-goose chase, so instead, this just modifies the scenarios for the test to avoid the case we don't support (yet). Once we do support it, we can modify the parameters back.
@alecgrieser
alecgrieser requested a review from ScottDugas October 6, 2026 17:44
@alecgrieser alecgrieser added the testing improvement Change that improves our testing label Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


  [ant:checkstyle] [ERROR] /home/runner/work/fdb-record-layer/fdb-record-layer/fdb-record-layer-core/src/test/java/com/apple/foundationdb/record/provider/foundationdb/indexes/RankIndexTest.java:74:8: Unused import - com.apple.test.ParameterizedTestUtils. [UnusedImports]
  > Task :fdb-record-layer-core:checkstyleMandatory
  
  > Task :fdb-record-layer-core:checkstyleMandatory FAILED
  [ant:checkstyle] [ERROR] /home/runner/work/fdb-record-layer/fdb-record-layer/fdb-record-layer-core/src/test/java/com/apple/foundationdb/record/provider/foundationdb/indexes/RankIndexTest.java:74:8: Unused import - com.apple.test.ParameterizedTestUtils. [UnusedImports]

@alecgrieser
alecgrieser merged commit 0fb4388 into FoundationDB:main Oct 7, 2026
21 of 22 checks passed
@alecgrieser
alecgrieser deleted the 04714-disable-flaky-rank-index-test branch October 7, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing improvement Change that improves our testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RankIndexTest.concurrentMutationsToRankIndex is flaky with disableConcurrencyManagement=true

2 participants