File tree 5 files changed +8
-11
lines changed
server/src/main/java/org/elasticsearch
action/admin/cluster/node/info
x-pack/plugin/ent-search/src
main/java/org/elasticsearch/xpack/application/rules
test/java/org/elasticsearch/xpack/application/rules/action
5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,7 @@ static TransportVersion def(int id) {
98
98
public static final TransportVersion V_8_15_0 = def (8_702_0_02 );
99
99
public static final TransportVersion V_8_15_2 = def (8_702_0_03 );
100
100
public static final TransportVersion V_8_16_0 = def (8_772_0_01 );
101
- public static final TransportVersion ADD_COMPATIBILITY_VERSIONS_TO_NODE_INFO_BACKPORT_8_16 = def (8_772_0_02 );
102
- public static final TransportVersion SKIP_INNER_HITS_SEARCH_SOURCE_BACKPORT_8_16 = def (8_772_0_03 );
103
- public static final TransportVersion QUERY_RULES_LIST_INCLUDES_TYPES_BACKPORT_8_16 = def (8_772_0_04 );
101
+ public static final TransportVersion V_8_16_1 = def (8_772_0_04 );
104
102
public static final TransportVersion INITIAL_ELASTICSEARCH_8_16_5 = def (8_772_0_05 );
105
103
public static final TransportVersion INITIAL_ELASTICSEARCH_8_16_6 = def (8_772_0_06 );
106
104
public static final TransportVersion REMOVE_MIN_COMPATIBLE_SHARD_NODE = def (8_773_0_00 );
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public NodeInfo(StreamInput in) throws IOException {
66
66
super (in );
67
67
if (in .getTransportVersion ().onOrAfter (TransportVersions .V_8_12_0 )) {
68
68
version = in .readString ();
69
- if (in .getTransportVersion ().isPatchFrom (TransportVersions .ADD_COMPATIBILITY_VERSIONS_TO_NODE_INFO_BACKPORT_8_16 )
69
+ if (in .getTransportVersion ().isPatchFrom (TransportVersions .V_8_16_1 )
70
70
|| in .getTransportVersion ().onOrAfter (TransportVersions .ADD_COMPATIBILITY_VERSIONS_TO_NODE_INFO )) {
71
71
compatibilityVersions = CompatibilityVersions .readVersion (in );
72
72
} else {
@@ -252,7 +252,7 @@ public void writeTo(StreamOutput out) throws IOException {
252
252
} else {
253
253
Version .writeVersion (Version .fromString (version ), out );
254
254
}
255
- if (out .getTransportVersion ().isPatchFrom (TransportVersions .ADD_COMPATIBILITY_VERSIONS_TO_NODE_INFO_BACKPORT_8_16 )
255
+ if (out .getTransportVersion ().isPatchFrom (TransportVersions .V_8_16_1 )
256
256
|| out .getTransportVersion ().onOrAfter (TransportVersions .ADD_COMPATIBILITY_VERSIONS_TO_NODE_INFO )) {
257
257
compatibilityVersions .writeTo (out );
258
258
} else if (out .getTransportVersion ().onOrAfter (TransportVersions .V_8_8_0 )) {
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ public SearchSourceBuilder(StreamInput in) throws IOException {
288
288
if (in .getTransportVersion ().onOrAfter (TransportVersions .V_8_8_0 )) {
289
289
rankBuilder = in .readOptionalNamedWriteable (RankBuilder .class );
290
290
}
291
- if (in .getTransportVersion ().isPatchFrom (TransportVersions .SKIP_INNER_HITS_SEARCH_SOURCE_BACKPORT_8_16 )
291
+ if (in .getTransportVersion ().isPatchFrom (TransportVersions .V_8_16_1 )
292
292
|| in .getTransportVersion ().onOrAfter (TransportVersions .SKIP_INNER_HITS_SEARCH_SOURCE )) {
293
293
skipInnerHits = in .readBoolean ();
294
294
} else {
@@ -383,7 +383,7 @@ public void writeTo(StreamOutput out) throws IOException {
383
383
} else if (rankBuilder != null ) {
384
384
throw new IllegalArgumentException ("cannot serialize [rank] to version [" + out .getTransportVersion ().toReleaseVersion () + "]" );
385
385
}
386
- if (out .getTransportVersion ().isPatchFrom (TransportVersions .SKIP_INNER_HITS_SEARCH_SOURCE_BACKPORT_8_16 )
386
+ if (out .getTransportVersion ().isPatchFrom (TransportVersions .V_8_16_1 )
387
387
|| out .getTransportVersion ().onOrAfter (TransportVersions .SKIP_INNER_HITS_SEARCH_SOURCE )) {
388
388
out .writeBoolean (skipInnerHits );
389
389
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public QueryRulesetListItem(StreamInput in) throws IOException {
68
68
this .criteriaTypeToCountMap = Map .of ();
69
69
}
70
70
TransportVersion streamTransportVersion = in .getTransportVersion ();
71
- if (streamTransportVersion .isPatchFrom (TransportVersions .QUERY_RULES_LIST_INCLUDES_TYPES_BACKPORT_8_16 )
71
+ if (streamTransportVersion .isPatchFrom (TransportVersions .V_8_16_1 )
72
72
|| streamTransportVersion .onOrAfter (TransportVersions .QUERY_RULES_LIST_INCLUDES_TYPES )) {
73
73
this .ruleTypeToCountMap = in .readMap (m -> in .readEnum (QueryRule .QueryRuleType .class ), StreamInput ::readInt );
74
74
} else {
@@ -103,7 +103,7 @@ public void writeTo(StreamOutput out) throws IOException {
103
103
out .writeMap (criteriaTypeToCountMap , StreamOutput ::writeEnum , StreamOutput ::writeInt );
104
104
}
105
105
TransportVersion streamTransportVersion = out .getTransportVersion ();
106
- if (streamTransportVersion .isPatchFrom (TransportVersions .QUERY_RULES_LIST_INCLUDES_TYPES_BACKPORT_8_16 )
106
+ if (streamTransportVersion .isPatchFrom (TransportVersions .V_8_16_1 )
107
107
|| streamTransportVersion .onOrAfter (TransportVersions .QUERY_RULES_LIST_INCLUDES_TYPES )) {
108
108
out .writeMap (ruleTypeToCountMap , StreamOutput ::writeEnum , StreamOutput ::writeInt );
109
109
}
Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ protected ListQueryRulesetsAction.Response mutateInstanceForVersion(
59
59
ListQueryRulesetsAction .Response instance ,
60
60
TransportVersion version
61
61
) {
62
- if (version .isPatchFrom (TransportVersions .QUERY_RULES_LIST_INCLUDES_TYPES_BACKPORT_8_16 )
63
- || version .onOrAfter (TransportVersions .QUERY_RULES_LIST_INCLUDES_TYPES )) {
62
+ if (version .isPatchFrom (TransportVersions .V_8_16_1 ) || version .onOrAfter (TransportVersions .QUERY_RULES_LIST_INCLUDES_TYPES )) {
64
63
return instance ;
65
64
} else if (version .onOrAfter (QueryRulesetListItem .EXPANDED_RULESET_COUNT_TRANSPORT_VERSION )) {
66
65
List <QueryRulesetListItem > updatedResults = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments