Commit abbcdb4 1 parent 29a7a03 commit abbcdb4 Copy full SHA for abbcdb4
File tree 2 files changed +4
-4
lines changed
server/src/main/java/org/opensearch/action/admin/cluster/stats
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public ClusterStatsNodeResponse(StreamInput in) throws IOException {
77
77
}
78
78
this .nodeInfo = new NodeInfo (in );
79
79
this .nodeStats = new NodeStats (in );
80
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
80
+ if (in .getVersion ().onOrAfter (Version .V_2_16_0 )) {
81
81
this .shardsStats = in .readOptionalArray (ShardStats ::new , ShardStats []::new );
82
82
this .aggregatedNodeLevelStats = in .readOptionalWriteable (AggregatedNodeLevelStats ::new );
83
83
} else {
@@ -156,7 +156,7 @@ public void writeTo(StreamOutput out) throws IOException {
156
156
}
157
157
nodeInfo .writeTo (out );
158
158
nodeStats .writeTo (out );
159
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
159
+ if (out .getVersion ().onOrAfter (Version .V_2_16_0 )) {
160
160
if (aggregatedNodeLevelStats != null ) {
161
161
out .writeOptionalArray (null );
162
162
out .writeOptionalWriteable (aggregatedNodeLevelStats );
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public class ClusterStatsRequest extends BaseNodesRequest<ClusterStatsRequest> {
50
50
51
51
public ClusterStatsRequest (StreamInput in ) throws IOException {
52
52
super (in );
53
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
53
+ if (in .getVersion ().onOrAfter (Version .V_2_16_0 )) {
54
54
useAggregatedNodeLevelResponses = in .readOptionalBoolean ();
55
55
}
56
56
}
@@ -76,7 +76,7 @@ public void useAggregatedNodeLevelResponses(boolean useAggregatedNodeLevelRespon
76
76
@ Override
77
77
public void writeTo (StreamOutput out ) throws IOException {
78
78
super .writeTo (out );
79
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
79
+ if (out .getVersion ().onOrAfter (Version .V_2_16_0 )) {
80
80
out .writeOptionalBoolean (useAggregatedNodeLevelResponses );
81
81
}
82
82
}
You can’t perform that action at this time.
0 commit comments