diff options
| author | serg-belyakov <[email protected]> | 2023-07-18 16:13:37 +0300 | 
|---|---|---|
| committer | serg-belyakov <[email protected]> | 2023-07-18 16:13:37 +0300 | 
| commit | c4d2c324ecc523e2ee7e32af6384a32532c0cc28 (patch) | |
| tree | c0941b6ab0a347ac50418ff6d2bf3bec279390ef /library/cpp | |
| parent | a21a3016bdd3bf7eee496e357554d11e4c121cdf (diff) | |
Don't validate version tag, if it is absent in peer, KIKIMR-18776
Don't validate version tag, if it is absent in peer
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/actors/interconnect/interconnect_handshake.cpp | 5 | 
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 00ebaa5217f..3e3e57948c3 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");              }          } | 
