Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 98333 invoked from network); 31 May 2006 12:34:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2006 12:34:16 -0000 Received: (qmail 96879 invoked by uid 500); 31 May 2006 12:34:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 96734 invoked by uid 500); 31 May 2006 12:34:15 -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 96725 invoked by uid 99); 31 May 2006 12:34:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 05:34:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.1.36] (HELO gmpea-pix-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 05:34:14 -0700 Received: from d1-emea-03.sun.com (d1-emea-03.sun.com [192.18.2.113] (may be forged)) by gmpea-pix-1.sun.com (8.12.9/8.12.9) with ESMTP id k4VCXog5022640 for ; Wed, 31 May 2006 13:33:50 +0100 (BST) Received: from conversion-daemon.d1-emea-03.sun.com by d1-emea-03.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J0400901QT20800@d1-emea-03.sun.com> (original mail from Olav.Sandstaa@Sun.COM) for derby-dev@db.apache.org; Wed, 31 May 2006 13:33:50 +0100 (BST) Received: from [129.159.112.196] by d1-emea-03.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J0400IYDQW33W10@d1-emea-03.sun.com> for derby-dev@db.apache.org; Wed, 31 May 2006 13:33:50 +0100 (BST) Date: Wed, 31 May 2006 14:33:39 +0200 From: Olav Sandstaa Subject: Re: jdk16 and suite derbyall - 128 failures In-reply-to: Sender: Olav.Sandstaa@Sun.COM To: derby-dev@db.apache.org Message-id: <447D8D23.7070904@sun.com> Organization: Sun Microsystems - Trondheim, Norway MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <836ae9af0605101709w12a02835n7aabf25b95e5c8bd@mail.gmail.com> <446C27DF.4030603@sun.com> <446C62DE.7020207@sun.com> <446C76EC.4060500@sun.com> <446E3D6F.5030605@sun.com> <446E5265.1020004@sun.com> <447313C2.80906@sun.com> <44743415.1060402@sun.com> <44746C4D.9090700@apache.org> <4477828B.1010302@sun.com> User-Agent: Thunderbird 1.5.0.2 (X11/20060427) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Myrna van Lunteren wrote: > On 5/26/06, Olav Sandstaa wrote: >> So how should we fix this? Any suggestions? Some ideas: >> >> * Remove the support for autoloading of the embedded driver (Yes, Rick >> and the JDBC4 expert group have already said no to this, but I still >> think there are situations where automagic loading of the drivers is a >> bad idea) >> >> * Change the test harness so that derby.system.home is set to a value >> that is OK for all tests suites (running with useprocess=false) early >> during initialization (before touching any JDBC driver code) >> >> * Change the RunSuite(?) code so that it unloads the embedded driver >> and the engine as part of the start up (to get rid of the autoloaded >> embedded driver) >> >> * Change the "security manager" properties for the Nist tests to avoid >> the security exception when the VM tries to get the canonical path for >> the working directory. >> >> Any preferences or suggestions for better ideas? >> >> Thanks, >> Olav >> > I think setting derby.system.home for useprocess=false runs may be > achievable...even if we decide to keep the autoloading. I agree that this is the easiest way to fix the problem. The "problem" with this solution is that we need to set it early during startup of derbyall (before any JDBC driver is attempted loaded) and that this derby.system.home location will be used by all suites running with useprocess=false. Another issue with this solution is to decide what directory we should set it to. Should we set derby.system.home to the current directory where derbyall is started? This would potentially leave files in the top directory that could influence on other test suites. Or should we make a sub directory that is common for all suites running with useprocess=false (and jdk16)? Any suggestion for what value we should assign to derby.system.home if we decide to do this? > Another option may be to add additional permissions to the > useprocessfalse.policy file in functionTests/util...would that be > acceptable (if it works)? I guess it would need user.dir read? for > derby.jar? (user.dir read appears to be in place - in > derby_tests.policy - currently for derbytools.jar, derbyTesting.jar > and classes). I think this would work, at least if I disable the security manger the Nist tests succeed. The drawback with this solutions is that it too will use the directory where derbyall was started for creating the database and storing files containing test results. Right now I am experimenting with a solution that attempts to unload the embedded driver each time a new suite with useprocess=false is started. If this works I think this will be the best solution since then each suite can set derby.system.home to the directory they want the test to run in and then load the driver and engine. Any objections to this approach? (I do not know yet if it will work) > While this gets hashed out further, maybe it's time to create a > separate bug for this, and document the investigative work there... I agree. I will file a JIRA for this and make a summary. > Then maybe we can stop jdk16 from running nist (runwithjdk16=false in > nist.properties) for the time being, so we don't lose the signal value > of the automatic reports... Good idea. Unless someone with the right permissions to get this quickly into the svn repository will do it, I can make a patch for this change to the property file. Regards, Olav