Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 67387 invoked from network); 18 May 2005 04:45:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2005 04:45:02 -0000 Received: (qmail 11948 invoked by uid 500); 18 May 2005 01:14:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 11931 invoked by uid 500); 18 May 2005 01:14:21 -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 Delivered-To: moderator for derby-dev@db.apache.org Received: (qmail 7890 invoked by uid 99); 17 May 2005 19:05:00 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Date: Tue, 17 May 2005 12:05:37 -0700 From: David Van Couvering Subject: Re: [PATCH] change to derbynet/testSecMec.java test to fix failure on 131 vms. In-reply-to: <42893279.6050708@gmail.com> To: Derby Development Message-id: <428A4081.6070508@vancouvering.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 References: <42893279.6050708@gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Sunitha This patch looks good, I successfully built and ran derbynetmats in my environment with JDK14 and JDK13. I agree we definitely need to log a bug that the system hangs if you accidentally use "create=true" when the DB is already created -- this seems like a very possible thing to happen and I suspect many folks are still on JDK13. David Sunitha Kambhampati wrote: > This patch fixes derbynet/testSecMec.java test failure on 131 vms. > > Problem - with 131 vms, if server and client are in the same jvm, on a > second get connection with create=true attribute in the url, there is a > hang. > > Basically, > -- the first getConnection works ok > -- but on the second getConnection, a SQLWarning needs to be generated > to say that the database already exists and in this scenario, it seems > like at the point where it is creating a SQLWarning , there is a > deadlock. The call to SQLWarning constructor does not return. On doing a > java core dump , the thread in question seems to be in a wait state > (conditional wait). Guess is it has to do with the driver manager lock > > I will file a jira entry to track this issue but for the test in > question, changes were made to not use create=true except for the first > connection. > -- ran this test for both DerbyClient and JCC driver on both > corresponding versions 131,141 ,142 on both IBM and Sun jdks. Also > tested it on sun jdk 1.5.0. > -- ran derbynetmats on jdk142 ok. > -- ran derbynetclientmats on ibm131 ok. >