-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Setting number of sharedArenaMaxPermits to 1 #19503
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
Conversation
Signed-off-by: Ankit Jain <[email protected]>
|
@jainankitk lets add change log, its worth calling out the fix. |
|
❌ Gradle check result for 4c665f2: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Ankit Jain <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19503 +/- ##
============================================
+ Coverage 72.97% 72.99% +0.02%
- Complexity 70417 70422 +5
============================================
Files 5711 5711
Lines 322587 322587
Branches 46716 46716
============================================
+ Hits 235402 235481 +79
+ Misses 68180 68114 -66
+ Partials 19005 18992 -13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Ankit Jain <[email protected]> (cherry picked from commit 983c4d7) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 983c4d7) Signed-off-by: Ankit Jain <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Ankit Jain <[email protected]>
Description
When using shared Arena pooling, Lucene groups index files together into a single shared Arena to reduce the number of times it has to perform the costly operation of closing an Arena. However, in specific cases, this pooling can become a problem. Setting sharedArenaMaxPermits to a lower value like 1 can solve issues related to "leaked" maps or performance degradation caused by shared Arena pooling.
A value of 1 for sharedArenaMaxPermits effectively disables the pooling of shared Arenas. It forces each MMapDirectory instance to use a confined Arena, which is not owned by a specific thread but is managed in a way that avoids the performance issues associated with closing shared Arenas
Related Issues
Mitigates #19482
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.