Skip to content

Do not deserialize back BytesTransportRequest to clone a request in MockTransportService#89926

Merged
fcofdez merged 3 commits intoelastic:mainfrom
fcofdez:fix-concurrent-seq-no
Sep 8, 2022
Merged

Do not deserialize back BytesTransportRequest to clone a request in MockTransportService#89926
fcofdez merged 3 commits intoelastic:mainfrom
fcofdez:fix-concurrent-seq-no

Conversation

@fcofdez
Copy link
Copy Markdown
Contributor

@fcofdez fcofdez commented Sep 8, 2022

Some handlers, such as JOIN_VALIDATE_ACTION_NAME, deserialize a BytesTransportRequest into a different class that cannot be serialized. This commit changes that behaviour and directly clones the BytesTransportRequest instead of relying on the transport handler.

Closes #88120

…ockTransportService

Some handlers, such as JOIN_VALIDATE_ACTION_NAME, deserialize a
BytesTransportRequest into a different class that cannot be serialized.
This commit changes that behaviour and directly clones the BytesTransportRequest
instead of relying on the transport handler.

Closes elastic#88120
@fcofdez fcofdez added >test Issues or PRs that are addressing/adding tests :Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. labels Sep 8, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, a couple of nits. Also should we backport this to 8.4?

fcofdez and others added 2 commits September 8, 2022 16:43
…MockTransportService.java

Co-authored-by: David Turner <david.turner@elastic.co>
…MockTransportService.java

Co-authored-by: David Turner <david.turner@elastic.co>
@fcofdez fcofdez added v8.4.2 auto-backport Automatically create backport pull requests when merged labels Sep 8, 2022
@fcofdez fcofdez merged commit 14d93e0 into elastic:main Sep 8, 2022
@fcofdez
Copy link
Copy Markdown
Contributor Author

fcofdez commented Sep 8, 2022

Thanks David!

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

Status Branch Result
8.4

fcofdez added a commit to fcofdez/elasticsearch that referenced this pull request Sep 8, 2022
…ockTransportService (elastic#89926)

Some handlers, such as JOIN_VALIDATE_ACTION_NAME, deserialize a
BytesTransportRequest into a different class that cannot be serialized.
This commit changes that behaviour and directly clones the BytesTransportRequest
instead of relying on the transport handler.

Closes elastic#88120
fcofdez added a commit that referenced this pull request Sep 8, 2022
…ockTransportService (#89926) (#89936)

Some handlers, such as JOIN_VALIDATE_ACTION_NAME, deserialize a
BytesTransportRequest into a different class that cannot be serialized.
This commit changes that behaviour and directly clones the BytesTransportRequest
instead of relying on the transport handler.

Closes #88120
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Sep 9, 2022
* main: (34 commits)
  Make sure ivy repo directory exists before downloading artifacts
  Use 'file://' scheme for local repository URL
  Use DRA artifacts for release build CI jobs
  Log unsuccessful attempts to get credentials from web identity tokens (elastic#88241)
  Script: Write Field API path manipulation (elastic#89889)
  Fetch health info action (elastic#89820)
  Fix memory leak in TransportDeleteExpiredDataAction (elastic#89935)
  [ML] Performance improvements for categorization jobs (elastic#89824)
  [DOCS] Revert changes for ES_JAVA_OPTS (elastic#89931)
  Fix deadlock bug exposed by a test (elastic#89934)
  [Downsampling] Remove `FieldValueFetcher` validator (elastic#89497)
  Fix segment stats in tsdb (elastic#89754)
  Synthetic _source: support dense_vector (elastic#89840)
  REST tests fetching fields with synthetic _source (elastic#89888)
  Do not deserialize back BytesTransportRequest to clone a request in MockTransportService (elastic#89926)
  Add SDK request logging to debug failures of S3BlobStoreRepositoryTests#testRequestStats (elastic#89912)
  Fix SnapshotStatusApisIT.testGetSnapshotsWithSnapshotInProgress (elastic#89925)
  Document synthetic source for text and keyword (elastic#89893)
  Fix CloneSnapshotIT.testRemoveFailedCloneFromCSWithQueuedSnapshotInProgress (elastic#89914)
  Add missing index.mapping.total_fields.limit setting to the target index (elastic#89875)
  ...
arteam added a commit to arteam/elasticsearch that referenced this pull request Oct 15, 2024
All request handlers should be able to read `BytesTransportRequest` to
a class than can copied by re-serializing. Direct copying was only
necessary by the legacy `JOIN_VALIDATE_ACTION_NAME` request handler.

See elastic#89926
arteam added a commit to arteam/elasticsearch that referenced this pull request Oct 15, 2024
All request handlers should be able to read `BytesTransportRequest` to
a class than can copied by re-serializing. Direct copying was only
necessary by the legacy `JOIN_VALIDATE_ACTION_NAME` request handler.

See elastic#89926
arteam added a commit that referenced this pull request Oct 23, 2024
All request handlers should be able to read `BytesTransportRequest` to
a class than can copied by re-serializing. Direct copying was only
necessary by the legacy `JOIN_VALIDATE_ACTION_NAME` request handler.

See #89926
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Oct 23, 2024
All request handlers should be able to read `BytesTransportRequest` to
a class than can copied by re-serializing. Direct copying was only
necessary by the legacy `JOIN_VALIDATE_ACTION_NAME` request handler.

See elastic#89926
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
All request handlers should be able to read `BytesTransportRequest` to
a class than can copied by re-serializing. Direct copying was only
necessary by the legacy `JOIN_VALIDATE_ACTION_NAME` request handler.

See elastic#89926
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
All request handlers should be able to read `BytesTransportRequest` to
a class than can copied by re-serializing. Direct copying was only
necessary by the legacy `JOIN_VALIDATE_ACTION_NAME` request handler.

See elastic#89926
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v8.4.2 v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] ConcurrentSeqNoVersioningIT testSeqNoCASLinearizability failing

3 participants