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
) (#2123)

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 committed Sep 18, 2024
1 parent 00328ec commit fda3505
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 fda3505

Please sign in to comment.