forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Move
TransportVersion
negotiation to handshake (elastic#120261)…
… (elastic#120510) * Move `TransportVersion` negotiation to handshake (elastic#120261) Today the `TransportHandshaker` returns the remote node's actual `TransportVersion`, even if this is an unknown version from some future release. This is exposed by `Transport.Connection#getTransportVersion` despite that method's docs saying that the return value is the `TransportVersion` in use for the connection. The actual version negotiation doesn't happen until we get around to sending an outbound message in `OutboundHandler`. This doesn't matter much today since we only compare versions against known constants, ordering by ID, so all unknown future versions are treated equivalently to the current version. But still it's not correct, and we may need to make this more refined in future. * Fix
- Loading branch information
1 parent
2e12bbb
commit ba57820
Showing
3 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters