Skip to content

Commit

Permalink
Update IndicesRequestCache.java
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
  • Loading branch information
kiranprakash154 committed Apr 12, 2024
1 parent 9aeb82d commit 8bfa6c4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,9 @@ private void updateStaleCountOnEntryRemoval(CleanupKey cleanupKey, RemovalNotifi
return;
}
if (cleanupKey.entity == null) {
// on shard close, the shard is still lying around so this will only happen when the shard is deleted.
// we would have accounted this in staleKeysCount when the deletion of shard would have closed the associated readers
// entity will only be null when the shard is closed/deleted
// we would have accounted this in staleKeysCount when the closing/deletion of shard would have closed the associated
// readers
staleKeysCount.decrementAndGet();
return;
}
Expand Down

0 comments on commit 8bfa6c4

Please sign in to comment.