Skip to content

Commit

Permalink
fixes AllocationId::writeTo() to avoid throwing exception when versio…
Browse files Browse the repository at this point in the history
…n < 3.0.0

Signed-off-by: Paras Jain <[email protected]>
  • Loading branch information
parasjain1 authored Feb 5, 2025
1 parent a403ec6 commit 402640a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
out.writeOptionalStringCollection(splitChildAllocationIds);
out.writeOptionalString(parentAllocationId);
} else {
throw new IllegalStateException("In-place split not allowed on older versions.");
}
}

Expand Down

0 comments on commit 402640a

Please sign in to comment.