Xianqing He has uploaded a new patch set (#3). ( http://gerrit.cloudera.org:8080/25103 )
Change subject: IMPALA-15541: Fix HDFS scan hang when a UNION child is never opened ...................................................................... IMPALA-15541: Fix HDFS scan hang when a UNION child is never opened UNION nodes open their children lazily, so with mt_dop > 1 on a single backend one fragment instance may never open a union child scan node if a LIMIT stops the pipeline above it. That instance never calls IssueInitialScanRanges() and never decrements the shared remaining_scan_range_submissions_ counter in ScanRangeSharedState. Other co-located instances that did open the child then block forever in ScanRangeSharedState::GetNextScanRange() waiting for the missing submission, hanging the query. Decrement the counter in HdfsScanNodeMt::Close() if initial_ranges_issued_ is false, mirroring the decrement done by IssueInitialScanRanges() for instances that do issue their ranges. Testing: - Added an end-to-end regression test in test_mt_dop.py that hangs without the fix and passes with it. Change-Id: Ia12030b0c0e12daa20e4ead03281862cc4254333 Assisted-by: deepseek-v4.1-flash (opencode) --- M be/src/exec/hdfs-scan-node-mt.cc M tests/custom_cluster/test_mt_dop.py 2 files changed, 54 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/03/25103/3 -- To view, visit http://gerrit.cloudera.org:8080/25103 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: Ia12030b0c0e12daa20e4ead03281862cc4254333 Gerrit-Change-Number: 25103 Gerrit-PatchSet: 3 Gerrit-Owner: Xianqing He <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Reviewer: Xianqing He <[email protected]>
