Skip to content

[Java] Fix CagraBuildAndSearchIT concurrent deallocation errors#1510

Merged
rapids-bot[bot] merged 3 commits intorapidsai:mainfrom
ldematte:java/fix-test-deallocation-issue
Nov 10, 2025
Merged

[Java] Fix CagraBuildAndSearchIT concurrent deallocation errors#1510
rapids-bot[bot] merged 3 commits intorapidsai:mainfrom
ldematte:java/fix-test-deallocation-issue

Conversation

@ldematte
Copy link
Copy Markdown
Contributor

@ldematte ldematte commented Nov 7, 2025

Fixes #1467 (see issue for details)

I added some diagnostic (debug level) that I kept in the test, as it might be useful for future investigations.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Nov 7, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ldematte ldematte changed the title [Java] Fix CagraBuildAndSearchIT concurrent deallocation errors [REVIEW][Java] Fix CagraBuildAndSearchIT concurrent deallocation errors Nov 7, 2025

@Override
public String toString() {
return String.format("%dx%d %s @ 0x%016X", size, columns, dataType, memorySegment.address());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

Comment thread java/README.md
Comment on lines +44 to +47
Tests run using a randomized runner. Specific failures can be reproduced running a test suite with a specific seed,
by passing `-Dtests.seed=42FC5CC6B4C6BA8E` (where `42FC5CC6B4C6BA8E` has to be
replaced with your specific seed). It also possible to re-run a single test, but
in this case it's necessary to pass the extended seed (suite:method), e.g.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@mythrocks mythrocks added bug Something isn't working non-breaking Introduces a non-breaking change labels Nov 10, 2025
@mythrocks
Copy link
Copy Markdown
Contributor

mythrocks commented Nov 10, 2025

I feel a little silly not to have suspected this being the problem, and barking up the wrong tree. Good catch, @ldematte! This is a decent fix.

In the short term, we can keep this to be the fix. In the longer term, I think this could benefit from a reference-counted close() mechanism. That's the method used in other projects I've worked on.

I'm open to other ideas, of course.

@mythrocks
Copy link
Copy Markdown
Contributor

/ok to test 53bc861

@mythrocks mythrocks changed the title [REVIEW][Java] Fix CagraBuildAndSearchIT concurrent deallocation errors [Java] Fix CagraBuildAndSearchIT concurrent deallocation errors Nov 10, 2025
@mythrocks
Copy link
Copy Markdown
Contributor

/merge

@rapids-bot rapids-bot Bot merged commit 1dda5e3 into rapidsai:main Nov 10, 2025
164 of 166 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] [Java] CagraBuildAndSearchIT.testFloatIndexing fails randomly

2 participants