Skip to content

Conversation

rmuir
Copy link
Member

@rmuir rmuir commented Jul 29, 2025

Remove this function and associated WeakhashMap: it is not needed any more. The tests still pass, user still gets ACE (just slightly different exception message).

Closes #14999

Remove this function and associated WeakhashMap: it is not needed any
more. The tests still pass, user still gets ACE (just slightly different
exception message).

Closes apache#14999
Copy link
Contributor

This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR.

@rmuir rmuir requested a review from uschindler July 29, 2025 08:14
Copy link
Contributor

@uschindler uschindler left a comment

Choose a reason for hiding this comment

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

Looks OK.

IMHO we should not backport this and let it live for some time on main branch. I think the whole thing was only invented for MMapDirectory when closing child readers may sigsegv parent reader.

If we find this useful in main, we can backport it (in 10.x we have no MappedByteBuffer usage anymore). If we do this, maybe deprecate and make the public API | https://github.com/apache/lucene/pull/15002/files#diff-2f71663645c05d1d7a61c17ed8928715a4ef6c01b47fd19d488a51ade76bce1aL162 a noop.

@uschindler uschindler added this to the 11.0.0 milestone Jul 29, 2025
@uschindler
Copy link
Contributor

I marked this for 11.0. Please add a changes.txt.

@rmuir rmuir merged commit 96f862d into apache:main Jul 30, 2025
8 checks passed
jpountz pushed a commit to shubhamvishu/lucene that referenced this pull request Aug 10, 2025
Remove this function and associated WeakhashMap: it is not needed any
more. The tests still pass, user still gets ACE (just slightly different
exception message).

Closes apache#14999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance bottleneck in IndexReader.registerParentReader with many parentReaders

2 participants