aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivanmorozov <ivanmorozov@yandex-team.com>2023-04-12 13:10:03 +0300
committerivanmorozov <ivanmorozov@yandex-team.com>2023-04-12 13:10:03 +0300
commitf1b6eba3f83c0420a89287815f93d86d294b82a3 (patch)
tree7a6a76eb15e43f07f421553af85bdbaf9a2b26cd
parenta19d3fb8952bd93624ebea58ac0df578e638853b (diff)
downloadydb-f1b6eba3f83c0420a89287815f93d86d294b82a3.tar.gz
fix useless message send
-rw-r--r--ydb/core/tx/columnshard/columnshard__scan.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/ydb/core/tx/columnshard/columnshard__scan.cpp b/ydb/core/tx/columnshard/columnshard__scan.cpp
index 506f5b4d760..dffbb8e8d7a 100644
--- a/ydb/core/tx/columnshard/columnshard__scan.cpp
+++ b/ydb/core/tx/columnshard/columnshard__scan.cpp
@@ -247,6 +247,13 @@ private:
Y_VERIFY(!Finished);
Y_VERIFY(ScanIterator);
+ if (!PeerFreeSpace) {
+ LOG_DEBUG_S(*TlsActivationContext, NKikimrServices::TX_COLUMNSHARD_SCAN,
+ "Scan " << ScanActorId << " producing result: bytes limit exhausted"
+ << " txId: " << TxId << " scanId: " << ScanId << " gen: " << ScanGen << " tablet: " << TabletId);
+ return false;
+ }
+
if (ScanIterator->Finished()) {
LOG_DEBUG_S(*TlsActivationContext, NKikimrServices::TX_COLUMNSHARD_SCAN,
"Scan " << ScanActorId << " producing result: scan iterator is finished"
@@ -330,15 +337,6 @@ private:
return;
}
- if (PeerFreeSpace == 0) {
- // Throttle down until the compute actor is ready to receive more rows
-
- LOG_DEBUG_S(*TlsActivationContext, NKikimrServices::TX_COLUMNSHARD_SCAN,
- "Scan " << ScanActorId << " waiting for peer free space"
- << " txId: " << TxId << " scanId: " << ScanId << " gen: " << ScanGen << " tablet: " << TabletId);
- return;
- }
-
// Send new results if there is available capacity
while (ScanIterator && ProduceResults()) {
}