From 27623f73ce908e77ab8f44c3870f89f580e96c74 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Sat, 11 Jan 2025 17:01:37 +0100 Subject: [PATCH] Remove remoteAddress field from TransportResponse This field is only used (by security) for requests, having it in responses is redundant. Also, we have a couple of responses that are singletons/quasi-enums where setting the value needlessly might introduce some strange contention even though it's a plain store. This isn't just a cosmetic change. It makes it clear at compile time that each response instance is exclusively defined by the bytes that it is read from. This makes it easier to reason about the validity of suggested optimizations like https://github.com/elastic/elasticsearch/pull/120010 --- .../GetDataStreamLifecycleStatsAction.java | 1 - .../ingest/common/GrokProcessorGetAction.java | 1 - .../action/PainlessExecuteAction.java | 1 - .../index/rankeval/RankEvalResponse.java | 1 - .../node/tasks/CancellableTasksIT.java | 4 +--- .../MockedRequestActionBasedRerankerIT.java | 5 ----- .../elasticsearch/action/ActionResponse.java | 7 ------ .../ClusterAllocationExplainResponse.java | 1 - .../TransportGetAllocationStatsAction.java | 1 - .../ClusterFormationInfoAction.java | 1 - .../CoordinationDiagnosticsAction.java | 1 - .../desirednodes/GetDesiredNodesAction.java | 1 - .../UpdateDesiredNodesResponse.java | 1 - .../cluster/health/ClusterHealthResponse.java | 1 - .../GetFeatureUpgradeStatusResponse.java | 1 - .../migration/PostFeatureUpgradeResponse.java | 1 - .../PrevalidateNodeRemovalResponse.java | 1 - .../node/tasks/get/GetTaskResponse.java | 1 - .../remote/RemoteClusterNodesAction.java | 1 - .../verify/VerifyRepositoryResponse.java | 1 - .../reroute/ClusterRerouteResponse.java | 1 - .../settings/ClusterGetSettingsAction.java | 1 - .../shards/ClusterSearchShardsResponse.java | 1 - .../create/CreateSnapshotResponse.java | 1 - .../GetSnapshottableFeaturesResponse.java | 1 - .../features/ResetFeatureStateResponse.java | 1 - .../get/shard/GetShardSnapshotResponse.java | 1 - .../restore/RestoreSnapshotResponse.java | 1 - .../status/SnapshotsStatusResponse.java | 1 - .../cluster/state/ClusterStateResponse.java | 1 - .../stats/RemoteClusterStatsResponse.java | 1 - .../GetScriptContextResponse.java | 1 - .../GetScriptLanguageResponse.java | 1 - .../GetStoredScriptResponse.java | 2 -- .../tasks/PendingClusterTasksResponse.java | 1 - .../admin/indices/get/GetIndexResponse.java | 1 - .../mapping/get/GetFieldMappingsResponse.java | 1 - .../mapping/get/GetMappingsResponse.java | 1 - .../resolve/ResolveClusterActionResponse.java | 1 - .../settings/get/GetSettingsResponse.java | 1 - .../shards/IndicesShardStoresResponse.java | 1 - .../post/SimulateIndexTemplateResponse.java | 1 - .../action/bulk/BulkResponse.java | 1 - .../ExplainDataStreamLifecycleAction.java | 1 - .../action/explain/ExplainResponse.java | 1 - .../FieldCapabilitiesNodeResponse.java | 1 - .../fieldcaps/FieldCapabilitiesResponse.java | 1 - .../elasticsearch/action/get/GetResponse.java | 1 - .../action/get/MultiGetShardResponse.java | 1 - .../get/TransportGetFromTranslogAction.java | 1 - ...ansportShardMultiGetFomTranslogAction.java | 1 - .../action/ingest/GetPipelineResponse.java | 1 - .../ingest/SimulatePipelineResponse.java | 1 - .../action/search/CanMatchNodeResponse.java | 1 - .../action/search/MultiSearchResponse.java | 1 - .../action/search/SearchResponse.java | 1 - .../action/search/SearchShardsResponse.java | 1 - .../TransportOpenPointInTimeAction.java | 1 - .../broadcast/BroadcastShardResponse.java | 1 - .../node/TransportBroadcastByNodeAction.java | 1 - .../support/master/AcknowledgedResponse.java | 1 - .../support/nodes/BaseNodeResponse.java | 1 - .../support/nodes/BaseNodesResponse.java | 1 - .../replication/ReplicationResponse.java | 1 - .../TransportReplicationAction.java | 1 - .../support/tasks/BaseTasksResponse.java | 1 - .../support/tasks/TransportTasksAction.java | 1 - .../action/synonyms/GetSynonymRuleAction.java | 1 - .../synonyms/SynonymUpdateResponse.java | 1 - .../MultiTermVectorsShardResponse.java | 1 - .../index/reindex/BulkByScrollResponse.java | 1 - .../indices/recovery/RecoveryResponse.java | 1 - .../RecoveryTranslogOperationsResponse.java | 1 - .../persistent/PersistentTaskResponse.java | 1 - .../search/CanMatchShardResponse.java | 1 - .../search/SearchPhaseResult.java | 9 +------- .../search/dfs/DfsSearchResult.java | 1 - .../search/fetch/FetchSearchResult.java | 1 - .../fetch/ScrollQueryFetchSearchResult.java | 1 - .../search/query/QuerySearchResult.java | 1 - .../search/query/ScrollQuerySearchResult.java | 1 - .../rank/feature/RankFeatureResult.java | 1 - .../transport/InboundHandler.java | 1 - .../transport/TransportActionProxy.java | 1 - .../transport/TransportHandshaker.java | 1 - .../transport/TransportMessage.java | 22 ------------------- .../transport/TransportRequest.java | 15 +++++++++++++ .../transport/TransportResponse.java | 10 --------- .../transport/TransportService.java | 1 - .../TransportMasterNodeActionTests.java | 1 - ...ortInstanceSingleOperationActionTests.java | 4 ---- .../TransportHealthNodeActionTests.java | 1 - .../InternalOrPrivateSettingsPlugin.java | 4 +--- .../transport/TransportActionProxyTests.java | 1 - .../AbstractSimpleTransportTestCase.java | 2 -- .../elasticsearch/transport/TestResponse.java | 1 - .../DisruptableMockTransportTests.java | 3 +-- .../action/GetAutoscalingCapacityAction.java | 1 - .../xpack/ccr/action/ShardChangesAction.java | 1 - .../GetCcrRestoreFileChunkAction.java | 1 - .../PutCcrRestoreSessionAction.java | 1 - .../license/GetBasicStatusResponse.java | 1 - .../license/GetLicenseResponse.java | 1 - .../license/GetTrialStatusResponse.java | 1 - .../license/PostStartTrialResponse.java | 1 - .../protocol/xpack/XPackInfoResponse.java | 1 - .../action/MigrateToDataTiersResponse.java | 1 - .../action/AbstractGetResourcesResponse.java | 1 - .../action/XPackUsageFeatureResponse.java | 1 - .../xpack/core/ccr/action/CcrStatsAction.java | 1 - .../core/ccr/action/FollowInfoAction.java | 1 - .../action/GetAutoFollowPatternAction.java | 1 - .../core/ccr/action/PutFollowAction.java | 1 - .../core/enrich/action/EnrichStatsAction.java | 1 - .../action/ExecuteEnrichPolicyAction.java | 1 - .../core/ilm/ExplainLifecycleResponse.java | 1 - .../core/ilm/action/GetLifecycleAction.java | 1 - .../core/ilm/action/GetStatusAction.java | 1 - .../RemoveIndexLifecyclePolicyAction.java | 1 - .../action/GetInferenceModelAction.java | 1 - .../inference/action/InferenceAction.java | 1 - .../action/PutInferenceModelAction.java | 1 - .../action/UpdateInferenceModelAction.java | 1 - .../CreateTrainedModelAssignmentAction.java | 1 - .../ml/action/DeleteExpiredDataAction.java | 1 - .../ml/action/EvaluateDataFrameAction.java | 1 - .../ExplainDataFrameAnalyticsAction.java | 1 - .../core/ml/action/GetMlAutoscalingStats.java | 1 - .../core/ml/action/InferModelAction.java | 1 - .../PreviewDataFrameAnalyticsAction.java | 1 - .../action/PutDataFrameAnalyticsAction.java | 1 - .../core/ml/action/PutDatafeedAction.java | 1 - .../xpack/core/ml/action/PutFilterAction.java | 1 - .../xpack/core/ml/action/PutJobAction.java | 1 - .../core/ml/action/PutTrainedModelAction.java | 1 - .../ml/action/RevertModelSnapshotAction.java | 1 - .../ml/action/UpdateModelSnapshotAction.java | 1 - .../action/UpgradeJobModelSnapshotAction.java | 1 - .../action/MonitoringBulkResponse.java | 1 - .../MonitoringMigrateAlertsResponse.java | 1 - .../DelegatePkiAuthenticationResponse.java | 1 - .../UpdateIndexMigrationVersionResponse.java | 4 +--- .../apikey/BulkUpdateApiKeyResponse.java | 1 - .../action/apikey/CreateApiKeyResponse.java | 1 - .../apikey/InvalidateApiKeyResponse.java | 1 - .../enrollment/KibanaEnrollmentResponse.java | 1 - .../enrollment/NodeEnrollmentResponse.java | 1 - .../privilege/DeletePrivilegesResponse.java | 1 - .../privilege/GetPrivilegesResponse.java | 1 - .../privilege/PutPrivilegesResponse.java | 1 - .../CreateServiceAccountTokenResponse.java | 1 - .../DeleteServiceAccountTokenResponse.java | 1 - .../GetServiceAccountCredentialsResponse.java | 1 - .../service/GetServiceAccountResponse.java | 1 - .../action/token/CreateTokenResponse.java | 1 - .../action/token/InvalidateTokenResponse.java | 1 - .../action/user/AuthenticateResponse.java | 1 - .../user/GetUserPrivilegesResponse.java | 1 - .../action/user/HasPrivilegesResponse.java | 1 - .../user/ProfileHasPrivilegesResponse.java | 1 - .../core/slm/action/GetSLMStatusAction.java | 1 - .../action/NodeTermsEnumResponse.java | 1 - .../action/FindStructureResponse.java | 1 - .../transport/actions/QueryWatchesAction.java | 1 - .../deprecation/DeprecationInfoAction.java | 1 - .../action/GetAnalyticsCollectionAction.java | 1 - .../action/ConnectorCreateActionResponse.java | 1 - .../action/ConnectorUpdateActionResponse.java | 1 - .../connector/action/GetConnectorAction.java | 1 - .../connector/action/ListConnectorAction.java | 1 - .../action/DeleteConnectorSecretResponse.java | 1 - .../action/GetConnectorSecretResponse.java | 1 - .../action/PostConnectorSecretResponse.java | 1 - .../action/PutConnectorSecretResponse.java | 1 - .../action/GetConnectorSyncJobAction.java | 1 - .../action/ListConnectorSyncJobsAction.java | 1 - .../action/PostConnectorSyncJobAction.java | 1 - .../rules/action/GetQueryRuleAction.java | 1 - .../rules/action/GetQueryRulesetAction.java | 1 - .../rules/action/ListQueryRulesetsAction.java | 1 - .../rules/action/PutQueryRuleAction.java | 1 - .../rules/action/PutQueryRulesetAction.java | 1 - .../rules/action/TestQueryRulesetAction.java | 1 - .../action/GetSearchApplicationAction.java | 1 - .../action/ListSearchApplicationAction.java | 1 - .../action/PutSearchApplicationAction.java | 1 - .../RenderSearchApplicationQueryAction.java | 1 - .../xpack/eql/action/EqlSearchResponse.java | 1 - .../operator/exchange/ExchangeResponse.java | 1 - .../xpack/esql/plugin/ComputeResponse.java | 1 - .../fleet/action/DeleteSecretResponse.java | 1 - .../GetGlobalCheckpointsShardAction.java | 1 - .../xpack/fleet/action/GetSecretResponse.java | 1 - .../fleet/action/PostSecretResponse.java | 1 - .../action/DeletePipelineResponse.java | 1 - .../logstash/action/GetPipelineResponse.java | 1 - .../logstash/action/PutPipelineResponse.java | 1 - .../GetMigrationReindexStatusAction.java | 1 - .../action/ReindexDataStreamAction.java | 1 - .../action/ReindexDataStreamIndexAction.java | 1 - .../profiling/action/GetStatusAction.java | 1 - .../action/cache/FrozenCacheInfoResponse.java | 1 - .../testkit/analyze/BlobAnalyzeAction.java | 1 - .../analyze/GetBlobChecksumAction.java | 1 - .../analyze/RepositoryAnalyzeAction.java | 1 - .../sql/action/SqlClearCursorResponse.java | 1 - .../xpack/sql/action/SqlQueryResponse.java | 1 - .../sql/action/SqlTranslateResponse.java | 1 - 208 files changed, 20 insertions(+), 266 deletions(-) diff --git a/modules/data-streams/src/main/java/org/elasticsearch/datastreams/lifecycle/action/GetDataStreamLifecycleStatsAction.java b/modules/data-streams/src/main/java/org/elasticsearch/datastreams/lifecycle/action/GetDataStreamLifecycleStatsAction.java index e7b4b6a45b2ef..980f8a7611941 100644 --- a/modules/data-streams/src/main/java/org/elasticsearch/datastreams/lifecycle/action/GetDataStreamLifecycleStatsAction.java +++ b/modules/data-streams/src/main/java/org/elasticsearch/datastreams/lifecycle/action/GetDataStreamLifecycleStatsAction.java @@ -67,7 +67,6 @@ public Response(@Nullable Long runDuration, @Nullable Long timeBetweenStarts, Li } public Response(StreamInput in) throws IOException { - super(in); this.runDuration = in.readOptionalVLong(); this.timeBetweenStarts = in.readOptionalVLong(); this.dataStreamStats = in.readCollectionAsImmutableList(DataStreamStats::read); diff --git a/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java b/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java index d93fb33302121..f149d768bf46b 100644 --- a/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java +++ b/modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java @@ -96,7 +96,6 @@ public static class Response extends ActionResponse implements ToXContentObject } Response(StreamInput in) throws IOException { - super(in); grokPatterns = in.readMap(StreamInput::readString); } diff --git a/modules/lang-painless/src/main/java/org/elasticsearch/painless/action/PainlessExecuteAction.java b/modules/lang-painless/src/main/java/org/elasticsearch/painless/action/PainlessExecuteAction.java index 4f34cbd3cc475..7fc46bd9025c0 100644 --- a/modules/lang-painless/src/main/java/org/elasticsearch/painless/action/PainlessExecuteAction.java +++ b/modules/lang-painless/src/main/java/org/elasticsearch/painless/action/PainlessExecuteAction.java @@ -461,7 +461,6 @@ public static class Response extends ActionResponse implements ToXContentObject } Response(StreamInput in) throws IOException { - super(in); result = in.readGenericValue(); } diff --git a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalResponse.java b/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalResponse.java index bde75af92b9e7..bec773fbadeb7 100644 --- a/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalResponse.java +++ b/modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalResponse.java @@ -44,7 +44,6 @@ public RankEvalResponse(double metricScore, Map partia } RankEvalResponse(StreamInput in) throws IOException { - super(in); this.metricScore = in.readDouble(); int partialResultSize = in.readVInt(); this.details = Maps.newMapWithExpectedSize(partialResultSize); diff --git a/server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/node/tasks/CancellableTasksIT.java b/server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/node/tasks/CancellableTasksIT.java index 22bba47b0c5f9..fac477fa9f250 100644 --- a/server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/node/tasks/CancellableTasksIT.java +++ b/server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/node/tasks/CancellableTasksIT.java @@ -495,9 +495,7 @@ public TestResponse() { } - public TestResponse(StreamInput in) throws IOException { - super(in); - } + public TestResponse(StreamInput in) {} @Override public void writeTo(StreamOutput out) throws IOException { diff --git a/server/src/internalClusterTest/java/org/elasticsearch/search/rank/MockedRequestActionBasedRerankerIT.java b/server/src/internalClusterTest/java/org/elasticsearch/search/rank/MockedRequestActionBasedRerankerIT.java index dbdd6e8c50027..f66275022bcce 100644 --- a/server/src/internalClusterTest/java/org/elasticsearch/search/rank/MockedRequestActionBasedRerankerIT.java +++ b/server/src/internalClusterTest/java/org/elasticsearch/search/rank/MockedRequestActionBasedRerankerIT.java @@ -197,11 +197,6 @@ public TestRerankingActionResponse(List scores) { this.scores = scores; } - public TestRerankingActionResponse(StreamInput in) throws IOException { - super(in); - this.scores = in.readCollectionAsList(StreamInput::readFloat); - } - @Override public void writeTo(StreamOutput out) throws IOException { out.writeCollection(scores, StreamOutput::writeFloat); diff --git a/server/src/main/java/org/elasticsearch/action/ActionResponse.java b/server/src/main/java/org/elasticsearch/action/ActionResponse.java index 2c1002505d47b..2b56e94729487 100644 --- a/server/src/main/java/org/elasticsearch/action/ActionResponse.java +++ b/server/src/main/java/org/elasticsearch/action/ActionResponse.java @@ -9,14 +9,11 @@ package org.elasticsearch.action; -import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.transport.TransportResponse; import org.elasticsearch.xcontent.ToXContentObject; import org.elasticsearch.xcontent.XContentBuilder; -import java.io.IOException; - /** * Base class for responses to action requests. */ @@ -24,10 +21,6 @@ public abstract class ActionResponse extends TransportResponse { public ActionResponse() {} - public ActionResponse(StreamInput in) throws IOException { - super(in); - } - public static final class Empty extends ActionResponse implements ToXContentObject { public static final ActionResponse.Empty INSTANCE = new ActionResponse.Empty(); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplainResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplainResponse.java index f2e2b9bc02708..ebffb698aa575 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplainResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplainResponse.java @@ -26,7 +26,6 @@ public class ClusterAllocationExplainResponse extends ActionResponse implements private final ClusterAllocationExplanation cae; public ClusterAllocationExplainResponse(StreamInput in) throws IOException { - super(in); this.cae = new ClusterAllocationExplanation(in); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/TransportGetAllocationStatsAction.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/TransportGetAllocationStatsAction.java index d929fb457d5d1..d0857b02a8bc1 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/TransportGetAllocationStatsAction.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/TransportGetAllocationStatsAction.java @@ -154,7 +154,6 @@ public Response(Map nodeAllocationStats, DiskThresh } public Response(StreamInput in) throws IOException { - super(in); this.nodeAllocationStats = in.readImmutableMap(StreamInput::readString, NodeAllocationStats::new); if (in.getTransportVersion().onOrAfter(TransportVersions.V_8_15_0)) { this.diskThresholdSettings = in.readOptionalWriteable(DiskThresholdSettings::readFrom); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/ClusterFormationInfoAction.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/ClusterFormationInfoAction.java index 848dc8639c699..f5f12f5d17ba0 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/ClusterFormationInfoAction.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/ClusterFormationInfoAction.java @@ -81,7 +81,6 @@ public static class Response extends ActionResponse { private final ClusterFormationFailureHelper.ClusterFormationState clusterFormationState; public Response(StreamInput in) throws IOException { - super(in); clusterFormationState = new ClusterFormationFailureHelper.ClusterFormationState(in); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/CoordinationDiagnosticsAction.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/CoordinationDiagnosticsAction.java index a2ac23ecec4b3..47ad8e2610abe 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/CoordinationDiagnosticsAction.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/coordination/CoordinationDiagnosticsAction.java @@ -84,7 +84,6 @@ public static class Response extends ActionResponse { private final CoordinationDiagnosticsResult result; public Response(StreamInput in) throws IOException { - super(in); result = new CoordinationDiagnosticsResult(in); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/GetDesiredNodesAction.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/GetDesiredNodesAction.java index d3780f47f4ae7..dc8551e37785a 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/GetDesiredNodesAction.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/GetDesiredNodesAction.java @@ -62,7 +62,6 @@ public Response(DesiredNodes desiredNodes) { } public Response(StreamInput in) throws IOException { - super(in); this.desiredNodes = DesiredNodes.readFrom(in); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/UpdateDesiredNodesResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/UpdateDesiredNodesResponse.java index 8e12f079fbfc7..b8a575e0a50cb 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/UpdateDesiredNodesResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/desirednodes/UpdateDesiredNodesResponse.java @@ -36,7 +36,6 @@ public UpdateDesiredNodesResponse(boolean replacedExistingHistoryId, boolean dry } public UpdateDesiredNodesResponse(StreamInput in) throws IOException { - super(in); this.replacedExistingHistoryId = in.readBoolean(); dryRun = in.getTransportVersion().onOrAfter(DRY_RUN_SUPPORTING_VERSION) ? in.readBoolean() : false; } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/health/ClusterHealthResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/health/ClusterHealthResponse.java index 18cf15e60e1cb..8b86c394f4133 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/health/ClusterHealthResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/health/ClusterHealthResponse.java @@ -61,7 +61,6 @@ public class ClusterHealthResponse extends ActionResponse implements ToXContentO public ClusterHealthResponse() {} public ClusterHealthResponse(StreamInput in) throws IOException { - super(in); clusterName = in.readString(); clusterHealthStatus = ClusterHealthStatus.readFrom(in); clusterStateHealth = new ClusterStateHealth(in); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/GetFeatureUpgradeStatusResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/GetFeatureUpgradeStatusResponse.java index f65152a8b72e9..a84d44712187a 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/GetFeatureUpgradeStatusResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/GetFeatureUpgradeStatusResponse.java @@ -48,7 +48,6 @@ public GetFeatureUpgradeStatusResponse(List statuses, Upgr * @throws IOException if we can't deserialize the object */ public GetFeatureUpgradeStatusResponse(StreamInput in) throws IOException { - super(in); this.featureUpgradeStatuses = in.readCollectionAsImmutableList(FeatureUpgradeStatus::new); this.upgradeStatus = in.readEnum(UpgradeStatus.class); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/PostFeatureUpgradeResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/PostFeatureUpgradeResponse.java index 56c0d2eaad900..191939f55d416 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/PostFeatureUpgradeResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/migration/PostFeatureUpgradeResponse.java @@ -58,7 +58,6 @@ public PostFeatureUpgradeResponse( * @throws IOException if we can't deserialize the object */ public PostFeatureUpgradeResponse(StreamInput in) throws IOException { - super(in); this.accepted = in.readBoolean(); this.features = in.readCollectionAsImmutableList(Feature::new); this.reason = in.readOptionalString(); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/PrevalidateNodeRemovalResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/PrevalidateNodeRemovalResponse.java index ea3ddc092f2c9..6b8e4b34fe59d 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/PrevalidateNodeRemovalResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/PrevalidateNodeRemovalResponse.java @@ -32,7 +32,6 @@ public NodesRemovalPrevalidation getPrevalidation() { } public PrevalidateNodeRemovalResponse(StreamInput in) throws IOException { - super(in); prevalidation = NodesRemovalPrevalidation.readFrom(in); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/tasks/get/GetTaskResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/tasks/get/GetTaskResponse.java index 5f14cdcf8f31a..4aed9842484fd 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/tasks/get/GetTaskResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/tasks/get/GetTaskResponse.java @@ -33,7 +33,6 @@ public GetTaskResponse(TaskResult task) { } public GetTaskResponse(StreamInput in) throws IOException { - super(in); task = in.readOptionalWriteable(TaskResult::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/remote/RemoteClusterNodesAction.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/remote/RemoteClusterNodesAction.java index 9bdef4bfe4a13..4e52107933c24 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/remote/RemoteClusterNodesAction.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/remote/RemoteClusterNodesAction.java @@ -81,7 +81,6 @@ public Response(List nodes) { } public Response(StreamInput in) throws IOException { - super(in); this.nodes = in.readCollectionAsList(DiscoveryNode::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/repositories/verify/VerifyRepositoryResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/repositories/verify/VerifyRepositoryResponse.java index d6984c8f90b87..afeed798440fe 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/repositories/verify/VerifyRepositoryResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/repositories/verify/VerifyRepositoryResponse.java @@ -99,7 +99,6 @@ public int hashCode() { public VerifyRepositoryResponse() {} public VerifyRepositoryResponse(StreamInput in) throws IOException { - super(in); this.nodes = in.readCollectionAsList(NodeView::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/reroute/ClusterRerouteResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/reroute/ClusterRerouteResponse.java index f04db5eec667b..fa820f568fea8 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/reroute/ClusterRerouteResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/reroute/ClusterRerouteResponse.java @@ -50,7 +50,6 @@ public class ClusterRerouteResponse extends ActionResponse implements IsAcknowle private final boolean acknowledged; ClusterRerouteResponse(StreamInput in) throws IOException { - super(in); acknowledged = in.readBoolean(); state = ClusterState.readFrom(in, null); explanations = RoutingExplanations.readFrom(in); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsAction.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsAction.java index 7e3c38c735091..9aa170ef52e0d 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsAction.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/settings/ClusterGetSettingsAction.java @@ -80,7 +80,6 @@ public int hashCode() { } public Response(StreamInput in) throws IOException { - super(in); assert in.getTransportVersion().onOrAfter(TransportVersions.V_8_3_0); persistentSettings = Settings.readSettingsFromStream(in); transientSettings = Settings.readSettingsFromStream(in); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/shards/ClusterSearchShardsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/shards/ClusterSearchShardsResponse.java index c994cb3ea6dce..487066f7d5042 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/shards/ClusterSearchShardsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/shards/ClusterSearchShardsResponse.java @@ -28,7 +28,6 @@ public class ClusterSearchShardsResponse extends ActionResponse implements ToXCo private final Map indicesAndFilters; public ClusterSearchShardsResponse(StreamInput in) throws IOException { - super(in); groups = in.readArray(ClusterSearchShardsGroup::new, ClusterSearchShardsGroup[]::new); nodes = in.readArray(DiscoveryNode::new, DiscoveryNode[]::new); indicesAndFilters = in.readMap(AliasFilter::readFrom); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/create/CreateSnapshotResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/create/CreateSnapshotResponse.java index d0919437d493f..ea81e2fb30110 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/create/CreateSnapshotResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/create/CreateSnapshotResponse.java @@ -34,7 +34,6 @@ public CreateSnapshotResponse(@Nullable SnapshotInfo snapshotInfo) { } public CreateSnapshotResponse(StreamInput in) throws IOException { - super(in); snapshotInfo = in.readOptionalWriteable(SnapshotInfo::readFrom); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/GetSnapshottableFeaturesResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/GetSnapshottableFeaturesResponse.java index 3449d004e3447..868f8e60bdfba 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/GetSnapshottableFeaturesResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/GetSnapshottableFeaturesResponse.java @@ -29,7 +29,6 @@ public GetSnapshottableFeaturesResponse(List features) { } public GetSnapshottableFeaturesResponse(StreamInput in) throws IOException { - super(in); snapshottableFeatures = in.readCollectionAsImmutableList(SnapshottableFeature::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/ResetFeatureStateResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/ResetFeatureStateResponse.java index 53d7f62d80960..b30440c9a3c88 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/ResetFeatureStateResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/features/ResetFeatureStateResponse.java @@ -43,7 +43,6 @@ public ResetFeatureStateResponse(List resetFeatureState } public ResetFeatureStateResponse(StreamInput in) throws IOException { - super(in); this.resetFeatureStateStatusList = in.readCollectionAsList(ResetFeatureStateStatus::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/shard/GetShardSnapshotResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/shard/GetShardSnapshotResponse.java index 46d6d95f2a152..82016fb36b5b6 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/shard/GetShardSnapshotResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/shard/GetShardSnapshotResponse.java @@ -33,7 +33,6 @@ public class GetShardSnapshotResponse extends ActionResponse { } GetShardSnapshotResponse(StreamInput in) throws IOException { - super(in); this.latestShardSnapshot = in.readOptionalWriteable(ShardSnapshotInfo::new); this.repositoryFailures = in.readMap(RepositoryException::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotResponse.java index a2ce7b0533d33..156e49bd6d8de 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotResponse.java @@ -35,7 +35,6 @@ public RestoreSnapshotResponse(@Nullable RestoreInfo restoreInfo) { } public RestoreSnapshotResponse(StreamInput in) throws IOException { - super(in); restoreInfo = in.readOptionalWriteable(RestoreInfo::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/SnapshotsStatusResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/SnapshotsStatusResponse.java index cdb6622488caf..283e6bf568ec1 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/SnapshotsStatusResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/SnapshotsStatusResponse.java @@ -29,7 +29,6 @@ public class SnapshotsStatusResponse extends ActionResponse implements ChunkedTo private final List snapshots; public SnapshotsStatusResponse(StreamInput in) throws IOException { - super(in); snapshots = in.readCollectionAsImmutableList(SnapshotStatus::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/state/ClusterStateResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/state/ClusterStateResponse.java index 3b3218b95d874..b71bd36b75232 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/state/ClusterStateResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/state/ClusterStateResponse.java @@ -29,7 +29,6 @@ public class ClusterStateResponse extends ActionResponse { private final boolean waitForTimedOut; public ClusterStateResponse(StreamInput in) throws IOException { - super(in); clusterName = new ClusterName(in); clusterState = in.readOptionalWriteable(innerIn -> ClusterState.readFrom(innerIn, null)); waitForTimedOut = in.readBoolean(); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/stats/RemoteClusterStatsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/stats/RemoteClusterStatsResponse.java index 9a140b6b7424e..f6f6ddb75dc0d 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/stats/RemoteClusterStatsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/stats/RemoteClusterStatsResponse.java @@ -102,7 +102,6 @@ public void writeTo(StreamOutput out) throws IOException { } public RemoteClusterStatsResponse(StreamInput in) throws IOException { - super(in); this.clusterUUID = in.readString(); this.status = ClusterHealthStatus.readFrom(in); this.versions = in.readCollectionAsSet(StreamInput::readString); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptContextResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptContextResponse.java index 845774a578e83..6a65b02a064f6 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptContextResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptContextResponse.java @@ -34,7 +34,6 @@ public class GetScriptContextResponse extends ActionResponse implements ToXConte final Map contexts; GetScriptContextResponse(StreamInput in) throws IOException { - super(in); int size = in.readInt(); Map contexts = Maps.newMapWithExpectedSize(size); for (int i = 0; i < size; i++) { diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptLanguageResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptLanguageResponse.java index 532e86db56ff2..69bbb845d0253 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptLanguageResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetScriptLanguageResponse.java @@ -28,7 +28,6 @@ public class GetScriptLanguageResponse extends ActionResponse implements ToXCont } GetScriptLanguageResponse(StreamInput in) throws IOException { - super(in); info = new ScriptLanguagesInfo(in); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetStoredScriptResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetStoredScriptResponse.java index b578aadb0f57a..f9d32df429078 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetStoredScriptResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/storedscripts/GetStoredScriptResponse.java @@ -31,8 +31,6 @@ public class GetStoredScriptResponse extends ActionResponse implements ToXConten private final StoredScriptSource source; public GetStoredScriptResponse(StreamInput in) throws IOException { - super(in); - if (in.readBoolean()) { source = new StoredScriptSource(in); } else { diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/tasks/PendingClusterTasksResponse.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/tasks/PendingClusterTasksResponse.java index c50f2b8011b1b..391fb96d904e8 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/tasks/PendingClusterTasksResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/tasks/PendingClusterTasksResponse.java @@ -26,7 +26,6 @@ public class PendingClusterTasksResponse extends ActionResponse implements Chunk private final List pendingTasks; public PendingClusterTasksResponse(StreamInput in) throws IOException { - super(in); pendingTasks = in.readCollectionAsList(PendingClusterTask::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java index 23a6b9c8c61a8..8e841219c24de 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java @@ -70,7 +70,6 @@ public GetIndexResponse( } GetIndexResponse(StreamInput in) throws IOException { - super(in); this.indices = in.readStringArray(); mappings = in.readImmutableOpenMap(StreamInput::readString, in.getTransportVersion().before(TransportVersions.V_8_0_0) ? i -> { int numMappings = i.readVInt(); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java index 01e8fe9787014..9c0fe03e95748 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetFieldMappingsResponse.java @@ -46,7 +46,6 @@ public class GetFieldMappingsResponse extends ActionResponse implements ToXConte } GetFieldMappingsResponse(StreamInput in) throws IOException { - super(in); mappings = in.readImmutableMap(mapIn -> { if (mapIn.getTransportVersion().before(TransportVersions.V_8_0_0)) { int typesSize = mapIn.readVInt(); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java index cff2cf9ec8c78..b9f13de85a7d5 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/mapping/get/GetMappingsResponse.java @@ -36,7 +36,6 @@ public GetMappingsResponse(Map mappings) { } GetMappingsResponse(StreamInput in) throws IOException { - super(in); mappings = in.readImmutableMap(in.getTransportVersion().before(TransportVersions.V_8_0_0) ? i -> { int mappingCount = i.readVInt(); assert mappingCount == 1 || mappingCount == 0 : "Expected 0 or 1 mappings but got " + mappingCount; diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/resolve/ResolveClusterActionResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/resolve/ResolveClusterActionResponse.java index ba2666a374a58..58d32ccc5c89c 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/resolve/ResolveClusterActionResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/resolve/ResolveClusterActionResponse.java @@ -39,7 +39,6 @@ public ResolveClusterActionResponse(Map infoMap) { } public ResolveClusterActionResponse(StreamInput in) throws IOException { - super(in); this.infoMap = in.readImmutableMap(ResolveClusterInfo::new); } diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java index e7b8d40451d04..b7ae981dd3a55 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/settings/get/GetSettingsResponse.java @@ -37,7 +37,6 @@ public GetSettingsResponse(Map indexToSettings, Map>> s } public IndicesShardStoresResponse(StreamInput in) throws IOException { - super(in); storeStatuses = in.readImmutableMap( i -> i.readImmutableMap(StreamInput::readInt, j -> j.readCollectionAsImmutableList(StoreStatus::new)) ); diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/template/post/SimulateIndexTemplateResponse.java b/server/src/main/java/org/elasticsearch/action/admin/indices/template/post/SimulateIndexTemplateResponse.java index a521dac60e96a..1f5510ea944ae 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/template/post/SimulateIndexTemplateResponse.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/template/post/SimulateIndexTemplateResponse.java @@ -68,7 +68,6 @@ public RolloverConfiguration getRolloverConfiguration() { } public SimulateIndexTemplateResponse(StreamInput in) throws IOException { - super(in); resolvedTemplate = in.readOptionalWriteable(Template::new); if (in.readBoolean()) { int overlappingTemplatesCount = in.readInt(); diff --git a/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java b/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java index 28e345a527085..567b433d94daf 100644 --- a/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java +++ b/server/src/main/java/org/elasticsearch/action/bulk/BulkResponse.java @@ -41,7 +41,6 @@ public class BulkResponse extends ActionResponse implements Iterable(size); responses = new ArrayList<>(size); diff --git a/server/src/main/java/org/elasticsearch/action/get/TransportGetFromTranslogAction.java b/server/src/main/java/org/elasticsearch/action/get/TransportGetFromTranslogAction.java index 3cbd7497dcf39..19b00feb2546b 100644 --- a/server/src/main/java/org/elasticsearch/action/get/TransportGetFromTranslogAction.java +++ b/server/src/main/java/org/elasticsearch/action/get/TransportGetFromTranslogAction.java @@ -152,7 +152,6 @@ public Response(GetResult getResult, long primaryTerm, long segmentGeneration) { } public Response(StreamInput in) throws IOException { - super(in); segmentGeneration = in.readZLong(); getResult = in.readOptionalWriteable(GetResult::new); primaryTerm = in.getTransportVersion().onOrAfter(TransportVersions.V_8_12_0) ? in.readVLong() : Engine.UNKNOWN_PRIMARY_TERM; diff --git a/server/src/main/java/org/elasticsearch/action/get/TransportShardMultiGetFomTranslogAction.java b/server/src/main/java/org/elasticsearch/action/get/TransportShardMultiGetFomTranslogAction.java index e953ff527f637..eb37195152e61 100644 --- a/server/src/main/java/org/elasticsearch/action/get/TransportShardMultiGetFomTranslogAction.java +++ b/server/src/main/java/org/elasticsearch/action/get/TransportShardMultiGetFomTranslogAction.java @@ -176,7 +176,6 @@ public Response(MultiGetShardResponse response, long primaryTerm, long segmentGe } public Response(StreamInput in) throws IOException { - super(in); segmentGeneration = in.readZLong(); multiGetShardResponse = new MultiGetShardResponse(in); primaryTerm = in.getTransportVersion().onOrAfter(TransportVersions.V_8_12_0) ? in.readVLong() : Engine.UNKNOWN_PRIMARY_TERM; diff --git a/server/src/main/java/org/elasticsearch/action/ingest/GetPipelineResponse.java b/server/src/main/java/org/elasticsearch/action/ingest/GetPipelineResponse.java index 760b87af49a78..432bedfb6f7e3 100644 --- a/server/src/main/java/org/elasticsearch/action/ingest/GetPipelineResponse.java +++ b/server/src/main/java/org/elasticsearch/action/ingest/GetPipelineResponse.java @@ -31,7 +31,6 @@ public class GetPipelineResponse extends ActionResponse implements ToXContentObj private final boolean summary; public GetPipelineResponse(StreamInput in) throws IOException { - super(in); int size = in.readVInt(); pipelines = new ArrayList<>(size); for (int i = 0; i < size; i++) { diff --git a/server/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineResponse.java b/server/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineResponse.java index 3e5b99a810b5e..970f6461ead2e 100644 --- a/server/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineResponse.java +++ b/server/src/main/java/org/elasticsearch/action/ingest/SimulatePipelineResponse.java @@ -26,7 +26,6 @@ public class SimulatePipelineResponse extends ActionResponse implements ToXConte private final List results; public SimulatePipelineResponse(StreamInput in) throws IOException { - super(in); this.pipelineId = in.readOptionalString(); boolean verbose = in.readBoolean(); int responsesLength = in.readVInt(); diff --git a/server/src/main/java/org/elasticsearch/action/search/CanMatchNodeResponse.java b/server/src/main/java/org/elasticsearch/action/search/CanMatchNodeResponse.java index 82c5784aaedd3..c7437358fced5 100644 --- a/server/src/main/java/org/elasticsearch/action/search/CanMatchNodeResponse.java +++ b/server/src/main/java/org/elasticsearch/action/search/CanMatchNodeResponse.java @@ -24,7 +24,6 @@ public class CanMatchNodeResponse extends TransportResponse { private final List responses; public CanMatchNodeResponse(StreamInput in) throws IOException { - super(in); responses = in.readCollectionAsList(ResponseOrFailure::new); } diff --git a/server/src/main/java/org/elasticsearch/action/search/MultiSearchResponse.java b/server/src/main/java/org/elasticsearch/action/search/MultiSearchResponse.java index a9c512380e973..477d8e30a234a 100644 --- a/server/src/main/java/org/elasticsearch/action/search/MultiSearchResponse.java +++ b/server/src/main/java/org/elasticsearch/action/search/MultiSearchResponse.java @@ -126,7 +126,6 @@ public Exception getFailure() { private final RefCounted refCounted = LeakTracker.wrap(new SimpleRefCounted()); public MultiSearchResponse(StreamInput in) throws IOException { - super(in); items = in.readArray(Item::new, Item[]::new); tookInMillis = in.readVLong(); } diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchResponse.java b/server/src/main/java/org/elasticsearch/action/search/SearchResponse.java index 787dc14f6cd96..bf5867b4b125f 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchResponse.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchResponse.java @@ -90,7 +90,6 @@ public class SearchResponse extends ActionResponse implements ChunkedToXContentO private final RefCounted refCounted = LeakTracker.wrap(new SimpleRefCounted()); public SearchResponse(StreamInput in) throws IOException { - super(in); this.hits = SearchHits.readFrom(in, true); this.aggregations = in.readBoolean() ? InternalAggregations.readFrom(in) : null; this.suggest = in.readBoolean() ? new Suggest(in) : null; diff --git a/server/src/main/java/org/elasticsearch/action/search/SearchShardsResponse.java b/server/src/main/java/org/elasticsearch/action/search/SearchShardsResponse.java index ed1a1d5ae6cc4..69fb0b0c2aaa0 100644 --- a/server/src/main/java/org/elasticsearch/action/search/SearchShardsResponse.java +++ b/server/src/main/java/org/elasticsearch/action/search/SearchShardsResponse.java @@ -47,7 +47,6 @@ public SearchShardsResponse( } public SearchShardsResponse(StreamInput in) throws IOException { - super(in); this.groups = in.readCollectionAsList(SearchShardsGroup::new); this.nodes = in.readCollectionAsList(DiscoveryNode::new); this.aliasFilters = in.readMap(AliasFilter::readFrom); diff --git a/server/src/main/java/org/elasticsearch/action/search/TransportOpenPointInTimeAction.java b/server/src/main/java/org/elasticsearch/action/search/TransportOpenPointInTimeAction.java index 36ca0fba94372..fa10e571d0e1a 100644 --- a/server/src/main/java/org/elasticsearch/action/search/TransportOpenPointInTimeAction.java +++ b/server/src/main/java/org/elasticsearch/action/search/TransportOpenPointInTimeAction.java @@ -331,7 +331,6 @@ private static final class ShardOpenReaderResponse extends SearchPhaseResult { } ShardOpenReaderResponse(StreamInput in) throws IOException { - super(in); contextId = new ShardSearchContextId(in); } diff --git a/server/src/main/java/org/elasticsearch/action/support/broadcast/BroadcastShardResponse.java b/server/src/main/java/org/elasticsearch/action/support/broadcast/BroadcastShardResponse.java index ed4b948189a49..def5ae2b622f0 100644 --- a/server/src/main/java/org/elasticsearch/action/support/broadcast/BroadcastShardResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/broadcast/BroadcastShardResponse.java @@ -21,7 +21,6 @@ public abstract class BroadcastShardResponse extends TransportResponse { ShardId shardId; protected BroadcastShardResponse(StreamInput in) throws IOException { - super(in); shardId = new ShardId(in); } diff --git a/server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java b/server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java index 4c691334b6fa8..b51960e238b2d 100644 --- a/server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java +++ b/server/src/main/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java @@ -551,7 +551,6 @@ public class NodeResponse extends TransportResponse { protected List results; NodeResponse(StreamInput in) throws IOException { - super(in); nodeId = in.readString(); totalShards = in.readVInt(); results = in.readCollectionAsList((stream) -> stream.readBoolean() ? readShardResult(stream) : null); diff --git a/server/src/main/java/org/elasticsearch/action/support/master/AcknowledgedResponse.java b/server/src/main/java/org/elasticsearch/action/support/master/AcknowledgedResponse.java index dcee489e92468..35e82d8213c4c 100644 --- a/server/src/main/java/org/elasticsearch/action/support/master/AcknowledgedResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/master/AcknowledgedResponse.java @@ -41,7 +41,6 @@ public static AcknowledgedResponse readFrom(StreamInput in) throws IOException { } protected AcknowledgedResponse(StreamInput in) throws IOException { - super(in); acknowledged = in.readBoolean(); } diff --git a/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodeResponse.java b/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodeResponse.java index ab76d99c35fee..40c650eb6af4b 100644 --- a/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodeResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodeResponse.java @@ -34,7 +34,6 @@ public abstract class BaseNodeResponse extends TransportResponse { * @param node the expected remote node, or {@code null} if not known. */ protected BaseNodeResponse(StreamInput in, @Nullable DiscoveryNode node) throws IOException { - super(in); final DiscoveryNode remoteNode = new DiscoveryNode(in); if (node == null) { this.node = remoteNode; diff --git a/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodesResponse.java b/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodesResponse.java index eb3958654a375..416a121b50935 100644 --- a/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodesResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/nodes/BaseNodesResponse.java @@ -30,7 +30,6 @@ public abstract class BaseNodesResponse @SuppressWarnings("this-escape") protected BaseNodesResponse(StreamInput in) throws IOException { - super(in); clusterName = new ClusterName(in); nodes = readNodesFrom(in); failures = in.readCollectionAsList(FailedNodeException::new); diff --git a/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java b/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java index 3f207ff43f86a..67319f77952a0 100644 --- a/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationResponse.java @@ -44,7 +44,6 @@ public class ReplicationResponse extends ActionResponse { public ReplicationResponse() {} public ReplicationResponse(StreamInput in) throws IOException { - super(in); shardInfo = ReplicationResponse.ShardInfo.readFrom(in); } diff --git a/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java b/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java index dc921bb0d1111..3c12b65cbc6bb 100644 --- a/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java +++ b/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java @@ -1214,7 +1214,6 @@ public static class ReplicaResponse extends ActionResponse implements Replicatio private final long globalCheckpoint; ReplicaResponse(StreamInput in) throws IOException { - super(in); localCheckpoint = in.readZLong(); globalCheckpoint = in.readZLong(); } diff --git a/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java b/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java index 63c3445bf1487..9b9e3d05f6999 100644 --- a/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java +++ b/server/src/main/java/org/elasticsearch/action/support/tasks/BaseTasksResponse.java @@ -45,7 +45,6 @@ public BaseTasksResponse(List taskFailures, List taskFailures = new ArrayList<>(size); for (int i = 0; i < size; i++) { diff --git a/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java b/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java index fb4ce6eeb493c..46417839a1458 100644 --- a/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java +++ b/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java @@ -329,7 +329,6 @@ private class NodeTasksResponse extends TransportResponse { protected List results; NodeTasksResponse(StreamInput in) throws IOException { - super(in); nodeId = in.readString(); int resultsSize = in.readVInt(); results = new ArrayList<>(resultsSize); diff --git a/server/src/main/java/org/elasticsearch/action/synonyms/GetSynonymRuleAction.java b/server/src/main/java/org/elasticsearch/action/synonyms/GetSynonymRuleAction.java index dd3239372c5bf..ed0e9418a6ad8 100644 --- a/server/src/main/java/org/elasticsearch/action/synonyms/GetSynonymRuleAction.java +++ b/server/src/main/java/org/elasticsearch/action/synonyms/GetSynonymRuleAction.java @@ -96,7 +96,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final SynonymRule synonymRule; public Response(StreamInput in) throws IOException { - super(in); this.synonymRule = new SynonymRule(in); } diff --git a/server/src/main/java/org/elasticsearch/action/synonyms/SynonymUpdateResponse.java b/server/src/main/java/org/elasticsearch/action/synonyms/SynonymUpdateResponse.java index 8f40b48d2002e..c1a9f2a80c470 100644 --- a/server/src/main/java/org/elasticsearch/action/synonyms/SynonymUpdateResponse.java +++ b/server/src/main/java/org/elasticsearch/action/synonyms/SynonymUpdateResponse.java @@ -29,7 +29,6 @@ public class SynonymUpdateResponse extends ActionResponse implements ToXContentO private final ReloadAnalyzersResponse reloadAnalyzersResponse; public SynonymUpdateResponse(StreamInput in) throws IOException { - super(in); this.updateStatus = in.readEnum(UpdateSynonymsResultStatus.class); this.reloadAnalyzersResponse = new ReloadAnalyzersResponse(in); } diff --git a/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java b/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java index 85a46f66961ad..09e1ad7dcecac 100644 --- a/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java +++ b/server/src/main/java/org/elasticsearch/action/termvectors/MultiTermVectorsShardResponse.java @@ -30,7 +30,6 @@ public class MultiTermVectorsShardResponse extends ActionResponse { } MultiTermVectorsShardResponse(StreamInput in) throws IOException { - super(in); int size = in.readVInt(); locations = new ArrayList<>(size); responses = new ArrayList<>(size); diff --git a/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java b/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java index 6c0bced83eace..9d6e27af0b092 100644 --- a/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java +++ b/server/src/main/java/org/elasticsearch/index/reindex/BulkByScrollResponse.java @@ -42,7 +42,6 @@ public class BulkByScrollResponse extends ActionResponse implements ToXContentFr static final String FAILURES_FIELD = "failures"; public BulkByScrollResponse(StreamInput in) throws IOException { - super(in); took = in.readTimeValue(); status = new BulkByScrollTask.Status(in); bulkFailures = in.readCollectionAsList(Failure::new); diff --git a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java index 4c43833d9da46..70d347cf45349 100644 --- a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java +++ b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryResponse.java @@ -59,7 +59,6 @@ public final class RecoveryResponse extends TransportResponse { } RecoveryResponse(StreamInput in) throws IOException { - super(in); phase1FileNames = in.readStringCollectionAsList(); phase1FileSizes = in.readCollectionAsList(StreamInput::readVLong); phase1ExistingFileNames = in.readStringCollectionAsList(); diff --git a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java index a493872600b35..65cda435eb4c1 100644 --- a/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java +++ b/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsResponse.java @@ -23,7 +23,6 @@ final class RecoveryTranslogOperationsResponse extends TransportResponse { } RecoveryTranslogOperationsResponse(final StreamInput in) throws IOException { - super(in); localCheckpoint = in.readZLong(); } diff --git a/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java b/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java index d785fa22605e3..4687333752ec7 100644 --- a/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java +++ b/server/src/main/java/org/elasticsearch/persistent/PersistentTaskResponse.java @@ -23,7 +23,6 @@ public class PersistentTaskResponse extends ActionResponse { private final PersistentTask task; public PersistentTaskResponse(StreamInput in) throws IOException { - super(in); task = in.readOptionalWriteable(PersistentTask::new); } diff --git a/server/src/main/java/org/elasticsearch/search/CanMatchShardResponse.java b/server/src/main/java/org/elasticsearch/search/CanMatchShardResponse.java index 985e7a52aae81..f28d7a046e92b 100644 --- a/server/src/main/java/org/elasticsearch/search/CanMatchShardResponse.java +++ b/server/src/main/java/org/elasticsearch/search/CanMatchShardResponse.java @@ -23,7 +23,6 @@ public final class CanMatchShardResponse extends SearchPhaseResult { private final MinAndMax estimatedMinAndMax; public CanMatchShardResponse(StreamInput in) throws IOException { - super(in); this.canMatch = in.readBoolean(); estimatedMinAndMax = in.readOptionalWriteable(MinAndMax::new); } diff --git a/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java b/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java index 01c1665451996..d6f2e7a4bdaba 100644 --- a/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java +++ b/server/src/main/java/org/elasticsearch/search/SearchPhaseResult.java @@ -9,7 +9,6 @@ package org.elasticsearch.search; -import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.core.Nullable; import org.elasticsearch.search.fetch.FetchSearchResult; @@ -37,13 +36,7 @@ public abstract class SearchPhaseResult extends TransportResponse { private ShardSearchRequest shardSearchRequest; private RescoreDocIds rescoreDocIds = RescoreDocIds.EMPTY; - protected SearchPhaseResult() { - - } - - protected SearchPhaseResult(StreamInput in) throws IOException { - super(in); - } + protected SearchPhaseResult() {} /** * Specifies whether the specific search phase results are associated with an opened SearchContext on the shards that diff --git a/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java b/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java index 2fb176d1e0119..737096ed652d2 100644 --- a/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/dfs/DfsSearchResult.java @@ -39,7 +39,6 @@ public final class DfsSearchResult extends SearchPhaseResult { private SearchProfileDfsPhaseResult searchProfileDfsPhaseResult; public DfsSearchResult(StreamInput in) throws IOException { - super(in); contextId = new ShardSearchContextId(in); int termsSize = in.readVInt(); if (termsSize == 0) { diff --git a/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java b/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java index c56edcf0e7a12..1568cc885d677 100644 --- a/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/fetch/FetchSearchResult.java @@ -41,7 +41,6 @@ public FetchSearchResult(ShardSearchContextId id, SearchShardTarget shardTarget) } public FetchSearchResult(StreamInput in) throws IOException { - super(in); contextId = new ShardSearchContextId(in); hits = SearchHits.readFrom(in, true); profileResult = in.readOptionalWriteable(ProfileResult::new); diff --git a/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java b/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java index e57adee23a0c1..546b6bd7c5836 100644 --- a/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/fetch/ScrollQueryFetchSearchResult.java @@ -22,7 +22,6 @@ public final class ScrollQueryFetchSearchResult extends SearchPhaseResult { private final QueryFetchSearchResult result; public ScrollQueryFetchSearchResult(StreamInput in) throws IOException { - super(in); SearchShardTarget searchShardTarget = new SearchShardTarget(in); result = new QueryFetchSearchResult(in); setSearchShardTarget(searchShardTarget); diff --git a/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java b/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java index b7e2e361c28b6..b69269bc01ea2 100644 --- a/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/query/QuerySearchResult.java @@ -88,7 +88,6 @@ public QuerySearchResult(StreamInput in) throws IOException { * @param delayedAggregations whether to use delayed aggregations or not */ public QuerySearchResult(StreamInput in, boolean delayedAggregations) throws IOException { - super(in); isNull = in.readBoolean(); if (isNull == false) { ShardSearchContextId id = new ShardSearchContextId(in); diff --git a/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java b/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java index b71bc4ba9059d..967902dbfa87a 100644 --- a/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java +++ b/server/src/main/java/org/elasticsearch/search/query/ScrollQuerySearchResult.java @@ -21,7 +21,6 @@ public final class ScrollQuerySearchResult extends SearchPhaseResult { private final QuerySearchResult result; public ScrollQuerySearchResult(StreamInput in) throws IOException { - super(in); SearchShardTarget shardTarget = new SearchShardTarget(in); // This was created with refCount = 1, doesn't need to be incRef'd result = new QuerySearchResult(in); diff --git a/server/src/main/java/org/elasticsearch/search/rank/feature/RankFeatureResult.java b/server/src/main/java/org/elasticsearch/search/rank/feature/RankFeatureResult.java index cf736217c914e..2407866fe2350 100644 --- a/server/src/main/java/org/elasticsearch/search/rank/feature/RankFeatureResult.java +++ b/server/src/main/java/org/elasticsearch/search/rank/feature/RankFeatureResult.java @@ -37,7 +37,6 @@ public RankFeatureResult(ShardSearchContextId id, SearchShardTarget shardTarget, @SuppressWarnings("this-escape") public RankFeatureResult(StreamInput in) throws IOException { - super(in); contextId = new ShardSearchContextId(in); rankShardResult = in.readOptionalWriteable(RankFeatureShardResult::new); setShardSearchRequest(in.readOptionalWriteable(ShardSearchRequest::new)); diff --git a/server/src/main/java/org/elasticsearch/transport/InboundHandler.java b/server/src/main/java/org/elasticsearch/transport/InboundHandler.java index 01069609ac742..bdb5d2c4f2332 100644 --- a/server/src/main/java/org/elasticsearch/transport/InboundHandler.java +++ b/server/src/main/java/org/elasticsearch/transport/InboundHandler.java @@ -418,7 +418,6 @@ private void doHandleResponse( final T response; try (releaseResponseBuffer) { response = handler.read(stream); - response.remoteAddress(remoteAddress); } catch (Exception e) { final TransportException serializationException = new TransportSerializationException( "Failed to deserialize response from handler [" + handler + "]", diff --git a/server/src/main/java/org/elasticsearch/transport/TransportActionProxy.java b/server/src/main/java/org/elasticsearch/transport/TransportActionProxy.java index 25278e5b276fd..f5b2f68ccbd94 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportActionProxy.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportActionProxy.java @@ -101,7 +101,6 @@ static final class BytesTransportResponse extends TransportResponse { final ReleasableBytesReference bytes; BytesTransportResponse(StreamInput in) throws IOException { - super(in); this.bytes = in.readAllToReleasableBytesReference(); } diff --git a/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java b/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java index a43b1e7440bda..8f85a0dfb3e5b 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportHandshaker.java @@ -312,7 +312,6 @@ static final class HandshakeResponse extends TransportResponse { } private HandshakeResponse(StreamInput in) throws IOException { - super(in); responseVersion = TransportVersion.readVersion(in); } diff --git a/server/src/main/java/org/elasticsearch/transport/TransportMessage.java b/server/src/main/java/org/elasticsearch/transport/TransportMessage.java index c38087920865b..b93cdd4cbcbae 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportMessage.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportMessage.java @@ -9,38 +9,16 @@ package org.elasticsearch.transport; -import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.Writeable; -import org.elasticsearch.core.Nullable; import org.elasticsearch.core.RefCounted; -import java.net.InetSocketAddress; - public abstract class TransportMessage implements Writeable, RefCounted { - @Nullable // set by the transport service on inbound messages; unset on outbound messages - private InetSocketAddress remoteAddress; - - public void remoteAddress(InetSocketAddress remoteAddress) { - this.remoteAddress = remoteAddress; - } - - @Nullable // set by the transport service on inbound messages; unset on outbound messages - public InetSocketAddress remoteAddress() { - return remoteAddress; - } - /** * Constructs a new empty transport message */ public TransportMessage() {} - /** - * Constructs a new transport message with the data from the {@link StreamInput}. This is - * currently a no-op - */ - public TransportMessage(StreamInput in) {} - @Override public void incRef() { // noop, override to manage the life-cycle of resources held by a transport message diff --git a/server/src/main/java/org/elasticsearch/transport/TransportRequest.java b/server/src/main/java/org/elasticsearch/transport/TransportRequest.java index ca6203dbe700f..393d015123473 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportRequest.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportRequest.java @@ -11,12 +11,18 @@ import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; +import org.elasticsearch.core.Nullable; import org.elasticsearch.tasks.TaskAwareRequest; import org.elasticsearch.tasks.TaskId; import java.io.IOException; +import java.net.InetSocketAddress; public abstract class TransportRequest extends TransportMessage implements TaskAwareRequest { + + @Nullable // set by the transport service on inbound messages; unset on outbound messages + private InetSocketAddress remoteAddress; + /** * Parent of this request. Defaults to {@link TaskId#EMPTY_TASK_ID}, meaning "no parent". */ @@ -33,6 +39,15 @@ public TransportRequest(StreamInput in) throws IOException { parentTaskId = TaskId.readFromStream(in); } + public void remoteAddress(InetSocketAddress remoteAddress) { + this.remoteAddress = remoteAddress; + } + + @Nullable // set by the transport service on inbound messages; unset on outbound messages + public InetSocketAddress remoteAddress() { + return remoteAddress; + } + /** * Set a reference to task that created this request. */ diff --git a/server/src/main/java/org/elasticsearch/transport/TransportResponse.java b/server/src/main/java/org/elasticsearch/transport/TransportResponse.java index 6dedbe7994058..e259d2abda119 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportResponse.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportResponse.java @@ -9,7 +9,6 @@ package org.elasticsearch.transport; -import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import java.io.IOException; @@ -21,15 +20,6 @@ public abstract class TransportResponse extends TransportMessage { */ public TransportResponse() {} - /** - * Constructs a new transport response with the data from the {@link StreamInput}. This is - * currently a no-op. However, this exists to allow extenders to call super(in) - * so that reading can mirror writing where we often call super.writeTo(out). - */ - public TransportResponse(StreamInput in) throws IOException { - super(in); - } - public static class Empty extends TransportResponse { public static final Empty INSTANCE = new Empty(); diff --git a/server/src/main/java/org/elasticsearch/transport/TransportService.java b/server/src/main/java/org/elasticsearch/transport/TransportService.java index 0fb767c5789f9..c9211478d5b6f 100644 --- a/server/src/main/java/org/elasticsearch/transport/TransportService.java +++ b/server/src/main/java/org/elasticsearch/transport/TransportService.java @@ -673,7 +673,6 @@ public HandshakeResponse(Version version, String buildHash, DiscoveryNode discov } public HandshakeResponse(StreamInput in) throws IOException { - super(in); // the first two fields need only VInts and raw (ASCII) characters, so we cross our fingers and hope that they appear // on the wire as we expect them to even if this turns out to be an incompatible build version = Version.readVersion(in); diff --git a/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java b/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java index e11b0749dad41..8d191fb7ff365 100644 --- a/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java +++ b/server/src/test/java/org/elasticsearch/action/support/master/TransportMasterNodeActionTests.java @@ -215,7 +215,6 @@ class Response extends ActionResponse { Response() {} Response(StreamInput in) throws IOException { - super(in); identity = in.readLong(); } diff --git a/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java b/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java index 3e9af70bb0725..c6a3dc9eddd1d 100644 --- a/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java +++ b/server/src/test/java/org/elasticsearch/action/support/single/instance/TransportInstanceSingleOperationActionTests.java @@ -83,10 +83,6 @@ public Request(StreamInput in) throws IOException { public static class Response extends ActionResponse { public Response() {} - public Response(StreamInput in) throws IOException { - super(in); - } - @Override public void writeTo(StreamOutput out) throws IOException {} } diff --git a/server/src/test/java/org/elasticsearch/health/node/action/TransportHealthNodeActionTests.java b/server/src/test/java/org/elasticsearch/health/node/action/TransportHealthNodeActionTests.java index 0fcb708f68ef2..5464b50dc5524 100644 --- a/server/src/test/java/org/elasticsearch/health/node/action/TransportHealthNodeActionTests.java +++ b/server/src/test/java/org/elasticsearch/health/node/action/TransportHealthNodeActionTests.java @@ -135,7 +135,6 @@ static class Response extends ActionResponse { Response() {} Response(StreamInput in) throws IOException { - super(in); identity = in.readLong(); } diff --git a/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java b/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java index bc7133c99a506..ebb0e9842c3ae 100644 --- a/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java +++ b/server/src/test/java/org/elasticsearch/indices/settings/InternalOrPrivateSettingsPlugin.java @@ -104,9 +104,7 @@ public void writeTo(final StreamOutput out) throws IOException { static class Response extends ActionResponse { Response() {} - Response(StreamInput in) throws IOException { - super(in); - } + Response(StreamInput in) {} @Override public void writeTo(StreamOutput out) throws IOException {} diff --git a/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java b/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java index 46585ac382583..2f3ae86e65d13 100644 --- a/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java +++ b/server/src/test/java/org/elasticsearch/transport/TransportActionProxyTests.java @@ -450,7 +450,6 @@ protected void closeInternal() {} } SimpleTestResponse(StreamInput in) throws IOException { - super(in); this.targetNode = in.readString(); } diff --git a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java index 4595fbf286077..cc8fc90869e14 100644 --- a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java @@ -1949,7 +1949,6 @@ public Executor executor() { @Override public void handleResponse(TestResponse response) { - addressB.set(response.remoteAddress()); latch.countDown(); } @@ -2092,7 +2091,6 @@ private static class TestResponse extends TransportResponse { final String info; TestResponse(StreamInput in) throws IOException { - super(in); this.info = in.readOptionalString(); } diff --git a/test/framework/src/main/java/org/elasticsearch/transport/TestResponse.java b/test/framework/src/main/java/org/elasticsearch/transport/TestResponse.java index 0f6cb022725e5..4df4f29ea8e6c 100644 --- a/test/framework/src/main/java/org/elasticsearch/transport/TestResponse.java +++ b/test/framework/src/main/java/org/elasticsearch/transport/TestResponse.java @@ -22,7 +22,6 @@ public TestResponse(String value) { } public TestResponse(StreamInput in) throws IOException { - super(in); this.value = in.readString(); } diff --git a/test/framework/src/test/java/org/elasticsearch/transport/DisruptableMockTransportTests.java b/test/framework/src/test/java/org/elasticsearch/transport/DisruptableMockTransportTests.java index 4cd3a8d04c4f3..539cb8488bbf6 100644 --- a/test/framework/src/test/java/org/elasticsearch/transport/DisruptableMockTransportTests.java +++ b/test/framework/src/test/java/org/elasticsearch/transport/DisruptableMockTransportTests.java @@ -663,8 +663,7 @@ private class TestResponse extends TransportResponse { refCounted = AbstractRefCounted.of(() -> activeRequestCount--); } - TestResponse(StreamInput in) throws IOException { - super(in); + TestResponse(StreamInput in) { activeRequestCount++; refCounted = AbstractRefCounted.of(() -> activeRequestCount--); } diff --git a/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/GetAutoscalingCapacityAction.java b/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/GetAutoscalingCapacityAction.java index 836c8b155cb09..5a7bc7c9b6da4 100644 --- a/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/GetAutoscalingCapacityAction.java +++ b/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/GetAutoscalingCapacityAction.java @@ -93,7 +93,6 @@ public Response(final SortedMap results) { } public Response(final StreamInput in) throws IOException { - super(in); results = new TreeMap<>(in.readMap(AutoscalingDeciderResults::new)); } diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java index b35dca2881455..dfc2bbc744921 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardChangesAction.java @@ -264,7 +264,6 @@ public long getTookInMillis() { } Response(StreamInput in) throws IOException { - super(in); mappingVersion = in.readVLong(); settingsVersion = in.readVLong(); aliasesVersion = in.readVLong(); diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/GetCcrRestoreFileChunkAction.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/GetCcrRestoreFileChunkAction.java index 63d5b1f95b228..1fb4fb6f0fb72 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/GetCcrRestoreFileChunkAction.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/GetCcrRestoreFileChunkAction.java @@ -143,7 +143,6 @@ public static class GetCcrRestoreFileChunkResponse extends ActionResponse { private final ReleasableBytesReference chunk; GetCcrRestoreFileChunkResponse(StreamInput streamInput) throws IOException { - super(streamInput); assert ThreadPool.assertCurrentThreadPool(ThreadPool.Names.GENERIC); // large responses must fork before deserialization offset = streamInput.readVLong(); chunk = streamInput.readReleasableBytesReference(); diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/PutCcrRestoreSessionAction.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/PutCcrRestoreSessionAction.java index e090b50480d55..524a5a7299782 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/PutCcrRestoreSessionAction.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/repositories/PutCcrRestoreSessionAction.java @@ -157,7 +157,6 @@ public static class PutCcrRestoreSessionResponse extends ActionResponse { } PutCcrRestoreSessionResponse(StreamInput in) throws IOException { - super(in); node = new DiscoveryNode(in); storeFileMetadata = Store.MetadataSnapshot.readFrom(in); mappingVersion = in.readVLong(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetBasicStatusResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetBasicStatusResponse.java index b0a162eb3ec14..b8bbf6e5b5ad1 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetBasicStatusResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetBasicStatusResponse.java @@ -20,7 +20,6 @@ public class GetBasicStatusResponse extends ActionResponse implements ToXContent private final boolean eligibleToStartBasic; GetBasicStatusResponse(StreamInput in) throws IOException { - super(in); eligibleToStartBasic = in.readBoolean(); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetLicenseResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetLicenseResponse.java index 419b2eb806a78..bd2c203b926d6 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetLicenseResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetLicenseResponse.java @@ -17,7 +17,6 @@ public class GetLicenseResponse extends ActionResponse { private License license; GetLicenseResponse(StreamInput in) throws IOException { - super(in); if (in.readBoolean()) { license = License.readLicense(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetTrialStatusResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetTrialStatusResponse.java index 5bceab8edbe92..2d4743d4a8d06 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetTrialStatusResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/GetTrialStatusResponse.java @@ -20,7 +20,6 @@ public class GetTrialStatusResponse extends ActionResponse implements ToXContent private final boolean eligibleToStartTrial; GetTrialStatusResponse(StreamInput in) throws IOException { - super(in); eligibleToStartTrial = in.readBoolean(); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/PostStartTrialResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/PostStartTrialResponse.java index 87b49f3ef9e82..bba557daf3ac7 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/license/PostStartTrialResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/license/PostStartTrialResponse.java @@ -53,7 +53,6 @@ RestStatus getRestStatus() { private final String acknowledgeMessage; PostStartTrialResponse(StreamInput in) throws IOException { - super(in); status = in.readEnum(Status.class); acknowledgeMessage = in.readOptionalString(); int size = in.readVInt(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/XPackInfoResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/XPackInfoResponse.java index 972fbde8ccf3c..906143742bb3d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/XPackInfoResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/XPackInfoResponse.java @@ -43,7 +43,6 @@ public class XPackInfoResponse extends ActionResponse implements ToXContentObjec private final FeatureSetsInfo featureSetsInfo; public XPackInfoResponse(StreamInput in) throws IOException { - super(in); this.buildInfo = in.readOptionalWriteable(BuildInfo::new); this.licenseInfo = in.readOptionalWriteable(LicenseInfo::new); this.featureSetsInfo = in.readOptionalWriteable(FeatureSetsInfo::new); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersResponse.java index ee2b81049b4d5..ab089f40a117f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersResponse.java @@ -57,7 +57,6 @@ public MigrateToDataTiersResponse( } public MigrateToDataTiersResponse(StreamInput in) throws IOException { - super(in); removedIndexTemplateName = in.readOptionalString(); migratedPolicies = in.readStringCollectionAsList(); migratedIndices = in.readStringCollectionAsList(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java index 3324b37df01e4..243123f9e6cd5 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/AbstractGetResourcesResponse.java @@ -27,7 +27,6 @@ protected AbstractGetResourcesResponse() {} @SuppressWarnings("this-escape") protected AbstractGetResourcesResponse(StreamInput in) throws IOException { - super(in); resources = new QueryPage<>(in, getReader()); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/XPackUsageFeatureResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/XPackUsageFeatureResponse.java index 0cacf67e7b309..c92018216847c 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/XPackUsageFeatureResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/XPackUsageFeatureResponse.java @@ -18,7 +18,6 @@ public class XPackUsageFeatureResponse extends ActionResponse { private final XPackFeatureUsage usage; public XPackUsageFeatureResponse(StreamInput in) throws IOException { - super(in); usage = in.readNamedWriteable(XPackFeatureUsage.class); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/CcrStatsAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/CcrStatsAction.java index 1ac164d600115..d56f426cd6e35 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/CcrStatsAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/CcrStatsAction.java @@ -104,7 +104,6 @@ public Response(AutoFollowStats autoFollowStats, FollowStatsAction.StatsResponse } public Response(StreamInput in) throws IOException { - super(in); autoFollowStats = new AutoFollowStats(in); followStats = new FollowStatsAction.StatsResponses(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java index 821559e16fa38..51bcc2ec3e3c5 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/FollowInfoAction.java @@ -99,7 +99,6 @@ public List getFollowInfos() { } public Response(StreamInput in) throws IOException { - super(in); followInfos = in.readCollectionAsList(FollowerInfo::new); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java index 5f08a4c253005..097bceaf99ed7 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/GetAutoFollowPatternAction.java @@ -90,7 +90,6 @@ public Map getAutoFollowPatterns() { } public Response(StreamInput in) throws IOException { - super(in); autoFollowPatterns = in.readMap(AutoFollowPattern::readFrom); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java index 82941c440484d..c1f6609615a08 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutFollowAction.java @@ -298,7 +298,6 @@ public boolean isIndexFollowingStarted() { } public Response(StreamInput in) throws IOException { - super(in); followIndexCreated = in.readBoolean(); followIndexShardsAcked = in.readBoolean(); indexFollowingStarted = in.readBoolean(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/EnrichStatsAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/EnrichStatsAction.java index 36322ed6c6cbd..97265ffdd5338 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/EnrichStatsAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/EnrichStatsAction.java @@ -63,7 +63,6 @@ public Response(List executingPolicies, List } public Response(StreamInput in) throws IOException { - super(in); executingPolicies = in.readCollectionAsList(ExecutingPolicy::new); coordinatorStats = in.readCollectionAsList(CoordinatorStats::new); cacheStats = in.readCollectionAsList(CacheStats::new); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/ExecuteEnrichPolicyAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/ExecuteEnrichPolicyAction.java index 65bae5e94852c..799f350e77c34 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/ExecuteEnrichPolicyAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/action/ExecuteEnrichPolicyAction.java @@ -109,7 +109,6 @@ public ExecuteEnrichPolicyStatus getStatus() { } public Response(StreamInput in) throws IOException { - super(in); if (in.readBoolean()) { this.status = new ExecuteEnrichPolicyStatus(in); this.taskId = null; diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ExplainLifecycleResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ExplainLifecycleResponse.java index 914a025e35c21..eda79eba36c11 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ExplainLifecycleResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ExplainLifecycleResponse.java @@ -33,7 +33,6 @@ public class ExplainLifecycleResponse extends ActionResponse implements ToXConte private final Map indexResponses; public ExplainLifecycleResponse(StreamInput in) throws IOException { - super(in); int size = in.readVInt(); Map indexResponses = Maps.newMapWithExpectedSize(size); for (int i = 0; i < size; i++) { diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetLifecycleAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetLifecycleAction.java index 60042ab666c60..a2dc83fe2dbae 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetLifecycleAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetLifecycleAction.java @@ -44,7 +44,6 @@ public static class Response extends ActionResponse implements ChunkedToXContent private final List policies; public Response(StreamInput in) throws IOException { - super(in); this.policies = in.readCollectionAsList(LifecyclePolicyResponseItem::new); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetStatusAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetStatusAction.java index c3022adb2f60a..d8cbcbabdbc5f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetStatusAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/GetStatusAction.java @@ -32,7 +32,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final OperationMode mode; public Response(StreamInput in) throws IOException { - super(in); mode = in.readEnum(OperationMode.class); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/RemoveIndexLifecyclePolicyAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/RemoveIndexLifecyclePolicyAction.java index 21ce966d17828..d89c9d5d19be1 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/RemoveIndexLifecyclePolicyAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/action/RemoveIndexLifecyclePolicyAction.java @@ -51,7 +51,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final List failedIndexes; public Response(StreamInput in) throws IOException { - super(in); failedIndexes = in.readStringCollectionAsList(); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/GetInferenceModelAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/GetInferenceModelAction.java index ba3d417d02672..6de3b035276c6 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/GetInferenceModelAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/GetInferenceModelAction.java @@ -119,7 +119,6 @@ public Response(List endpoints) { } public Response(StreamInput in) throws IOException { - super(in); if (in.getTransportVersion().onOrAfter(TransportVersions.V_8_12_0)) { endpoints = in.readCollectionAsList(ModelConfigurations::new); } else { diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/InferenceAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/InferenceAction.java index f88909ba4208e..402c51024eb06 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/InferenceAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/InferenceAction.java @@ -357,7 +357,6 @@ public Response(InferenceServiceResults results, Flow.Publisher metrics; public Response(StreamInput in) throws IOException { - super(in); this.evaluationName = in.readString(); this.metrics = in.readNamedWriteableCollectionAsList(EvaluationMetricResult.class); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/ExplainDataFrameAnalyticsAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/ExplainDataFrameAnalyticsAction.java index 305ed8c4fc607..8a58c414bbe8b 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/ExplainDataFrameAnalyticsAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/ExplainDataFrameAnalyticsAction.java @@ -185,7 +185,6 @@ public Response(List fieldSelection, MemoryEstimation memoryEsti } public Response(StreamInput in) throws IOException { - super(in); this.fieldSelection = in.readCollectionAsList(FieldSelection::new); this.memoryEstimation = new MemoryEstimation(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/GetMlAutoscalingStats.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/GetMlAutoscalingStats.java index 95fa595411710..6402fe52f9878 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/GetMlAutoscalingStats.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/GetMlAutoscalingStats.java @@ -97,7 +97,6 @@ public Response(final MlAutoscalingStats autoscalingResources) { } public Response(final StreamInput in) throws IOException { - super(in); this.autoscalingResources = new MlAutoscalingStats(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/InferModelAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/InferModelAction.java index 05d9496e434c3..496b5d69772ba 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/InferModelAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/InferModelAction.java @@ -384,7 +384,6 @@ public Response(List inferenceResults, String id, boolean isLi } public Response(StreamInput in) throws IOException { - super(in); this.inferenceResults = Collections.unmodifiableList(in.readNamedWriteableCollectionAsList(InferenceResults.class)); this.isLicensed = in.readBoolean(); this.id = in.readOptionalString(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PreviewDataFrameAnalyticsAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PreviewDataFrameAnalyticsAction.java index 634487aa0d39f..59f38eee9a40f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PreviewDataFrameAnalyticsAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PreviewDataFrameAnalyticsAction.java @@ -142,7 +142,6 @@ public Response(List> featureValues) { } public Response(StreamInput in) throws IOException { - super(in); this.featureValues = in.readCollectionAsList(StreamInput::readGenericMap); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDataFrameAnalyticsAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDataFrameAnalyticsAction.java index 82db002e42043..6d99020031e11 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDataFrameAnalyticsAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDataFrameAnalyticsAction.java @@ -164,7 +164,6 @@ public Response(DataFrameAnalyticsConfig config) { } public Response(StreamInput in) throws IOException { - super(in); config = new DataFrameAnalyticsConfig(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDatafeedAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDatafeedAction.java index f79d2af49f536..33ed0a8ce451f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDatafeedAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutDatafeedAction.java @@ -91,7 +91,6 @@ public Response(DatafeedConfig datafeed) { } public Response(StreamInput in) throws IOException { - super(in); datafeed = new DatafeedConfig(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutFilterAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutFilterAction.java index 2105a6aeb6bb6..1e4c649cb9dcf 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutFilterAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutFilterAction.java @@ -102,7 +102,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final MlFilter filter; Response(StreamInput in) throws IOException { - super(in); filter = new MlFilter(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutJobAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutJobAction.java index 60d7f0008c0de..53e0ff6fa4560 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutJobAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutJobAction.java @@ -99,7 +99,6 @@ public Response(Job job) { } public Response(StreamInput in) throws IOException { - super(in); job = new Job(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutTrainedModelAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutTrainedModelAction.java index 25d32d19aef8d..0cfd763da3a36 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutTrainedModelAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/PutTrainedModelAction.java @@ -160,7 +160,6 @@ public Response(TrainedModelConfig trainedModelConfig) { } public Response(StreamInput in) throws IOException { - super(in); trainedModelConfig = new TrainedModelConfig(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/RevertModelSnapshotAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/RevertModelSnapshotAction.java index 0dd6fd8b59669..e70c25ac7ba4a 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/RevertModelSnapshotAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/RevertModelSnapshotAction.java @@ -152,7 +152,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final ModelSnapshot model; public Response(StreamInput in) throws IOException { - super(in); model = new ModelSnapshot(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpdateModelSnapshotAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpdateModelSnapshotAction.java index d80b055cc0fcc..a6a84a35980e5 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpdateModelSnapshotAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpdateModelSnapshotAction.java @@ -159,7 +159,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final ModelSnapshot model; public Response(StreamInput in) throws IOException { - super(in); model = new ModelSnapshot(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpgradeJobModelSnapshotAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpgradeJobModelSnapshotAction.java index abe481c926fdb..1ce884c50354d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpgradeJobModelSnapshotAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/UpgradeJobModelSnapshotAction.java @@ -171,7 +171,6 @@ public Response(boolean completed, String node) { } public Response(StreamInput in) throws IOException { - super(in); this.completed = in.readBoolean(); this.node = in.readOptionalString(); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringBulkResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringBulkResponse.java index aca46c3ab698a..72a6f645e0dd9 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringBulkResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringBulkResponse.java @@ -37,7 +37,6 @@ public MonitoringBulkResponse(final long tookInMillis, final Error error) { } public MonitoringBulkResponse(StreamInput in) throws IOException { - super(in); tookInMillis = in.readVLong(); error = in.readOptionalWriteable(Error::new); ignored = in.readBoolean(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringMigrateAlertsResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringMigrateAlertsResponse.java index 72b307dc6d782..340107f5c6ebc 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringMigrateAlertsResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/monitoring/action/MonitoringMigrateAlertsResponse.java @@ -30,7 +30,6 @@ public MonitoringMigrateAlertsResponse(List exporters) } public MonitoringMigrateAlertsResponse(StreamInput in) throws IOException { - super(in); this.exporters = in.readCollectionAsList(ExporterMigrationResult::new); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/DelegatePkiAuthenticationResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/DelegatePkiAuthenticationResponse.java index a5c8e10496b3b..59c583c63b9e8 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/DelegatePkiAuthenticationResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/DelegatePkiAuthenticationResponse.java @@ -42,7 +42,6 @@ public DelegatePkiAuthenticationResponse(String accessToken, TimeValue expiresIn } public DelegatePkiAuthenticationResponse(StreamInput input) throws IOException { - super(input); accessToken = input.readString(); expiresIn = input.readTimeValue(); if (input.getTransportVersion().onOrAfter(TransportVersions.V_7_11_0)) { diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/UpdateIndexMigrationVersionResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/UpdateIndexMigrationVersionResponse.java index e5377c3b2f4d1..2047df8883bc4 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/UpdateIndexMigrationVersionResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/UpdateIndexMigrationVersionResponse.java @@ -14,9 +14,7 @@ import java.io.IOException; public class UpdateIndexMigrationVersionResponse extends ActionResponse { - public UpdateIndexMigrationVersionResponse(StreamInput in) throws IOException { - super(in); - } + public UpdateIndexMigrationVersionResponse(StreamInput in) throws IOException {} public UpdateIndexMigrationVersionResponse() {} diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/BulkUpdateApiKeyResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/BulkUpdateApiKeyResponse.java index 6b1d79e9404a1..24fab42a2c709 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/BulkUpdateApiKeyResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/BulkUpdateApiKeyResponse.java @@ -34,7 +34,6 @@ public BulkUpdateApiKeyResponse(final List updated, final List n } public BulkUpdateApiKeyResponse(StreamInput in) throws IOException { - super(in); this.updated = in.readStringCollectionAsList(); this.noops = in.readStringCollectionAsList(); this.errorDetails = in.readMap(StreamInput::readException); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/CreateApiKeyResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/CreateApiKeyResponse.java index 938963d472866..d9917234fed69 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/CreateApiKeyResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/CreateApiKeyResponse.java @@ -67,7 +67,6 @@ public CreateApiKeyResponse(String name, String id, SecureString key, Instant ex } public CreateApiKeyResponse(StreamInput in) throws IOException { - super(in); this.name = in.readString(); this.id = in.readString(); this.key = in.readSecureString(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/InvalidateApiKeyResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/InvalidateApiKeyResponse.java index 7101d5803a105..3577103d8735d 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/InvalidateApiKeyResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/apikey/InvalidateApiKeyResponse.java @@ -44,7 +44,6 @@ public final class InvalidateApiKeyResponse extends ActionResponse implements To private final List errors; public InvalidateApiKeyResponse(StreamInput in) throws IOException { - super(in); this.invalidatedApiKeys = in.readCollectionAsList(StreamInput::readString); this.previouslyInvalidatedApiKeys = in.readCollectionAsList(StreamInput::readString); this.errors = in.readCollectionAsList(StreamInput::readException); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/KibanaEnrollmentResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/KibanaEnrollmentResponse.java index 58a17bdffcd34..33f9178ed5a69 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/KibanaEnrollmentResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/KibanaEnrollmentResponse.java @@ -24,7 +24,6 @@ public final class KibanaEnrollmentResponse extends ActionResponse implements To private final String httpCa; public KibanaEnrollmentResponse(StreamInput in) throws IOException { - super(in); tokenName = in.readString(); tokenValue = in.readSecureString(); httpCa = in.readString(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/NodeEnrollmentResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/NodeEnrollmentResponse.java index 07e1b11abd421..527ca2a8102a3 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/NodeEnrollmentResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/enrollment/NodeEnrollmentResponse.java @@ -36,7 +36,6 @@ public final class NodeEnrollmentResponse extends ActionResponse implements ToXC private final List nodesAddresses; public NodeEnrollmentResponse(StreamInput in) throws IOException { - super(in); httpCaKey = in.readString(); httpCaCert = in.readString(); transportCaCert = in.readString(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java index f424dd5f4ed39..73d4b90759b47 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/DeletePrivilegesResponse.java @@ -25,7 +25,6 @@ public final class DeletePrivilegesResponse extends ActionResponse implements To private final Set found; public DeletePrivilegesResponse(StreamInput in) throws IOException { - super(in); this.found = in.readCollectionAsImmutableSet(StreamInput::readString); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java index 7db9b26cfaa60..f29eeca5d8dcf 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/GetPrivilegesResponse.java @@ -31,7 +31,6 @@ public GetPrivilegesResponse(Collection privileg } public GetPrivilegesResponse(StreamInput in) throws IOException { - super(in); this.privileges = in.readArray(ApplicationPrivilegeDescriptor::new, ApplicationPrivilegeDescriptor[]::new); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java index 2a0120d2ca8fd..57718ae49fcc0 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/privilege/PutPrivilegesResponse.java @@ -26,7 +26,6 @@ public final class PutPrivilegesResponse extends ActionResponse implements ToXCo private final Map> created; public PutPrivilegesResponse(StreamInput in) throws IOException { - super(in); this.created = in.readImmutableMap(StreamInput::readStringCollectionAsList); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/CreateServiceAccountTokenResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/CreateServiceAccountTokenResponse.java index 897e2ba8aa2ec..528539c39753c 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/CreateServiceAccountTokenResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/CreateServiceAccountTokenResponse.java @@ -28,7 +28,6 @@ private CreateServiceAccountTokenResponse(String name, SecureString value) { } public CreateServiceAccountTokenResponse(StreamInput in) throws IOException { - super(in); this.name = in.readOptionalString(); this.value = in.readOptionalSecureString(); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/DeleteServiceAccountTokenResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/DeleteServiceAccountTokenResponse.java index c8b7a1ea04e36..96d648ad2fa8f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/DeleteServiceAccountTokenResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/DeleteServiceAccountTokenResponse.java @@ -25,7 +25,6 @@ public DeleteServiceAccountTokenResponse(boolean found) { } public DeleteServiceAccountTokenResponse(StreamInput in) throws IOException { - super(in); this.found = in.readBoolean(); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountCredentialsResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountCredentialsResponse.java index 017a74778ee3c..4c9924c7799dd 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountCredentialsResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountCredentialsResponse.java @@ -35,7 +35,6 @@ public GetServiceAccountCredentialsResponse( } public GetServiceAccountCredentialsResponse(StreamInput in) throws IOException { - super(in); this.principal = in.readString(); this.indexTokenInfos = in.readCollectionAsList(TokenInfo::new); this.nodesResponse = new GetServiceAccountCredentialsNodesResponse(in); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountResponse.java index 0711b631eca81..40b381fc85f43 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/service/GetServiceAccountResponse.java @@ -26,7 +26,6 @@ public GetServiceAccountResponse(ServiceAccountInfo[] serviceAccountInfos) { } public GetServiceAccountResponse(StreamInput in) throws IOException { - super(in); this.serviceAccountInfos = in.readArray(ServiceAccountInfo::new, ServiceAccountInfo[]::new); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java index 30522e3389a8a..90fa0dfbb700c 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/CreateTokenResponse.java @@ -33,7 +33,6 @@ public final class CreateTokenResponse extends ActionResponse implements ToXCont private Authentication authentication; public CreateTokenResponse(StreamInput in) throws IOException { - super(in); tokenString = in.readString(); expiresIn = in.readTimeValue(); scope = in.readOptionalString(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java index dda836e31b6a2..b33b6c3a2a5fb 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/token/InvalidateTokenResponse.java @@ -27,7 +27,6 @@ public final class InvalidateTokenResponse extends ActionResponse implements ToX public InvalidateTokenResponse() {} public InvalidateTokenResponse(StreamInput in) throws IOException { - super(in); result = new TokensInvalidationResult(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java index dfad1fe376706..820f8e13a0ba0 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java @@ -26,7 +26,6 @@ public class AuthenticateResponse extends ActionResponse implements ToXContent { private final boolean operator; public AuthenticateResponse(StreamInput in) throws IOException { - super(in); authentication = new Authentication(in); if (in.getTransportVersion().onOrAfter(VERSION_OPERATOR_FIELD)) { operator = in.readBoolean(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java index 763ab6ccb9886..59b8c21733b8c 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUserPrivilegesResponse.java @@ -46,7 +46,6 @@ public final class GetUserPrivilegesResponse extends ActionResponse { private final RemoteClusterPermissions remoteClusterPermissions; public GetUserPrivilegesResponse(StreamInput in) throws IOException { - super(in); cluster = in.readCollectionAsImmutableSet(StreamInput::readString); configurableClusterPrivileges = in.readCollectionAsImmutableSet(ConfigurableClusterPrivileges.READER); index = in.readCollectionAsImmutableSet(Indices::new); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java index 6c83d4b38ff89..3b55420cb84a6 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/HasPrivilegesResponse.java @@ -38,7 +38,6 @@ public HasPrivilegesResponse() { } public HasPrivilegesResponse(StreamInput in) throws IOException { - super(in); completeMatch = in.readBoolean(); cluster = in.readMap(StreamInput::readBoolean); index = readResourcePrivileges(in); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ProfileHasPrivilegesResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ProfileHasPrivilegesResponse.java index 9977ad459b8fd..132e392939b76 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ProfileHasPrivilegesResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ProfileHasPrivilegesResponse.java @@ -25,7 +25,6 @@ public class ProfileHasPrivilegesResponse extends ActionResponse implements ToXC private final Map errors; public ProfileHasPrivilegesResponse(StreamInput in) throws IOException { - super(in); this.hasPrivilegeUids = in.readCollectionAsSet(StreamInput::readString); this.errors = in.readMap(StreamInput::readException); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/action/GetSLMStatusAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/action/GetSLMStatusAction.java index c7e108b8fec3b..16f0a0bc9e116 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/action/GetSLMStatusAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/action/GetSLMStatusAction.java @@ -30,7 +30,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final OperationMode mode; public Response(StreamInput in) throws IOException { - super(in); this.mode = in.readEnum(OperationMode.class); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/NodeTermsEnumResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/NodeTermsEnumResponse.java index 51c183b8e49c3..ed27df9b61115 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/NodeTermsEnumResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/termsenum/action/NodeTermsEnumResponse.java @@ -30,7 +30,6 @@ class NodeTermsEnumResponse extends TransportResponse { private final String nodeId; NodeTermsEnumResponse(StreamInput in) throws IOException { - super(in); if (in.getTransportVersion().before(TransportVersions.V_8_2_0)) { terms = in.readCollectionAsList(r -> { String term = r.readString(); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/textstructure/action/FindStructureResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/textstructure/action/FindStructureResponse.java index 5848c2cbd0a1d..cf6973029d0bc 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/textstructure/action/FindStructureResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/textstructure/action/FindStructureResponse.java @@ -27,7 +27,6 @@ public FindStructureResponse(TextStructure textStructure) { } FindStructureResponse(StreamInput in) throws IOException { - super(in); textStructure = new TextStructure(in); } diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/watcher/transport/actions/QueryWatchesAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/watcher/transport/actions/QueryWatchesAction.java index 31c27cbe3d470..15e8369908e55 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/watcher/transport/actions/QueryWatchesAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/watcher/transport/actions/QueryWatchesAction.java @@ -215,7 +215,6 @@ public Response(long watchTotalCount, List watches) { } public Response(StreamInput in) throws IOException { - super(in); watches = in.readCollectionAsList(Item::new); watchTotalCount = in.readVLong(); } diff --git a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DeprecationInfoAction.java b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DeprecationInfoAction.java index 809870730292a..d765357d4f7bc 100644 --- a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DeprecationInfoAction.java +++ b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DeprecationInfoAction.java @@ -154,7 +154,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final Map> pluginSettingsIssues; public Response(StreamInput in) throws IOException { - super(in); clusterSettingsIssues = in.readCollectionAsList(DeprecationIssue::new); nodeSettingsIssues = in.readCollectionAsList(DeprecationIssue::new); indexSettingsIssues = in.readMapOfLists(DeprecationIssue::new); diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/action/GetAnalyticsCollectionAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/action/GetAnalyticsCollectionAction.java index 833fc64f03f85..09b5f1872d2b5 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/action/GetAnalyticsCollectionAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/action/GetAnalyticsCollectionAction.java @@ -91,7 +91,6 @@ public static class Response extends ActionResponse implements ToXContentObject public static final ParseField EVENT_DATA_STREAM_NAME_FIELD = new ParseField("name"); public Response(StreamInput in) throws IOException { - super(in); this.collections = in.readCollectionAsList(AnalyticsCollection::new); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorCreateActionResponse.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorCreateActionResponse.java index 2c585a842e12e..64ab077b70353 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorCreateActionResponse.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorCreateActionResponse.java @@ -24,7 +24,6 @@ public class ConnectorCreateActionResponse extends ActionResponse implements ToX private final DocWriteResponse.Result result; public ConnectorCreateActionResponse(StreamInput in) throws IOException { - super(in); this.id = in.readString(); this.result = DocWriteResponse.Result.readFrom(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorUpdateActionResponse.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorUpdateActionResponse.java index b77f04e7d9289..bc2db5a8a737a 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorUpdateActionResponse.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ConnectorUpdateActionResponse.java @@ -28,7 +28,6 @@ public class ConnectorUpdateActionResponse extends ActionResponse implements ToX final DocWriteResponse.Result result; public ConnectorUpdateActionResponse(StreamInput in) throws IOException { - super(in); result = DocWriteResponse.Result.readFrom(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/GetConnectorAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/GetConnectorAction.java index 6f3401e6d85b9..fcf7d1f06afc6 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/GetConnectorAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/GetConnectorAction.java @@ -122,7 +122,6 @@ public Response(ConnectorSearchResult connector) { } public Response(StreamInput in) throws IOException { - super(in); this.connector = new ConnectorSearchResult(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ListConnectorAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ListConnectorAction.java index 048f651ab2a1c..0172487dbb5b9 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ListConnectorAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/action/ListConnectorAction.java @@ -184,7 +184,6 @@ public static class Response extends ActionResponse implements ToXContentObject final QueryPage queryPage; public Response(StreamInput in) throws IOException { - super(in); this.queryPage = new QueryPage<>(in, ConnectorSearchResult::new); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/DeleteConnectorSecretResponse.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/DeleteConnectorSecretResponse.java index 7568d3f193779..42a24ab0064b5 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/DeleteConnectorSecretResponse.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/DeleteConnectorSecretResponse.java @@ -25,7 +25,6 @@ public DeleteConnectorSecretResponse(boolean deleted) { } public DeleteConnectorSecretResponse(StreamInput in) throws IOException { - super(in); this.deleted = in.readBoolean(); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/GetConnectorSecretResponse.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/GetConnectorSecretResponse.java index 3bbcb8212d51c..6051a4160abd5 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/GetConnectorSecretResponse.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/GetConnectorSecretResponse.java @@ -23,7 +23,6 @@ public class GetConnectorSecretResponse extends ActionResponse implements ToXCon private final String value; public GetConnectorSecretResponse(StreamInput in) throws IOException { - super(in); id = in.readString(); value = in.readString(); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PostConnectorSecretResponse.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PostConnectorSecretResponse.java index 068b510c5fad5..7567dde27be7e 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PostConnectorSecretResponse.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PostConnectorSecretResponse.java @@ -26,7 +26,6 @@ public PostConnectorSecretResponse(String id) { } public PostConnectorSecretResponse(StreamInput in) throws IOException { - super(in); this.id = in.readString(); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PutConnectorSecretResponse.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PutConnectorSecretResponse.java index db4db6d3939bd..6c22c91547eb4 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PutConnectorSecretResponse.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/secrets/action/PutConnectorSecretResponse.java @@ -27,7 +27,6 @@ public PutConnectorSecretResponse(DocWriteResponse.Result result) { } public PutConnectorSecretResponse(StreamInput in) throws IOException { - super(in); result = DocWriteResponse.Result.readFrom(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/GetConnectorSyncJobAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/GetConnectorSyncJobAction.java index 485e516c80c39..bb3ad55fdc441 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/GetConnectorSyncJobAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/GetConnectorSyncJobAction.java @@ -116,7 +116,6 @@ public Response(ConnectorSyncJobSearchResult connectorSyncJob) { } public Response(StreamInput in) throws IOException { - super(in); this.connectorSyncJob = new ConnectorSyncJobSearchResult(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/ListConnectorSyncJobsAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/ListConnectorSyncJobsAction.java index 04b765f3b5687..7618a06bbb785 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/ListConnectorSyncJobsAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/ListConnectorSyncJobsAction.java @@ -171,7 +171,6 @@ public static class Response extends ActionResponse implements ToXContentObject final QueryPage queryPage; public Response(StreamInput in) throws IOException { - super(in); this.queryPage = new QueryPage<>(in, ConnectorSyncJobSearchResult::new); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/PostConnectorSyncJobAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/PostConnectorSyncJobAction.java index 0d17a6dba6c35..a46c13846fe62 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/PostConnectorSyncJobAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/syncjob/action/PostConnectorSyncJobAction.java @@ -146,7 +146,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final String id; public Response(StreamInput in) throws IOException { - super(in); this.id = in.readString(); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRuleAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRuleAction.java index 7e24a374a6daf..0e7b244e579c5 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRuleAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRuleAction.java @@ -126,7 +126,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final QueryRule queryRule; public Response(StreamInput in) throws IOException { - super(in); this.queryRule = new QueryRule(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRulesetAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRulesetAction.java index 1d5ba878264f7..025bb8fab6065 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRulesetAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/GetQueryRulesetAction.java @@ -115,7 +115,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final QueryRuleset queryRuleset; public Response(StreamInput in) throws IOException { - super(in); this.queryRuleset = new QueryRuleset(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/ListQueryRulesetsAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/ListQueryRulesetsAction.java index c85416c5f08c5..8f910f7dd14fa 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/ListQueryRulesetsAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/ListQueryRulesetsAction.java @@ -110,7 +110,6 @@ public static class Response extends ActionResponse implements ToXContentObject final QueryPage queryPage; public Response(StreamInput in) throws IOException { - super(in); this.queryPage = new QueryPage<>(in, QueryRulesetListItem::new); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRuleAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRuleAction.java index 5f6d12ca719a0..7cf8289a4934b 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRuleAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRuleAction.java @@ -151,7 +151,6 @@ public static class Response extends ActionResponse implements ToXContentObject final DocWriteResponse.Result result; public Response(StreamInput in) throws IOException { - super(in); result = DocWriteResponse.Result.readFrom(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRulesetAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRulesetAction.java index 842d5d5e0cee4..ccd1e68833f3c 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRulesetAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/PutQueryRulesetAction.java @@ -136,7 +136,6 @@ public static class Response extends ActionResponse implements ToXContentObject final DocWriteResponse.Result result; public Response(StreamInput in) throws IOException { - super(in); result = DocWriteResponse.Result.readFrom(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/TestQueryRulesetAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/TestQueryRulesetAction.java index b8293ca64cf05..e8a8f83f62331 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/TestQueryRulesetAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/rules/action/TestQueryRulesetAction.java @@ -153,7 +153,6 @@ public static class Response extends ActionResponse implements ToXContentObject private static final ParseField MATCHED_RULES_FIELD = new ParseField("matched_rules"); public Response(StreamInput in) throws IOException { - super(in); this.totalMatchedRules = in.readVInt(); this.matchedRules = in.readCollectionAsList(MatchedRule::new); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/GetSearchApplicationAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/GetSearchApplicationAction.java index aa4a7f4375ed5..ca9026c4b67ff 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/GetSearchApplicationAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/GetSearchApplicationAction.java @@ -109,7 +109,6 @@ public static class Response extends ActionResponse implements ToXContentObject private final SearchApplication searchApp; public Response(StreamInput in) throws IOException { - super(in); this.searchApp = new SearchApplication(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/ListSearchApplicationAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/ListSearchApplicationAction.java index 5f82f628814cf..d2c24cf3c6d56 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/ListSearchApplicationAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/ListSearchApplicationAction.java @@ -127,7 +127,6 @@ public static class Response extends ActionResponse implements ToXContentObject final QueryPage queryPage; public Response(StreamInput in) throws IOException { - super(in); this.queryPage = new QueryPage<>(in, SearchApplicationListItem::new); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/PutSearchApplicationAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/PutSearchApplicationAction.java index ff829b6f53016..798a8fa2327a0 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/PutSearchApplicationAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/PutSearchApplicationAction.java @@ -135,7 +135,6 @@ public static class Response extends ActionResponse implements ToXContentObject final DocWriteResponse.Result result; public Response(StreamInput in) throws IOException { - super(in); result = DocWriteResponse.Result.readFrom(in); } diff --git a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/RenderSearchApplicationQueryAction.java b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/RenderSearchApplicationQueryAction.java index dd8984b7df11a..d123c75c0a857 100644 --- a/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/RenderSearchApplicationQueryAction.java +++ b/x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/search/action/RenderSearchApplicationQueryAction.java @@ -31,7 +31,6 @@ public static class Response extends ActionResponse implements ToXContentObject, private final SearchSourceBuilder searchSourceBuilder; public Response(StreamInput in) throws IOException { - super(in); this.searchSourceBuilder = new SearchSourceBuilder(in); } diff --git a/x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/action/EqlSearchResponse.java b/x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/action/EqlSearchResponse.java index e068f652cd289..dbd9f48bee25d 100644 --- a/x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/action/EqlSearchResponse.java +++ b/x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/action/EqlSearchResponse.java @@ -121,7 +121,6 @@ public EqlSearchResponse( } public EqlSearchResponse(StreamInput in) throws IOException { - super(in); tookInMillis = in.readVLong(); isTimeout = in.readBoolean(); hits = new Hits(in); diff --git a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/exchange/ExchangeResponse.java b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/exchange/ExchangeResponse.java index 02ba21b7a7d3d..5a60539728e3c 100644 --- a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/exchange/ExchangeResponse.java +++ b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/exchange/ExchangeResponse.java @@ -35,7 +35,6 @@ public ExchangeResponse(BlockFactory blockFactory, Page page, boolean finished) } public ExchangeResponse(BlockStreamInput in) throws IOException { - super(in); this.blockFactory = in.blockFactory(); this.page = in.readOptionalWriteable(Page::new); this.finished = in.readBoolean(); diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/ComputeResponse.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/ComputeResponse.java index 8d2e092cd4149..47f1d33274ac9 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/ComputeResponse.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/ComputeResponse.java @@ -51,7 +51,6 @@ final class ComputeResponse extends TransportResponse { } ComputeResponse(StreamInput in) throws IOException { - super(in); if (in.getTransportVersion().onOrAfter(TransportVersions.V_8_12_0)) { if (in.readBoolean()) { profiles = in.readCollectionAsImmutableList(DriverProfile::new); diff --git a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/DeleteSecretResponse.java b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/DeleteSecretResponse.java index 5082495833949..6903ab591d88b 100644 --- a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/DeleteSecretResponse.java +++ b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/DeleteSecretResponse.java @@ -25,7 +25,6 @@ public DeleteSecretResponse(boolean deleted) { } public DeleteSecretResponse(StreamInput in) throws IOException { - super(in); this.deleted = in.readBoolean(); } diff --git a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetGlobalCheckpointsShardAction.java b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetGlobalCheckpointsShardAction.java index ef05cd7fe8db2..bb5d8553b39ee 100644 --- a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetGlobalCheckpointsShardAction.java +++ b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetGlobalCheckpointsShardAction.java @@ -58,7 +58,6 @@ public Response(long globalCheckpoint, boolean timedOut) { } public Response(StreamInput in) throws IOException { - super(in); globalCheckpoint = in.readLong(); timedOut = in.readBoolean(); } diff --git a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetSecretResponse.java b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetSecretResponse.java index f4c26f5bcd094..08f0e8ffbc3dc 100644 --- a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetSecretResponse.java +++ b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/GetSecretResponse.java @@ -23,7 +23,6 @@ public class GetSecretResponse extends ActionResponse implements ToXContentObjec private final String value; public GetSecretResponse(StreamInput in) throws IOException { - super(in); id = in.readString(); value = in.readString(); } diff --git a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/PostSecretResponse.java b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/PostSecretResponse.java index 1aa8884d6b014..f9ed67d226662 100644 --- a/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/PostSecretResponse.java +++ b/x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet/action/PostSecretResponse.java @@ -26,7 +26,6 @@ public PostSecretResponse(String id) { } public PostSecretResponse(StreamInput in) throws IOException { - super(in); this.id = in.readString(); } diff --git a/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/DeletePipelineResponse.java b/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/DeletePipelineResponse.java index 911413fe1d2f8..28cfa3ea2b94c 100644 --- a/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/DeletePipelineResponse.java +++ b/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/DeletePipelineResponse.java @@ -23,7 +23,6 @@ public DeletePipelineResponse(boolean deleted) { } public DeletePipelineResponse(StreamInput in) throws IOException { - super(in); this.deleted = in.readBoolean(); } diff --git a/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/GetPipelineResponse.java b/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/GetPipelineResponse.java index 7713b3d05a541..83381796427f6 100644 --- a/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/GetPipelineResponse.java +++ b/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/GetPipelineResponse.java @@ -28,7 +28,6 @@ public GetPipelineResponse(Map pipelines) { } public GetPipelineResponse(StreamInput in) throws IOException { - super(in); this.pipelines = in.readMap(StreamInput::readBytesReference); } diff --git a/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/PutPipelineResponse.java b/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/PutPipelineResponse.java index 4f39c11f8e76e..bd66265d8a105 100644 --- a/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/PutPipelineResponse.java +++ b/x-pack/plugin/logstash/src/main/java/org/elasticsearch/xpack/logstash/action/PutPipelineResponse.java @@ -24,7 +24,6 @@ public PutPipelineResponse(RestStatus status) { } public PutPipelineResponse(StreamInput in) throws IOException { - super(in); this.status = in.readEnum(RestStatus.class); } diff --git a/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/GetMigrationReindexStatusAction.java b/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/GetMigrationReindexStatusAction.java index bc084f3e0b5d6..e4d0a379322a6 100644 --- a/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/GetMigrationReindexStatusAction.java +++ b/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/GetMigrationReindexStatusAction.java @@ -42,7 +42,6 @@ public Response(ReindexDataStreamEnrichedStatus enrichedStatus) { } public Response(StreamInput in) throws IOException { - super(in); enrichedStatus = in.readOptionalWriteable(ReindexDataStreamEnrichedStatus::new); } diff --git a/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamAction.java b/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamAction.java index 9e4cbb1082215..c16aee331c4e5 100644 --- a/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamAction.java +++ b/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamAction.java @@ -56,7 +56,6 @@ public ReindexDataStreamResponse(String taskId) { } public ReindexDataStreamResponse(StreamInput in) throws IOException { - super(in); this.taskId = in.readString(); } diff --git a/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamIndexAction.java b/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamIndexAction.java index 2e3fd1b76ed32..627349b88e927 100644 --- a/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamIndexAction.java +++ b/x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamIndexAction.java @@ -88,7 +88,6 @@ public Response(String destIndex) { } public Response(StreamInput in) throws IOException { - super(in); this.destIndex = in.readString(); } diff --git a/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/GetStatusAction.java b/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/GetStatusAction.java index 6302498047fd3..cd10c4f908118 100644 --- a/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/GetStatusAction.java +++ b/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/GetStatusAction.java @@ -40,7 +40,6 @@ public static class Response extends ActionResponse implements ToXContentObject private boolean timedOut; public Response(StreamInput in) throws IOException { - super(in); profilingEnabled = in.readBoolean(); resourceManagementEnabled = in.readBoolean(); resourcesCreated = in.readBoolean(); diff --git a/x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/cache/FrozenCacheInfoResponse.java b/x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/cache/FrozenCacheInfoResponse.java index b3766a0d0fd19..e2875494d2ddc 100644 --- a/x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/cache/FrozenCacheInfoResponse.java +++ b/x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/cache/FrozenCacheInfoResponse.java @@ -22,7 +22,6 @@ public class FrozenCacheInfoResponse extends ActionResponse { } FrozenCacheInfoResponse(StreamInput in) throws IOException { - super(in); hasFrozenCache = in.readBoolean(); } diff --git a/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/BlobAnalyzeAction.java b/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/BlobAnalyzeAction.java index 6007968d7cb4d..c5e3ec28a70de 100644 --- a/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/BlobAnalyzeAction.java +++ b/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/BlobAnalyzeAction.java @@ -825,7 +825,6 @@ static class Response extends ActionResponse implements ToXContentObject { } Response(StreamInput in) throws IOException { - super(in); nodeId = in.readString(); nodeName = in.readString(); blobName = in.readString(); diff --git a/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/GetBlobChecksumAction.java b/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/GetBlobChecksumAction.java index 816f9e860a33a..f7179e042afac 100644 --- a/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/GetBlobChecksumAction.java +++ b/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/GetBlobChecksumAction.java @@ -301,7 +301,6 @@ static class Response extends ActionResponse { } Response(StreamInput in) throws IOException { - super(in); this.bytesRead = in.readVLong(); this.checksum = in.readLong(); this.firstByteNanos = in.readVLong(); diff --git a/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalyzeAction.java b/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalyzeAction.java index ce729694d347c..776d370629b0a 100644 --- a/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalyzeAction.java +++ b/x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/analyze/RepositoryAnalyzeAction.java @@ -1217,7 +1217,6 @@ public Response( } public Response(StreamInput in) throws IOException { - super(in); coordinatingNodeId = in.readString(); coordinatingNodeName = in.readString(); repositoryName = in.readString(); diff --git a/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlClearCursorResponse.java b/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlClearCursorResponse.java index 10db7228807d4..a32dfc035f874 100644 --- a/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlClearCursorResponse.java +++ b/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlClearCursorResponse.java @@ -31,7 +31,6 @@ public SqlClearCursorResponse(boolean succeeded) { } SqlClearCursorResponse(StreamInput in) throws IOException { - super(in); succeeded = in.readBoolean(); } diff --git a/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlQueryResponse.java b/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlQueryResponse.java index 978f42f7f50dc..77d7913b67304 100644 --- a/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlQueryResponse.java +++ b/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlQueryResponse.java @@ -55,7 +55,6 @@ public class SqlQueryResponse extends ActionResponse implements ToXContentObject private final boolean isRunning; public SqlQueryResponse(StreamInput in) throws IOException { - super(in); cursor = in.readString(); if (in.readBoolean()) { // We might have rows without columns and we might have columns without rows diff --git a/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlTranslateResponse.java b/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlTranslateResponse.java index b215a724c06f3..3a3324c9dbd02 100644 --- a/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlTranslateResponse.java +++ b/x-pack/plugin/sql/sql-action/src/main/java/org/elasticsearch/xpack/sql/action/SqlTranslateResponse.java @@ -23,7 +23,6 @@ public class SqlTranslateResponse extends ActionResponse implements ToXContentOb private final SearchSourceBuilder source; public SqlTranslateResponse(StreamInput in) throws IOException { - super(in); source = new SearchSourceBuilder(in); }