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
)

Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit ccc59b1)
  • Loading branch information
ryanbogan authored and github-actions[bot] committed Sep 18, 2024
1 parent 097278b commit 4a8c9a4
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 4a8c9a4

Please sign in to comment.