Skip to content

Commit

Permalink
return null in case of exception
Browse files Browse the repository at this point in the history
  • Loading branch information
atharvasharma61 committed Sep 2, 2024
1 parent e9252fb commit 80ad8bf
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ configOverridesWrapper, getCollectorName())) {
LOG.debug(
"Error occurred while fetching fieldDataCacheMaxSizeStatus: "
+ e.getMessage());
return new CacheMaxSizeStatus(
FIELD_DATA_CACHE.toString(), -1L);
return null;
}
});

Expand Down Expand Up @@ -130,8 +129,7 @@ configOverridesWrapper, getCollectorName())) {
LOG.debug(
"Error occurred while fetching shardRequestCacheMaxSizeStatus: "
+ e.getMessage());
return new CacheMaxSizeStatus(
SHARD_REQUEST_CACHE.toString(), -1L);
return null;
}
});

Expand Down

0 comments on commit 80ad8bf

Please sign in to comment.