forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix empty sources case in Merge operator in case of task termination … (
facebookincubator#5004) Summary: There is a race condition can trigger Merge operator SEGV in Meta internal Prestissimo shadowing test: 1. Presto coordinator sends all the splits to a worker (with no more split) 2. Presto coordinator (or some other worker side failure) triggers early task termination which cleanup the pending splits to process 3. A running merge operator from the failed task calls isBlocked() call for the first time and get empty sources and non-blocked reason to continue Note: there is no source merge tree created 4. The merge operator getOutput call run into segment fault as no source merge tree is created. Add a unit test to create this race condition and verified the fix which mark the operator finishes when sources are empty. Pull Request resolved: facebookincubator#5004 Reviewed By: Yuhta, amitkdutta, tanjialiang Differential Revision: D46130001 Pulled By: xiaoxmeng fbshipit-source-id: b0f372639a54bbf7fbd17ad6f09faa6020f2ac0e
- Loading branch information
1 parent
7f972cc
commit b05cd61
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters