db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepa Remesh (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-803) derbynet/DerbyNetAutoStart.java test fails intermittently with org.apache.derby.iapi.services.context.ShutdownException
Date Fri, 02 Jun 2006 00:16:31 GMT
    [ http://issues.apache.org/jira/browse/DERBY-803?page=comments#action_12414324 ] 

Deepa Remesh commented on DERBY-803:

I have not been able to repro this intermittent failure on my machine. I was using the stack
traces attached to DERBY-273 to try to understand the scenario. I am thinking of following
options to solve this problem:

1. Solve the intermittent test failure by using the same solution as in DERBY-273. This will
solve the test issue.
2. Try to see if we can distinguish "expected" exceptions during shutdown and ignore them.
However, I don't see a clear way of distinguishing this.
3. I think the following thread explains the scenario:

Scenario is: Server is shutdown. One of the threads finds that the client has disconnected.
It tries to close the session but gets an exception during rollback because the shutdown has
already taken place.

The code where closeSession gets called is in DRDAConnThread.run method:

} catch (Exception e) {
				if (e instanceof DRDAProtocolException && 
				 	// client went away - this is O.K. here

In this scenario, since the client has already disconnected, can we ignore the exceptions
when closing the session? Then, we can pass a flag to closeSession method asking to ignore
exceptions if we are calling it when we receive a DisconnectException in the server. Any comments/suggestions

> derbynet/DerbyNetAutoStart.java test fails intermittently with org.apache.derby.iapi.services.context.ShutdownException
> -----------------------------------------------------------------------------------------------------------------------
>          Key: DERBY-803
>          URL: http://issues.apache.org/jira/browse/DERBY-803
>      Project: Derby
>         Type: Test

>   Components: Network Server, Regression Test Failure
>     Versions:
>     Reporter: Kathey Marsden
>     Assignee: Deepa Remesh

> DerbyNetAutoStart fails intermittently with the following diff:
> This issue is likely related to DERBY-1020
> ********* Diff file derbyall/derbynetmats/DerbyNet/derbynetmats/DerbyNetAutoStart.diff
> *** Start: DerbyNetAutoStart jdk1.4.2 DerbyNet derbynetmats:derbynetmats 2006-01-05 23:39:40
> 1a2,3
> > org.apache.derby.iapi.services.context.ShutdownException: 
> > 	at org.apache.derby.impl.drda.Session.close(Unknown Source)agentThread[DRDAConnThread_3,5,derby.daemons]
> Test Failed.
> *** End:   DerbyNetAutoStart jdk1.4.2 DerbyNet derbynetmats:derbynetmats 2006-01-05 23:41:10

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message