Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 95485 invoked from network); 2 Jun 2006 00:17:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 00:17:26 -0000 Received: (qmail 76403 invoked by uid 500); 2 Jun 2006 00:17:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 76184 invoked by uid 500); 2 Jun 2006 00:17:25 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 76171 invoked by uid 99); 2 Jun 2006 00:17:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 17:17:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 17:17:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3F13F7141E1 for ; Fri, 2 Jun 2006 00:16:31 +0000 (GMT) Message-ID: <1484186.1149207391255.JavaMail.jira@brutus> Date: Fri, 2 Jun 2006 00:16:31 +0000 (GMT+00:00) From: "Deepa Remesh (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-803) derbynet/DerbyNetAutoStart.java test fails intermittently with org.apache.derby.iapi.services.context.ShutdownException In-Reply-To: <413179828.1136834607586.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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: http://www.nabble.com/-jira--Commented%3A-%28DERBY-273%29-The-derbynet-dataSourcePermissions_net.java-test-fails-intermittently-p190292.html 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 && ((DRDAProtocolException)e).isDisconnectException()) { // client went away - this is O.K. here closeSession(); } else { handleException(e); } } 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: 10.2.0.0 > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira