aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorserg-belyakov <serg-belyakov@yandex-team.com>2023-07-18 16:13:37 +0300
committerserg-belyakov <serg-belyakov@yandex-team.com>2023-07-18 16:13:37 +0300
commitc4d2c324ecc523e2ee7e32af6384a32532c0cc28 (patch)
treec0941b6ab0a347ac50418ff6d2bf3bec279390ef
parenta21a3016bdd3bf7eee496e357554d11e4c121cdf (diff)
downloadydb-c4d2c324ecc523e2ee7e32af6384a32532c0cc28.tar.gz
Don't validate version tag, if it is absent in peer, KIKIMR-18776
Don't validate version tag, if it is absent in peer
-rw-r--r--library/cpp/actors/interconnect/interconnect_handshake.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/cpp/actors/interconnect/interconnect_handshake.cpp b/library/cpp/actors/interconnect/interconnect_handshake.cpp
index 00ebaa5217..3e3e57948c 100644
--- a/library/cpp/actors/interconnect/interconnect_handshake.cpp
+++ b/library/cpp/actors/interconnect/interconnect_handshake.cpp
@@ -491,8 +491,11 @@ namespace NActors {
s << ", errorReason# " << errorReason;
errorCallback(s.Str());
}
- } else {
+ } else if (proto.HasVersionTag()) {
ValidateVersionTag(proto, std::forward<TCallback>(errorCallback));
+ } else {
+ LOG_LOG_IC_X(NActorsServices::INTERCONNECT, "ICH09", NLog::PRI_WARN,
+ "Neither CompatibilityInfo nor VersionTag of the peer can be validated, accepting by default");
}
}