Skip to content

Commit cd3404f

Browse files
committed
Adjust BWC version for discovery node roles
Now that pluggable node roles are backported to 7.x (versioned at 7.3.0), this commit adjusts the BWC version in master accordingly.
1 parent a00da6e commit cd3404f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public DiscoveryNode(StreamInput in) throws IOException {
222222
}
223223
int rolesSize = in.readVInt();
224224
final Set<DiscoveryNodeRole> roles = new HashSet<>(rolesSize);
225-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
225+
if (in.getVersion().onOrAfter(Version.V_7_3_0)) {
226226
for (int i = 0; i < rolesSize; i++) {
227227
final String roleName = in.readString();
228228
final String roleNameAbbreviation = in.readString();
@@ -272,7 +272,7 @@ public void writeTo(StreamOutput out) throws IOException {
272272
out.writeString(entry.getKey());
273273
out.writeString(entry.getValue());
274274
}
275-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
275+
if (out.getVersion().onOrAfter(Version.V_7_3_0)) {
276276
out.writeVInt(roles.size());
277277
for (final DiscoveryNodeRole role : roles) {
278278
out.writeString(role.roleName());

0 commit comments

Comments
 (0)