Skip to content

Commit

Permalink
Adding back DEFAULT_CHUNK_SIZE to be visible to public API (opensearc…
Browse files Browse the repository at this point in the history
…h-project#14158)

Signed-off-by: Shubh Sahu <[email protected]>
  • Loading branch information
astute-decipher authored Jun 11, 2024
1 parent a9d2050 commit 93d507a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ public class RecoverySettings {
);

// choose 512KB-16B to ensure that the resulting byte[] is not a humongous allocation in G1.
public static final ByteSizeValue DEFAULT_CHUNK_SIZE = new ByteSizeValue(512 * 1024 - 16, ByteSizeUnit.BYTES);

public static final Setting<ByteSizeValue> INDICES_RECOVERY_CHUNK_SIZE_SETTING = Setting.byteSizeSetting(
"indices.recovery.chunk_size",
new ByteSizeValue(512 * 1024 - 16, ByteSizeUnit.BYTES),
DEFAULT_CHUNK_SIZE,
new ByteSizeValue(1, ByteSizeUnit.BYTES),
new ByteSizeValue(100, ByteSizeUnit.MB),
Property.Dynamic,
Expand Down

0 comments on commit 93d507a

Please sign in to comment.