Skip to content

Commit

Permalink
Add log message for quantization state cache eviction due to size (op…
Browse files Browse the repository at this point in the history
…ensearch-project#2120)

Signed-off-by: Ryan Bogan <rbogan@amazon.com>
  • Loading branch information
ryanbogan authored Sep 18, 2024
1 parent e3cf814 commit ccc59b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public void evict(String fieldName) {
private void onRemoval(RemovalNotification<String, QuantizationState> removalNotification) {
if (RemovalCause.SIZE == removalNotification.getCause()) {
updateEvictedDueToSizeAt();
log.info(
"[KNN] Quantization state evicted from cache. Key {}, Reason: {}",
removalNotification.getKey(),
removalNotification.getCause()
);
}
}

Expand Down

0 comments on commit ccc59b1

Please sign in to comment.