We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5c0b0 commit 747b243Copy full SHA for 747b243
x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java
@@ -672,7 +672,11 @@ private static void throwAlreadyClosed(String message) {
672
throw new AlreadyClosedException(message);
673
}
674
675
- // used by tests
+ /**
676
+ * NOTE: Method is package private mostly to allow checking the number of fee regions in tests.
677
+ * However, it is also used by {@link SharedBlobCacheService#maybeFetchFullEntry} but we should try
678
+ * to move away from that because calling "size" on a ConcurrentLinkedQueue is not a constant time operation.
679
+ */
680
int freeRegionCount() {
681
return freeRegions.size();
682
0 commit comments