You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Chris Westin (JIRA)" <ji...@apache.org> on 2015/04/06 20:57:12 UTC

[jira] [Commented] (DRILL-2697) Pause injections should pause indefinitely until signalled

    [ https://issues.apache.org/jira/browse/DRILL-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14481630#comment-14481630 ] 

Chris Westin commented on DRILL-2697:
-------------------------------------

Note this should speed up any tests that require pauses for synchronizing execution lifecycle with test steps, because they wouldn't have to wait for an arbitrary period of time, but can instead progress when ready. If we find such tests are common, and are starting to take a lot of time, we may want to prioritize this.

> Pause injections should pause indefinitely until signalled
> ----------------------------------------------------------
>
>                 Key: DRILL-2697
>                 URL: https://issues.apache.org/jira/browse/DRILL-2697
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Execution - Flow
>    Affects Versions: 0.9.0
>            Reporter: Sudheesh Katkam
>             Fix For: 1.1.0
>
>
> Currently injected pauses make threads sleep for a specified time. This can  be an enhanced to stop the thread indefinitely using a CountDownLatch. It is quite similar to how cancellation works. 
> Tasks: 
> (a) Add another message to RPC layer to signal paused remote threads to resume (through ControlHandler) by counting down. Complications if the thread has not reached the pause site yet.
> (b) Add resume signal (like ctrl-c) to sqlline 
>     (further enhancement: another signal to trigger pause from sqlline)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)