aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgalaxycrab <UgnineSirdis@ydb.tech>2022-08-31 12:11:14 +0300
committergalaxycrab <UgnineSirdis@ydb.tech>2022-08-31 12:11:14 +0300
commit230709925f39039fc3437757c416856e4b018ab1 (patch)
tree586b636dc5386a2d107bd74e31a44a6a90e66127
parentac2a56f11bb052d600a03ca0c28392cbce3aa60c (diff)
downloadydb-230709925f39039fc3437757c416856e4b018ab1.tar.gz
Fix potential seg fault when we have nullptr for debug counters for CA
-rw-r--r--ydb/library/yql/dq/actors/compute/dq_async_compute_actor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ydb/library/yql/dq/actors/compute/dq_async_compute_actor.cpp b/ydb/library/yql/dq/actors/compute/dq_async_compute_actor.cpp
index f406dd382a4..09256a129ee 100644
--- a/ydb/library/yql/dq/actors/compute/dq_async_compute_actor.cpp
+++ b/ydb/library/yql/dq/actors/compute/dq_async_compute_actor.cpp
@@ -720,8 +720,10 @@ private:
void ProcessContinueRun() {
if (!ContinueRunEvents.empty() && !CpuTimeQuotaAsked && !ContinueRunInflight) {
Send(TaskRunnerActorId, ContinueRunEvents.front().first.release());
- const TDuration quotaWaitDelay = TInstant::Now() - ContinueRunEvents.front().second;
- CpuTimeQuotaWaitDelay->Collect(quotaWaitDelay.MilliSeconds());
+ if (CpuTimeQuotaWaitDelay) {
+ const TDuration quotaWaitDelay = TInstant::Now() - ContinueRunEvents.front().second;
+ CpuTimeQuotaWaitDelay->Collect(quotaWaitDelay.MilliSeconds());
+ }
ContinueRunEvents.pop_front();
ContinueRunInflight = true;
}