Skip to content

Commit

Permalink
Fix Serialization version check in Shutdown Status (#81342) (#81344)
Browse files Browse the repository at this point in the history
The version used to determine whether we should serialize the allocation
decisions as part of the Shutdown Status response was not updated after
#78727 was merged. This causes very confusing errors in mixed 8.x/7.16.x
clusters. Note: The version constant was updated in the backport to
7.16, but not in 8.x. This is good, as at time of writing, 7.16 has
shipped, but 8.0 has not.
  • Loading branch information
gwbrown authored Dec 4, 2021
1 parent d88f1ab commit f8a4063
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Objects;

public class ShutdownShardMigrationStatus implements Writeable, ToXContentObject {
private static final Version ALLOCATION_DECISION_ADDED_VERSION = Version.V_8_0_0;
private static final Version ALLOCATION_DECISION_ADDED_VERSION = Version.V_7_16_0;

private final SingleNodeShutdownMetadata.Status status;
private final long shardsRemaining;
Expand Down

0 comments on commit f8a4063

Please sign in to comment.