Skip to content

Commit

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

Signed-off-by: Ryan Bogan <rbogan@amazon.com>
(cherry picked from commit ccc59b1)

Co-authored-by: Ryan Bogan <rbogan@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and ryanbogan authored Sep 18, 2024
1 parent 662100f commit 87ca73a
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 87ca73a

Please sign in to comment.