[ 
https://issues.apache.org/jira/browse/DERBY-5233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dag H. Wanvik updated DERBY-5233:
---------------------------------

    Attachment: DERBY-5233-1.stat
                DERBY-5233-1.diff

Uploading a patch for this problem. I also adds a new test case to 
InterruptResilienceTest: testCreateDropInterrupted.

The patch makes RAFContainer, when seeing an interrupt exception during 
container creation, close it down and try again, up to MAX_INTERRUPT_RETRIES 
times. Since RAFContainer should work also under CDC/Foundation 1.1, the 
exceptions are checked using reflection (NIO classes are excluded there).

Running regressions.

> Interrupt of create table or index (i.e. a container) will throw XSDF1 under 
> NIO - connection survives
> ------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5233
>                 URL: https://issues.apache.org/jira/browse/DERBY-5233
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 
> 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1, 
> 10.7.1.1, 10.8.1.2
>            Reporter: Dag H. Wanvik
>         Attachments: DERBY-5233-1.diff, DERBY-5233-1.stat, Repro5233.java
>
>
> Cf the enclosed repro. It would be good to make Derby ignore the interrupt 
> here. Cf DERBY-4741. Note that this is less serious than in the cases 
> referred to in DERBY-4741: here the database does not get shut down, even the 
> connection survives, cf the repro. So, this can be considered a follow-up to 
> DERBY-4741 to further improve Derby's robustness under interrupts.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to