diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/common/io/stream/CachedStreamOutput.java b/modules/elasticsearch/src/main/java/org/elasticsearch/common/io/stream/CachedStreamOutput.java index 708b3446c53..9717c7a8cd9 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/common/io/stream/CachedStreamOutput.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/common/io/stream/CachedStreamOutput.java @@ -101,8 +101,8 @@ public class CachedStreamOutput { private static final SoftWrapper> cache = new SoftWrapper>(); private static final AtomicInteger counter = new AtomicInteger(); - private static final int BYTES_LIMIT = 10 * 1024 * 1024; // don't cache entries that are bigger than that... - private static final int COUNT_LIMIT = 100; + public static int BYTES_LIMIT = 10 * 1024 * 1024; // don't cache entries that are bigger than that... + public static int COUNT_LIMIT = 100; public static void clear() { cache.clear();