Sasilekha opened a new issue, #16405:
URL: https://github.com/apache/lucene/issues/16405
### Description
`PointInSetQuery#ramBytesUsed()` under-reports memory because the retained
`lowerPoint` and `upperPoint` byte arrays are omitted from the sum.
ramBytesUsed =
BASE_RAM_BYTES
+ RamUsageEstimator.sizeOfObject(field)
+ RamUsageEstimator.sizeOfObject(sortedPackedPoints);
`LRUQueryCache` and any other `Accountable` consumer sum `ramBytesUsed()`
when deciding what to cache and enforcing memory budgets. Cached
`PointInSetQuery` (including its factory-produced variants —`LongPoint`,
`FloatPoint`, `BinaryPoint`) is currently under-counted, so the cache can hold
slightly more than its declared memory limit.
### Version and environment details
Reproduces on apache/main , using OpenJDK 25.0.3
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]