@@ -102,6 +102,7 @@ class TDescribeReplicationRPC: public TRpcSchemeRequestActor<TDescribeReplicatio
102102
103103 auto ev = std::make_unique<NReplication::TEvController::TEvDescribeReplication>();
104104 PathIdFromPathId (pathId, ev->Record .MutablePathId ());
105+ ev->Record .SetIncludeStats (GetProtoRequest ()->include_stats ());
105106
106107 NTabletPipe::SendData (SelfId (), ControllerPipeClient, ev.release ());
107108 Become (&TDescribeReplicationRPC::StateDescribeReplication);
@@ -167,16 +168,26 @@ class TDescribeReplicationRPC: public TRpcSchemeRequestActor<TDescribeReplicatio
167168 if (from.HasSrcStreamName ()) {
168169 to.set_source_changefeed_name (from.GetSrcStreamName ());
169170 }
171+ if (from.HasLagMilliSeconds ()) {
172+ *to.mutable_stats ()->mutable_lag () = google::protobuf::util::TimeUtil::MillisecondsToDuration (
173+ from.GetLagMilliSeconds ());
174+ }
175+ if (from.HasInitialScanProgress ()) {
176+ to.mutable_stats ()->set_initial_scan_progress (from.GetInitialScanProgress ());
177+ }
170178 }
171179
172180 static void ConvertState (NKikimrReplication::TReplicationState& from, Ydb::Replication::DescribeReplicationResult& to) {
173181 switch (from.GetStateCase ()) {
174182 case NKikimrReplication::TReplicationState::kStandBy :
175183 to.mutable_running ();
176184 if (from.GetStandBy ().HasLagMilliSeconds ()) {
177- *to.mutable_running ()->mutable_lag () = google::protobuf::util::TimeUtil::MillisecondsToDuration (
185+ *to.mutable_running ()->mutable_stats ()-> mutable_lag () = google::protobuf::util::TimeUtil::MillisecondsToDuration (
178186 from.GetStandBy ().GetLagMilliSeconds ());
179187 }
188+ if (from.GetStandBy ().HasInitialScanProgress ()) {
189+ to.mutable_running ()->mutable_stats ()->set_initial_scan_progress (from.GetStandBy ().GetInitialScanProgress ());
190+ }
180191 break ;
181192 case NKikimrReplication::TReplicationState::kError :
182193 *to.mutable_error ()->mutable_issues () = std::move (*from.MutableError ()->MutableIssues ());
0 commit comments