Sasilekha opened a new issue, #16389:
URL: https://github.com/apache/lucene/issues/16389
### Description
### Description
`AutomatonQuery#ramBytesUsed` adds `automaton.ramBytesUsed()` and
`compiled.ramBytesUsed()` unconditionally:
```java
this.ramBytesUsed =
BASE_RAM_BYTES + term.ramBytesUsed() + automaton.ramBytesUsed() +
compiled.ramBytesUsed();
```
The over-report equals automaton.ramBytesUsed() exactly.
ramBytesUsed() feeds LRUQueryCache eviction decisions; over-reporting causes
premature evictions.
Same bug shape as #16046, which fixed the analogous double-count inside
CompiledAutomaton itself.
### Version and environment details
Lucene: main (Version.LATEST = LUCENE_11_0_0), commit 2b237286b3
Also present in: 10.x and 9.x branches
JDK / OS: reproducible on any supported JDK/OS — the bug is in pure Java
accounting logic
--
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]