File tree 1 file changed +2
-1
lines changed
server/src/main/java/org/opensearch/indices
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ public final class IndicesRequestCache implements RemovalListener<ICacheKey<Indi
155
155
private final Function <ShardId , Optional <CacheEntity >> cacheEntityLookup ;
156
156
// pkg-private for testing
157
157
final IndicesRequestCacheCleanupManager cacheCleanupManager ;
158
+
158
159
// These values determine the valid names for levels in the cache stats API
159
160
public static final String SHARD_ID_DIMENSION_NAME = "shards" ;
160
161
public static final String INDEX_DIMENSION_NAME = "indices" ;
@@ -532,7 +533,7 @@ void enqueueCleanupKey(CleanupKey cleanupKey) {
532
533
* @param cleanupKey the CleanupKey to be updated in the map
533
534
*/
534
535
private void updateStaleCountOnCacheInsert (CleanupKey cleanupKey ) {
535
- if (stalenessThreshold == 0.0 || cleanupKey .entity == null ) {
536
+ if (cleanupKey .entity == null ) {
536
537
return ;
537
538
}
538
539
IndexShard indexShard = (IndexShard ) cleanupKey .entity .getCacheIdentity ();
You can’t perform that action at this time.
0 commit comments