Skip to content

Commit 93d507a

Browse files
Adding back DEFAULT_CHUNK_SIZE to be visible to public API (opensearch-project#14158)
Signed-off-by: Shubh Sahu <shubhvs@amazon.com>
1 parent a9d2050 commit 93d507a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/opensearch/indices/recovery/RecoverySettings.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,11 @@ public class RecoverySettings {
177177
);
178178

179179
// choose 512KB-16B to ensure that the resulting byte[] is not a humongous allocation in G1.
180+
public static final ByteSizeValue DEFAULT_CHUNK_SIZE = new ByteSizeValue(512 * 1024 - 16, ByteSizeUnit.BYTES);
181+
180182
public static final Setting<ByteSizeValue> INDICES_RECOVERY_CHUNK_SIZE_SETTING = Setting.byteSizeSetting(
181183
"indices.recovery.chunk_size",
182-
new ByteSizeValue(512 * 1024 - 16, ByteSizeUnit.BYTES),
184+
DEFAULT_CHUNK_SIZE,
183185
new ByteSizeValue(1, ByteSizeUnit.BYTES),
184186
new ByteSizeValue(100, ByteSizeUnit.MB),
185187
Property.Dynamic,

0 commit comments

Comments
 (0)