Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRILL-2755: Use and handle InterruptedException during query processing.
- Interrupt FragmentExecutor thread as part of FragmentExecutor.cancel() - Handle InterruptedException in ExternalSortBatch.newSV2(). If the fragment status says should not continue, then throw the InterruptedException to caller which returns IterOutcome.STOP - Add comments reg not handling of InterruptedException in SendingAccountor.waitForSendComplete() - Handle InterruptedException in OrderedPartitionRecordBatch.getPartitionVectors() If interrupted in Thread.sleep calls and fragment status says should not run, then return IterOutcome.STOP downstream. - Interrupt partitioner threads if PartitionerRecordBatch is interrupted while waiting for partitioner threads to complete. - Preserve interrupt status if not handled - Handle null RecordBatches returned by RawBatchBuffer.getNext() in MergingRecordBatch.buildSchema() - Change timeout in Foreman to be proportional to the number of intermediate fragments sent instead of hard coded limit of 90s. - Change TimedRunnable to enforce a timeout of 15s per runnable. Total timeout is (5s * numOfRunnableTasks) / parallelism. - Add unit tests * Testing cancelling a query interrupts the query fragments which are currently blocked * Testing interrupting the partitioner sender which in turn interrupts its helper threads * Testing TimedRunanble enforeces timeout for the whole task list.
- Loading branch information
1 parent
f8e5e61
commit 3a294ab
Showing
29 changed files
with
546 additions
and
98 deletions.
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
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
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
Oops, something went wrong.