mikemccand commented on issue #15068: URL: https://github.com/apache/lucene/issues/15068#issuecomment-3191347835
I tested 64 max permits (the fix in https://github.com/apache/lucene/pull/15078) and we leak for a bit and then the leaks stop, yay! ``` ... MAP COUNT (from /proc/235240/maps): 928 [420 si files] MAP COUNT (from /proc/235240/maps): 938 [430 si files] MAP COUNT (from /proc/235240/maps): 948 [440 si files] MAP COUNT (from /proc/235240/maps): 958 [450 si files] MAP COUNT (from /proc/235240/maps): 968 [460 si files] MAP COUNT (from /proc/235240/maps): 978 [470 si files] MAP COUNT (from /proc/235240/maps): 988 [480 si files] MAP COUNT (from /proc/235240/maps): 998 [490 si files] MAP COUNT (from /proc/235240/maps): 1008 [500 si files] MAP COUNT (from /proc/235240/maps): 1018 [510 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] MAP COUNT (from /proc/235240/maps): 1028 [520 si files] ``` So this bounds the max maps for any held-open index segment to 64. Realistically, any app that keeps loading the segments file is presumably doing so because the index is changing and segments are turning over, and then the arenas will be closed, even with leaking. So the real-world exposure risk seems relatively low, but I'm still curious about https://github.com/apache/lucene/issues/15054. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org