Skip to content

Remove ValidateJoinRequest#117225

Merged
elasticsearchmachine merged 2 commits intoelastic:mainfrom
DaveCTurner:2024/11/20/remove-ValidateJoinRequest
Nov 21, 2024
Merged

Remove ValidateJoinRequest#117225
elasticsearchmachine merged 2 commits intoelastic:mainfrom
DaveCTurner:2024/11/20/remove-ValidateJoinRequest

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Since 8.3.0 (#85380) we have sent join-validation requests as a
BytesTransportRequest to facilitate sharing these large messages (and
the work needed to create them) amongst all nodes that join the cluster
at around the same time. For BwC with versions earlier than 8.3.0 we use
a ValidateJoinRequest class to represent the received data, whichever
scheme it uses. We no longer need to maintain this compatibility, so we
can use a bare BytesTransportRequest on both sender and receiver, and
therefore drop the ValidateJoinRequest adapter and the special-cased
assertion in MockTransportService.

Relates #114808 which was reverted in #117200.

Since 8.3.0 (elastic#85380) we have sent join-validation requests as a
`BytesTransportRequest` to facilitate sharing these large messages (and
the work needed to create them) amongst all nodes that join the cluster
at around the same time. For BwC with versions earlier than 8.3.0 we use
a `ValidateJoinRequest` class to represent the received data, whichever
scheme it uses. We no longer need to maintain this compatibility, so we
can use a bare `BytesTransportRequest` on both sender and receiver, and
therefore drop the `ValidateJoinRequest` adapter and the special-cased
assertion in `MockTransportService`.

Relates elastic#114808 which was reverted in elastic#117200.
@DaveCTurner DaveCTurner added >non-issue :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v9.0.0 labels Nov 21, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. label Nov 21, 2024
@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Nov 21, 2024
@elasticsearchmachine elasticsearchmachine merged commit 2b91e7a into elastic:main Nov 21, 2024
@DaveCTurner DaveCTurner deleted the 2024/11/20/remove-ValidateJoinRequest branch November 21, 2024 10:27
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
Since 8.3.0 (elastic#85380) we have sent join-validation requests as a
`BytesTransportRequest` to facilitate sharing these large messages (and
the work needed to create them) amongst all nodes that join the cluster
at around the same time. For BwC with versions earlier than 8.3.0 we use
a `ValidateJoinRequest` class to represent the received data, whichever
scheme it uses. We no longer need to maintain this compatibility, so we
can use a bare `BytesTransportRequest` on both sender and receiver, and
therefore drop the `ValidateJoinRequest` adapter and the special-cased
assertion in `MockTransportService`.

Relates elastic#114808 which was reverted in elastic#117200.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >non-issue Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants