Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 67390 invoked from network); 25 Sep 2006 16:36:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 16:36:19 -0000 Received: (qmail 84707 invoked by uid 500); 25 Sep 2006 16:36:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 84675 invoked by uid 500); 25 Sep 2006 16:36:18 -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 84658 invoked by uid 99); 25 Sep 2006 16:36:18 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 09:36:18 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=m.v.lunteren@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=m.v.lunteren@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 64.233.184.227 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [64.233.184.227] ([64.233.184.227:9227] helo=wr-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id EB/0C-13750-E5508154 for ; Mon, 25 Sep 2006 09:35:44 -0700 Received: by wr-out-0506.google.com with SMTP id i23so674341wra for ; Mon, 25 Sep 2006 09:35:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eV4rp9zwZNbI9RhAWDhPW/GdwW+a9/JttF/txGLe9J5uyh/qYO1tWJOD+W1Li8zPqRcT+Max4aYCdLHXerLS+bG5LM4fZtatkrdwVuz4oXjbH0dRdOHZ/WDxg7OxxTA4T6O5GrDkv2XK2hGXbT8gm6wmMqUkrR3vG1dHwDoYXDE= Received: by 10.90.116.6 with SMTP id o6mr316317agc; Mon, 25 Sep 2006 09:35:25 -0700 (PDT) Received: by 10.90.93.11 with HTTP; Mon, 25 Sep 2006 09:35:24 -0700 (PDT) Message-ID: Date: Mon, 25 Sep 2006 09:35:24 -0700 From: "Myrna van Lunteren" To: derbydev Subject: Re: q re XA transactions and test checkDataSource In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Just to be clear, my previous message wasn't accurate. The lock is set when selects are done from the table ru. However, once the xar.end() has been issued, with subsequent commit on cs1, I can't find a way to release those locks so I can drop the table. Myrna On 9/25/06, Myrna van Lunteren wrote: > Hi, > > In connection to trying to do remote server / IPV6 testing for the > release candidate, I ran into some behavior in the test > checkDataSource that I'm trying to understand. > I don't think there's a bug, but I do need some help. > > The problem is that the test doesn't clean up after itself. Thus, > subsequent tests - e.g. checkDataSource30 - (which run on the same > database with remote server testing) fail. > > This test used to pass because of a subtest that used to get skipped > for DerbyNetClient. > > The problem I'm having is trying to drop the table ru at the end of > the test. There's a lock on it. > The lock gets set after this line in the test: > ------------------------------- > showStatementState("CS GLOBAL ", csruState); > resultSetQuery("Params-global-1", psParams.executeQuery()); > --> xar.end(xid, XAResource.TMSUCCESS); > > My question is: how can I release the locks? > I've tried closing all statements and committing/rolling back all > connections I can see, but still the lock remains, or whatever I'm > attempting gives an error. I probably need to reattach a resource to a > connection? > Something like: > xar.start(xid, XAResource.TMNOFLAGS); > ? > But what I tried so far didn't work (I've tried so many probably > non-sensible things at this point to even mention them). > How do I do this? > > Thx, > Myrna >