Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 97871 invoked from network); 13 Jun 2005 13:22:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2005 13:22:13 -0000 Received: (qmail 72423 invoked by uid 500); 13 Jun 2005 13:22:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 72385 invoked by uid 500); 13 Jun 2005 13:22:11 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 72342 invoked by uid 99); 13 Jun 2005 13:22:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 13 Jun 2005 06:22:08 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 6B9F2104 for ; Mon, 13 Jun 2005 15:21:51 +0200 (CEST) Message-ID: <1333081042.1118668911439.JavaMail.jira@ajax.apache.org> Date: Mon, 13 Jun 2005 15:21:51 +0200 (CEST) From: "Tomohito Nakayama (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-273) The derbynet/dataSourcePermissions_net.java test fails intermittently In-Reply-To: <521007388.1115848512208.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-273?page=comments#action_12313462 ] Tomohito Nakayama commented on DERBY-273: ----------------------------------------- Regarding modify-1, there was a wrong guess in my previous thought. I thought database was shutdown before closing connection , then connection remains in the dataSourcePermissions test. However, I found connection was closed before shutting down database in the test. To know why connection remains, I read the code around DRDAConnThread. http://svn.apache.org/repos/asf/incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java In last part of DRDAConnThread#run() , I found closing connection at server was caused by DRDAProtocolException that stands for disconnection. This exeption was caused in DDMReader and DDMWriter , calling DRDAConnThread#markCommunicationsFailure when catching IOException. http://svn.apache.org/repos/asf/incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMReader.java http://svn.apache.org/repos/asf/incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMWriter.java I guess client close the connection one-sidely and DRDAProtocolException representing disconnection happens in server , and rollback and close connection at server follows . Because client is one-side player , client doesn't know wheter server finished work of closing connection . Then ... how to ensure finishing closing connection before shutting down database ...? > The derbynet/dataSourcePermissions_net.java test fails intermittently > --------------------------------------------------------------------- > > Key: DERBY-273 > URL: http://issues.apache.org/jira/browse/DERBY-273 > Project: Derby > Type: Bug > Environment: 1.4.2 JVM (both Sun and IBM) > Reporter: Jack Klebanoff > Assignee: Tomohito Nakayama > > The test fails in the derbyall/derbynetclientmats/derbynetmats suite stack with the following diff: > *** Start: dataSourcePermissions_net jdk1.4.2 DerbyNetClient derbynetmats:derbynetmats 2005-05-11 04:24:11 *** > 17a18,19 > > org.apache.derby.iapi.services.context.ShutdownException: > > agentThread[DRDAConnThread_2,5,derby.daemons] > Test Failed. -- 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