@@ -19,18 +19,44 @@ using TComponentId = NKikimrConfig::TCompatibilityRule::EComponentId;
1919TCompatibilityInfo::TCompatibilityInfo () {
2020 using TCurrentConstructor = TCompatibilityInfo::TProtoConstructor::TCurrentCompatibilityInfo;
2121 using TStoredConstructor = TCompatibilityInfo::TProtoConstructor::TStoredCompatibilityInfo;
22- // using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;
22+ using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;
2323 using TVersionConstructor = TCompatibilityInfo::TProtoConstructor::TVersion;
2424
2525 // ///////////////////////////////////////////////////////
2626 // Current CompatibilityInfo
2727 // ///////////////////////////////////////////////////////
2828
2929 auto current = TCurrentConstructor{
30- .Application = " ydb"
30+ .Application = " ydb" ,
31+ .Version = TVersionConstructor{
32+ .Year = 24 ,
33+ .Major = 1 ,
34+ },
35+ .CanLoadFrom = {
36+ TCompatibilityRuleConstructor{
37+ .Application = " ydb" ,
38+ .LowerLimit = TVersionConstructor{ .Year = 23 , .Major = 3 },
39+ .UpperLimit = TVersionConstructor{ .Year = 24 , .Major = 1 },
40+ },
41+ },
42+ .StoresReadableBy = {
43+ TCompatibilityRuleConstructor{
44+ .Application = " ydb" ,
45+ .LowerLimit = TVersionConstructor{ .Year = 23 , .Major = 3 },
46+ .UpperLimit = TVersionConstructor{ .Year = 24 , .Major = 1 },
47+ },
48+ },
49+ .CanConnectTo = {
50+ TCompatibilityRuleConstructor{
51+ .Application = " ydb" ,
52+ .LowerLimit = TVersionConstructor{ .Year = 23 , .Major = 3 },
53+ .UpperLimit = TVersionConstructor{ .Year = 24 , .Major = 1 },
54+ },
55+ }
3156 }.ToPB ();
3257
33- // bool success = CompleteFromTag(current);
58+ bool success = CompleteFromTag (current);
59+ Y_UNUSED (success);
3460 // Y_ABORT_UNLESS(success);
3561
3662 CurrentCompatibilityInfo.CopyFrom (current);
@@ -76,12 +102,14 @@ const TStored* TCompatibilityInfo::GetDefault(TComponentId componentId) const {
76102// obsolete version control
77103TMaybe<NActors::TInterconnectProxyCommon::TVersionInfo> VERSION = NActors::TInterconnectProxyCommon::TVersionInfo{
78104 // version of this binary
79- " trunk " ,
105+ " stable-24-1 " ,
80106
81107 // compatible versions; must include all compatible old ones, including this one; version verification occurs on both
82108 // peers and connection is accepted if at least one of peers accepts the version of the other peer
83109 {
84- " trunk"
110+ " stable-23-3" ,
111+ " stable-23-4" ,
112+ " stable-24-1"
85113 }
86114};
87115
0 commit comments