summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivanmorozov333 <[email protected]>2025-03-28 10:54:17 +0300
committerGitHub <[email protected]>2025-03-28 10:54:17 +0300
commit33bdc1a8d0e3f0d03f3c4f2e4eebcd0fc0cbb032 (patch)
tree9da873cef1723521018dc29185a9d73da0c5fdcc
parentaf288e5996729f6bf3c280aa44f8953b6b475af2 (diff)
in case request limit we have to limit simultaneous tasks by sources (#16363)
-rw-r--r--ydb/core/tx/columnshard/engines/reader/simple_reader/iterator/scanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/tx/columnshard/engines/reader/simple_reader/iterator/scanner.cpp b/ydb/core/tx/columnshard/engines/reader/simple_reader/iterator/scanner.cpp
index fd0bbde7b3e..b2613f97894 100644
--- a/ydb/core/tx/columnshard/engines/reader/simple_reader/iterator/scanner.cpp
+++ b/ydb/core/tx/columnshard/engines/reader/simple_reader/iterator/scanner.cpp
@@ -146,7 +146,7 @@ TConclusion<bool> TScanHead::BuildNextInterval() {
}
ui32 inFlightCountLocal = GetInFlightIntervalsCount();
AFL_VERIFY(IntervalsInFlightCount == inFlightCountLocal)("count_global", IntervalsInFlightCount)("count_local", inFlightCountLocal);
- while (SortedSources.size() && inFlightCountLocal < InFlightLimit && Context->IsActive()) {
+ while (SortedSources.size() && inFlightCountLocal < InFlightLimit && FetchingInFlightSources.size() < InFlightLimit && Context->IsActive()) {
FOR_DEBUG_LOG(NKikimrServices::COLUMNSHARD_SCAN_EVLOG, SortedSources.front()->AddEvent("f"));
SortedSources.front()->StartProcessing(SortedSources.front());
FetchingSources.emplace_back(SortedSources.front());