mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Reverse disordered-version warning message (#129904)
The comment in `TransportHandshaker` indicates (correctly) that we emit a warning when talking to a chronologically-newer-yet-numerically-older version, but the wording of the warning message is inverted and says that the remote is chronologically-older-yet-numerically-newer. This commit straightens out the message to match the situation it is describing. Relates #123397
This commit is contained in:
parent
876c456ac1
commit
ba103f1c24
3 changed files with 13 additions and 8 deletions
5
docs/changelog/129904.yaml
Normal file
5
docs/changelog/129904.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
pr: 129904
|
||||||
|
summary: Reverse disordered-version warning message
|
||||||
|
area: Infra/Core
|
||||||
|
type: bug
|
||||||
|
issues: []
|
|
@ -241,8 +241,8 @@ final class TransportHandshaker {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"""
|
"""
|
||||||
Negotiating transport handshake with remote node with version [{}/{}] received on [{}] which appears to be \
|
Negotiating transport handshake with remote node with version [{}/{}] received on [{}] which appears to be \
|
||||||
from a chronologically-older release with a numerically-newer version compared to this node's version [{}/{}]. \
|
from a chronologically-newer release with a numerically-older version compared to this node's version [{}/{}]. \
|
||||||
Upgrading to a chronologically-older release may not work reliably and is not recommended. \
|
Upgrading to this version from a chronologically-newer release may not work reliably and is not recommended. \
|
||||||
Falling back to transport protocol version [{}].""",
|
Falling back to transport protocol version [{}].""",
|
||||||
releaseVersion,
|
releaseVersion,
|
||||||
remoteTransportVersion,
|
remoteTransportVersion,
|
||||||
|
|
|
@ -134,9 +134,9 @@ public class TransportHandshakerTests extends ESTestCase {
|
||||||
Strings.format(
|
Strings.format(
|
||||||
"""
|
"""
|
||||||
Negotiating transport handshake with remote node with version [%s/%s] received on [*] which appears to be from \
|
Negotiating transport handshake with remote node with version [%s/%s] received on [*] which appears to be from \
|
||||||
a chronologically-older release with a numerically-newer version compared to this node's version [%s/%s]. \
|
a chronologically-newer release with a numerically-older version compared to this node's version [%s/%s]. \
|
||||||
Upgrading to a chronologically-older release may not work reliably and is not recommended. Falling back to \
|
Upgrading to this version from a chronologically-newer release may not work reliably and is not recommended. \
|
||||||
transport protocol version [%s].""",
|
Falling back to transport protocol version [%s].""",
|
||||||
handshakeRequest.releaseVersion,
|
handshakeRequest.releaseVersion,
|
||||||
handshakeRequest.transportVersion,
|
handshakeRequest.transportVersion,
|
||||||
Build.current().version(),
|
Build.current().version(),
|
||||||
|
@ -216,9 +216,9 @@ public class TransportHandshakerTests extends ESTestCase {
|
||||||
Strings.format(
|
Strings.format(
|
||||||
"""
|
"""
|
||||||
Negotiating transport handshake with remote node with version [%s/%s] received on [*] which appears to be from \
|
Negotiating transport handshake with remote node with version [%s/%s] received on [*] which appears to be from \
|
||||||
a chronologically-older release with a numerically-newer version compared to this node's version [%s/%s]. \
|
a chronologically-newer release with a numerically-older version compared to this node's version [%s/%s]. \
|
||||||
Upgrading to a chronologically-older release may not work reliably and is not recommended. Falling back to \
|
Upgrading to this version from a chronologically-newer release may not work reliably and is not recommended. \
|
||||||
transport protocol version [%s].""",
|
Falling back to transport protocol version [%s].""",
|
||||||
handshakeResponse.getReleaseVersion(),
|
handshakeResponse.getReleaseVersion(),
|
||||||
handshakeResponse.getTransportVersion(),
|
handshakeResponse.getTransportVersion(),
|
||||||
Build.current().version(),
|
Build.current().version(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue