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

Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit ccc59b1)

Co-authored-by: Ryan Bogan <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and ryanbogan authored 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.