diff options
author | Alexey Ozeritskiy <aozeritsky@gmail.com> | 2022-06-03 14:44:34 +0300 |
---|---|---|
committer | Alexey Ozeritskiy <aozeritsky@gmail.com> | 2022-06-03 14:44:34 +0300 |
commit | b2c13c5016730c435d1108087ee23caf5ae37024 (patch) | |
tree | 5e39affd182ec81c056e1a6d6b199a6eb23fe17a | |
parent | b6fab11208b8b9c79124432db157016b9ce8e956 (diff) | |
download | ydb-b2c13c5016730c435d1108087ee23caf5ae37024.tar.gz |
YQ-1095: Force cleanup data
ref:4d9f0447a6fd2aedfbc284356ff373e17e26ee8a
-rw-r--r-- | ydb/library/yql/dq/actors/compute/dq_async_compute_actor.cpp | 9 |
1 files changed, 7 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 9982e93ee3c..e72a299a054 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 @@ -493,8 +493,13 @@ private: ProcessOutputsState.Inflight --; ProcessOutputsState.HasDataToSend |= !sinkInfo.Finished; - auto guard = BindAllocator(); - sinkInfo.AsyncOutput->SendData(std::move(batch), size, std::move(checkpoint), finished); + { + auto guard = BindAllocator(); + NKikimr::NMiniKQL::TUnboxedValueVector data = std::move(batch); + sinkInfo.AsyncOutput->SendData(std::move(data), size, std::move(checkpoint), finished); + } + + Y_VERIFY(batch.empty()); CA_LOG_D("sink " << outputIndex << ": sent " << dataSize << " bytes of data and " << checkpointSize << " bytes of checkpoint barrier"); CA_LOG_D("Drain sink " << outputIndex |