Skip to content

Commit b7c7f64

Browse files
SwethaGupthaSwetha Guptha
andauthored
Reset discovery nodes in most transport node actions request. (#15131)
Signed-off-by: Swetha Guptha <[email protected]> Co-authored-by: Swetha Guptha <[email protected]>
1 parent e087272 commit b7c7f64

25 files changed

+87
-112
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5151
- [Remote Publication] Added checksum validation for cluster state behind a cluster setting ([#15218](https://github.com/opensearch-project/OpenSearch/pull/15218))
5252
- Add canRemain method to TargetPoolAllocationDecider to move shards from local to remote pool for hot to warm tiering ([#15010](https://github.com/opensearch-project/OpenSearch/pull/15010))
5353
- ClusterManagerTaskThrottler Improvements ([#15508](https://github.com/opensearch-project/OpenSearch/pull/15508))
54+
- Reset DiscoveryNodes in all transport node actions request ([#15131](https://github.com/opensearch-project/OpenSearch/pull/15131))
5455

5556
### Dependencies
5657
- Bump `netty` from 4.1.111.Final to 4.1.112.Final ([#15081](https://github.com/opensearch-project/OpenSearch/pull/15081))

server/src/main/java/org/opensearch/action/admin/cluster/node/hotthreads/NodesHotThreadsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public NodesHotThreadsRequest(StreamInput in) throws IOException {
7070
* threads for all nodes is used.
7171
*/
7272
public NodesHotThreadsRequest(String... nodesIds) {
73-
super(nodesIds);
73+
super(false, nodesIds);
7474
}
7575

7676
public int threads() {

server/src/main/java/org/opensearch/action/admin/cluster/node/info/NodesInfoRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public NodesInfoRequest(StreamInput in) throws IOException {
7272
* for all nodes will be returned.
7373
*/
7474
public NodesInfoRequest(String... nodesIds) {
75-
super(nodesIds);
75+
super(false, nodesIds);
7676
defaultMetrics();
7777
}
7878

server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodesStatsRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class NodesStatsRequest extends BaseNodesRequest<NodesStatsRequest> {
5858
private final Set<String> requestedMetrics = new HashSet<>();
5959

6060
public NodesStatsRequest() {
61-
super((String[]) null);
61+
super(false, (String[]) null);
6262
}
6363

6464
public NodesStatsRequest(StreamInput in) throws IOException {
@@ -74,7 +74,7 @@ public NodesStatsRequest(StreamInput in) throws IOException {
7474
* for all nodes will be returned.
7575
*/
7676
public NodesStatsRequest(String... nodesIds) {
77-
super(nodesIds);
77+
super(false, nodesIds);
7878
}
7979

8080
/**

server/src/main/java/org/opensearch/action/admin/cluster/node/usage/NodesUsageRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public NodesUsageRequest(StreamInput in) throws IOException {
6161
* passed, usage for all nodes will be returned.
6262
*/
6363
public NodesUsageRequest(String... nodesIds) {
64-
super(nodesIds);
64+
super(false, nodesIds);
6565
}
6666

6767
/**

server/src/main/java/org/opensearch/action/admin/cluster/snapshots/status/TransportNodesSnapshotsStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public Request(StreamInput in) throws IOException {
161161
}
162162

163163
public Request(String[] nodesIds) {
164-
super(nodesIds);
164+
super(false, nodesIds);
165165
}
166166

167167
public Request snapshots(Snapshot[] snapshots) {

server/src/main/java/org/opensearch/action/admin/cluster/stats/ClusterStatsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public ClusterStatsRequest(StreamInput in) throws IOException {
6262
* based on all nodes will be returned.
6363
*/
6464
public ClusterStatsRequest(String... nodesIds) {
65-
super(nodesIds);
65+
super(false, nodesIds);
6666
}
6767

6868
public boolean useAggregatedNodeLevelResponses() {

server/src/main/java/org/opensearch/action/admin/indices/dangling/find/FindDanglingIndexRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public FindDanglingIndexRequest(StreamInput in) throws IOException {
5353
}
5454

5555
public FindDanglingIndexRequest(String indexUUID) {
56-
super(Strings.EMPTY_ARRAY);
56+
super(false, Strings.EMPTY_ARRAY);
5757
this.indexUUID = indexUUID;
5858
}
5959

server/src/main/java/org/opensearch/action/admin/indices/dangling/list/ListDanglingIndicesRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ public ListDanglingIndicesRequest(StreamInput in) throws IOException {
5858
}
5959

6060
public ListDanglingIndicesRequest() {
61-
super(Strings.EMPTY_ARRAY);
61+
super(false, Strings.EMPTY_ARRAY);
6262
this.indexUUID = null;
6363
}
6464

6565
public ListDanglingIndicesRequest(String indexUUID) {
66-
super(Strings.EMPTY_ARRAY);
66+
super(false, Strings.EMPTY_ARRAY);
6767
this.indexUUID = indexUUID;
6868
}
6969

server/src/main/java/org/opensearch/action/search/GetAllPitNodesRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class GetAllPitNodesRequest extends BaseNodesRequest<GetAllPitNodesReques
2727

2828
@Inject
2929
public GetAllPitNodesRequest(DiscoveryNode... concreteNodes) {
30-
super(concreteNodes);
30+
super(false, concreteNodes);
3131
}
3232

3333
public GetAllPitNodesRequest(StreamInput in) throws IOException {

0 commit comments

Comments
 (0)