mirror of
https://github.com/apache/impala.git
synced 2025-12-30 03:01:44 -05:00
Partitioned Hash Join with a limit could hang when using mt_dop>0, due to the cyclic barrier in PHJBuilder is not cancelled properly. Added possibility to unregister threads from the synchronization and a call to it to PHJNode::Close(), so closing threads won't block still processing ones. Testing: - Added new unit tests covering new feature - Added e2e test to make sure the join does not hang Change-Id: I8be75c7ce99c015964c8bbb547539e6619ba4f9b Reviewed-on: http://gerrit.cloudera.org:8080/20179 Reviewed-by: Michael Smith <michael.smith@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>