diff --git a/ydb/core/driver_lib/version/version.cpp b/ydb/core/driver_lib/version/version.cpp index 4781640d0339..6716d7ef35fc 100644 --- a/ydb/core/driver_lib/version/version.cpp +++ b/ydb/core/driver_lib/version/version.cpp @@ -19,7 +19,7 @@ using TComponentId = NKikimrConfig::TCompatibilityRule::EComponentId; TCompatibilityInfo::TCompatibilityInfo() { using TCurrentConstructor = TCompatibilityInfo::TProtoConstructor::TCurrentCompatibilityInfo; using TStoredConstructor = TCompatibilityInfo::TProtoConstructor::TStoredCompatibilityInfo; - // using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule; + using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule; using TVersionConstructor = TCompatibilityInfo::TProtoConstructor::TVersion; ///////////////////////////////////////////////////////// @@ -27,10 +27,36 @@ TCompatibilityInfo::TCompatibilityInfo() { ///////////////////////////////////////////////////////// auto current = TCurrentConstructor{ - .Application = "ydb" + .Application = "ydb", + .Version = TVersionConstructor{ + .Year = 24, + .Major = 1, + }, + .CanConnectTo = { + TCompatibilityRuleConstructor{ + .Application = "ydb", + .LowerLimit = TVersionConstructor{ .Year = 23, .Major = 3 }, + .UpperLimit = TVersionConstructor{ .Year = 24, .Major = 1 }, + }, + }, + .CanLoadFrom = { + TCompatibilityRuleConstructor{ + .Application = "ydb", + .LowerLimit = TVersionConstructor{ .Year = 23, .Major = 3 }, + .UpperLimit = TVersionConstructor{ .Year = 24, .Major = 1 }, + }, + }, + .StoresReadableBy = { + TCompatibilityRuleConstructor{ + .Application = "ydb", + .LowerLimit = TVersionConstructor{ .Year = 23, .Major = 3 }, + .UpperLimit = TVersionConstructor{ .Year = 24, .Major = 1 }, + }, + } }.ToPB(); - // bool success = CompleteFromTag(current); + bool success = CompleteFromTag(current); + Y_UNUSED(success); // Y_ABORT_UNLESS(success); CurrentCompatibilityInfo.CopyFrom(current); @@ -76,12 +102,14 @@ const TStored* TCompatibilityInfo::GetDefault(TComponentId componentId) const { // obsolete version control TMaybe VERSION = NActors::TInterconnectProxyCommon::TVersionInfo{ // version of this binary - "trunk", + "stable-24-1", // compatible versions; must include all compatible old ones, including this one; version verification occurs on both // peers and connection is accepted if at least one of peers accepts the version of the other peer { - "trunk" + "stable-23-3", + "stable-23-4", + "stable-24-1" } };