Skip to content

Commit 2bd3e3d

Browse files
authored
Unset discovery nodes for every transport node actions request (#17682)
* Removed includeDiscoveryNodes from BaseNodesRequest Signed-off-by: Manik Garg <[email protected]>
1 parent f122c46 commit 2bd3e3d

20 files changed

+30
-71
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
## [Unreleased 3.x]
77
### Added
88
- Add multi-threaded writer support in pull-based ingestion ([#17912](https://github.com/opensearch-project/OpenSearch/pull/17912))
9+
- Unset discovery nodes for every transport node actions request ([#17682](https://github.com/opensearch-project/OpenSearch/pull/17682))
910
- Implement parallel shard refresh behind cluster settings ([#17782](https://github.com/opensearch-project/OpenSearch/pull/17782))
1011

1112
### Changed

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(false, nodesIds);
73+
super(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(false, nodesIds);
75+
super(nodesIds);
7676
defaultMetrics();
7777
}
7878

server/src/main/java/org/opensearch/action/admin/cluster/node/reload/NodesReloadSecureSettingsRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class NodesReloadSecureSettingsRequest extends BaseNodesRequest<NodesRelo
6060
private SecureString secureSettingsPassword;
6161

6262
public NodesReloadSecureSettingsRequest() {
63-
super(true, (String[]) null);
63+
super((String[]) null);
6464
}
6565

6666
public NodesReloadSecureSettingsRequest(StreamInput in) throws IOException {
@@ -84,7 +84,7 @@ public NodesReloadSecureSettingsRequest(StreamInput in) throws IOException {
8484
* nodes.
8585
*/
8686
public NodesReloadSecureSettingsRequest(String... nodesIds) {
87-
super(true, nodesIds);
87+
super(nodesIds);
8888
}
8989

9090
@Nullable

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(false, (String[]) null);
61+
super((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(false, nodesIds);
77+
super(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(false, nodesIds);
64+
super(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(false, nodesIds);
164+
super(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
@@ -83,7 +83,7 @@ public ClusterStatsRequest(StreamInput in) throws IOException {
8383
* based on all nodes will be returned.
8484
*/
8585
public ClusterStatsRequest(String... nodesIds) {
86-
super(false, nodesIds);
86+
super(nodesIds);
8787
}
8888

8989
public boolean useAggregatedNodeLevelResponses() {

server/src/main/java/org/opensearch/action/admin/cluster/wlm/WlmStatsRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public WlmStatsRequest(StreamInput in) throws IOException {
3737
* for all nodes will be returned.
3838
*/
3939
public WlmStatsRequest(String[] nodesIds, Set<String> workloadGroupIds, Boolean breach) {
40-
super(false, nodesIds);
40+
super(nodesIds);
4141
this.workloadGroupIds = workloadGroupIds;
4242
this.breach = breach;
4343
}
4444

4545
public WlmStatsRequest() {
46-
super(false, (String[]) null);
46+
super((String[]) null);
4747
workloadGroupIds = new HashSet<>();
4848
this.breach = false;
4949
}

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(false, Strings.EMPTY_ARRAY);
56+
super(Strings.EMPTY_ARRAY);
5757
this.indexUUID = indexUUID;
5858
}
5959

0 commit comments

Comments
 (0)