diff options
| author | ivanmorozov333 <[email protected]> | 2025-03-28 10:54:17 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-03-28 10:54:17 +0300 |
| commit | 33bdc1a8d0e3f0d03f3c4f2e4eebcd0fc0cbb032 (patch) | |
| tree | 9da873cef1723521018dc29185a9d73da0c5fdcc | |
| parent | af288e5996729f6bf3c280aa44f8953b6b475af2 (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.cpp | 2 |
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()); |
