You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "xiangfu0 (via GitHub)" <gi...@apache.org> on 2026/04/15 17:06:39 UTC

[I] Close the FilePerIndexDirectory.removeIndex() buffer leak [pinot]

xiangfu0 opened a new issue, #18218:
URL: https://github.com/apache/pinot/issues/18218

   ### Motivation
   `pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/store/FilePerIndexDirectory.java` notes that `removeIndex()` removes the cached entry but leaks the corresponding `PinotDataBuffer`, so it will not be released by `close()`.
   
   ### Scope
   - Ensure removed index buffers are closed or otherwise released before the cache entry is dropped.
   - Verify text and vector index cleanup paths do not keep stale mapped buffers alive.
   - Add focused unit coverage if practical.
   
   ### Notes
   Observed at the TODO in `removeIndex()` on `upstream/master` on April 15, 2026.
   


-- 
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: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] Close the FilePerIndexDirectory.removeIndex() buffer leak [pinot]

Posted by "wolfkill (via GitHub)" <gi...@apache.org>.
wolfkill commented on issue #18218:
URL: https://github.com/apache/pinot/issues/18218#issuecomment-4569952679

   This appears to be covered by the merged #18405. The current `FilePerIndexDirectory.removeIndex()` closes the cached `PinotDataBuffer` before removing the map entry, and keeps the entry if close throws so `close()` can retry later.
   
   #18218 was probably left open because #18405 closed #18404 instead. Unless additional regression coverage is still desired here, this issue looks safe to close.


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] Close the FilePerIndexDirectory.removeIndex() buffer leak [pinot]

Posted by "rsrkpatwari1234 (via GitHub)" <gi...@apache.org>.
rsrkpatwari1234 commented on issue #18218:
URL: https://github.com/apache/pinot/issues/18218#issuecomment-4312708584

   take


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] Close the FilePerIndexDirectory.removeIndex() buffer leak [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang closed issue #18218: Close the FilePerIndexDirectory.removeIndex() buffer leak
URL: https://github.com/apache/pinot/issues/18218


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] Close the FilePerIndexDirectory.removeIndex() buffer leak [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #18218:
URL: https://github.com/apache/pinot/issues/18218#issuecomment-4654372189

   @xiangfu0 @rsrkpatwari1234 Could you please take a look at the above comment?


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org