File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
ydb/core/tx/columnshard/engines/reader/actor Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ void TColumnShardScan::Bootstrap(const TActorContext& ctx) {
75
75
}
76
76
77
77
void TColumnShardScan::HandleScan (NColumnShard::TEvPrivate::TEvTaskProcessedResult::TPtr& ev) {
78
+ if (ChunksLimiter.HasMore ()) {
79
+ WaitTime = TInstant::Now () - StartWaitTime;
80
+ }
78
81
auto g = Stats->MakeGuard (" task_result" );
79
82
auto result = ev->Get ()->ExtractResult ();
80
83
if (result.IsFail ()) {
@@ -91,6 +94,7 @@ void TColumnShardScan::HandleScan(NColumnShard::TEvPrivate::TEvTaskProcessedResu
91
94
}
92
95
93
96
void TColumnShardScan::HandleScan (NKqp::TEvKqpCompute::TEvScanDataAck::TPtr& ev) {
97
+ StartWaitTime = TInstant::Now ();
94
98
auto g = Stats->MakeGuard (" ack" );
95
99
96
100
AFL_VERIFY (!AckReceivedInstant);
@@ -388,6 +392,7 @@ bool TColumnShardScan::SendResult(bool pageFault, bool lastBatch) {
388
392
LastResultInstant = TMonotonic::Now ();
389
393
390
394
Result->CpuTime = ScanCountersPool.GetExecutionDuration ();
395
+ Result->WaitTime = WaitTime;
391
396
392
397
Send (ScanComputeActorId, Result.Release (), IEventHandle::FlagTrackDelivery); // TODO: FlagSubscribeOnSession ?
393
398
Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ class TColumnShardScan: public TActorBootstrapped<TColumnShardScan>,
193
193
ui64 PacksSum = 0 ;
194
194
ui64 Bytes = 0 ;
195
195
ui32 PageFaults = 0 ;
196
+ TInstant StartWaitTime;
197
+ TDuration WaitTime;
196
198
};
197
199
198
200
} // namespace NKikimr::NOlap::NReader
You can’t perform that action at this time.
0 commit comments