[ 
https://issues.apache.org/jira/browse/DERBY-4968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980320#action_12980320
 ] 

Dag H. Wanvik edited comment on DERBY-4968 at 1/12/11 12:41 PM:
----------------------------------------------------------------

Attaching a patch which lets checkCancellationFlag throw 
SQLState.CONN_INTERRUPT (the thread's interrupt flag is also set).

The exception was generated at the time the interrupt was seen so the stack 
trace would show exactly when this was picked up. Possibly we should wrap it in 
another to show that we are throwing in checkCancellationFlag.


      was (Author: dagw):
    Attaching a patch which lets checkCancellationFlag throw 
SQLState.CONN_INTERRUPT
(generated at the time the interrupt was seen so the stack trace would show 
exactly when this was picked up). Possibly we should wrap it in another to show 
that we are throwing in checkCancellationFlag.

  
> Let query stop execution if an interrupt is seen, at same time as we check 
> the query timeout
> --------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4968
>                 URL: https://issues.apache.org/jira/browse/DERBY-4968
>             Project: Derby
>          Issue Type: Improvement
>          Components: Store
>            Reporter: Dag H. Wanvik
>            Assignee: Dag H. Wanvik
>             Fix For: 10.8.0.0
>
>         Attachments: derby-4968-1.diff, derby-4968-1.stat
>
>
> Subtask of DERBY-4741. 
> In BasicNoPutResultSetImpl#checkCancellationFlag we currently check whether a 
> statement has been canceled or it timed out at certain times during query 
> execution. We would like an interrupt seen during execution hitherto to also 
> throw at this point. Cf the way we also stop execution of batches if a batch 
> element sees an interrupt.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to