mirror of
https://github.com/apache/impala.git
synced 2026-02-02 15:00:38 -05:00
IMPALA-10973 has a bug where a union fragment without a scan node can be over-parallelized by the backend scheduler by 1. It is reproducible by running TPC-DS Q11 with MT_DOP=1. This patch additionally checks that such a fragment does not have an input fragment before randomizing the host assignment. Testing: Add TPC-DS Q11 to test_mt_dop.py::TestMtDopScheduling::test_scheduling and verify the number of fragment instances scheduled in the ExecSummary. Change-Id: Ic69e7c8c0cadb4b07ee398aff362fbc6513eb08d Reviewed-on: http://gerrit.cloudera.org:8080/19816 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>