Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 82101 invoked from network); 10 Oct 2005 13:28:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 13:28:54 -0000 Received: (qmail 14408 invoked by uid 500); 10 Oct 2005 13:28:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 14165 invoked by uid 500); 10 Oct 2005 13:28:52 -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 14153 invoked by uid 99); 10 Oct 2005 13:28:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 06:28:52 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 06:28:53 -0700 Received: from phys-epost-1 ([129.159.136.14]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j9ADSTvD013057 for ; Mon, 10 Oct 2005 07:28:29 -0600 (MDT) Received: from conversion-daemon.epost-mail1.sweden.sun.com by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IO500001BRA7M@epost-mail1.sweden.sun.com> (original mail from Bernt.Johnsen@Sun.COM) for derby-dev@db.apache.org; Mon, 10 Oct 2005 15:28:29 +0200 (MEST) Received: from localhost (atum01.Norway.Sun.COM [129.159.112.201]) by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IO5005Z3C3GW5@epost-mail1.sweden.sun.com> for derby-dev@db.apache.org; Mon, 10 Oct 2005 15:28:28 +0200 (MEST) Date: Mon, 10 Oct 2005 15:28:28 +0200 From: "Bernt M. Johnsen" Subject: Re: [PATCH] [jira] Updated: (DERBY-555) Unable to restart after disk is full In-reply-to: To: Derby Development Message-id: <20051010132828.GA17050@atum01.norway.sun.com> Organization: Sun Microsystems MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=YZ5djTAD1cGYuMQK Content-disposition: inline User-Agent: Mutt/1.5.9i References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >>>>>>>>>>>> =D8ystein Gr=F8vlen wrote (2005-10-10 14:43:37): >=20 > Could someone review/commit the new patch that I added last week? I > have run derbyall with no new errors. Looks ok. I'll commit if there is one more review. >=20 > -- > =D8ystein >=20 > To: derby-dev@db.apache.org > From: =D8ystein Gr=F8vlen > Subject: [jira] Updated: (DERBY-555) Unable to restart after disk is full > Date: Tue, 04 Oct 2005 13:06:49 +0200 (CEST) >=20 > [ http://issues.apache.org/jira/browse/DERBY-555?page=3Dall ] >=20 > =C3=98ystein Gr=C3=B8vlen updated DERBY-555: > ---------------------------------- >=20 > Attachment: derby-555a.diff >=20 > Added a new patch that changes the message to derby.log and adds a test f= or this bug.=20 >=20 > With this patch, when a database is booted in read-only mode, the boot me= ssage in derby.log will contain information about that. >=20 > I have also added a test, TurnsReadOnly.java, that without the fix, get t= he NPE. This is not in a disk full scenario, but it also occurs with a rea= d-only DB directory. Since there is currently no way to turn write access= back on from a Java program, the DB directory will be read-only after the = test is run. Hence, the test framework will not be able to clean up the te= st directory. Therefore, this test is not added to the derbyall test suite. >=20 > The following files are changed: >=20 > M java/engine/org/apache/derby/impl/store/raw/RawStore.java > Do not check log location for read-only databases (avoids NPE) > M java/engine/org/apache/derby/impl/store/raw/data/BaseDataFileFacto= ry.java > Add information to boot message in derby.log when database is boote= d in read-only mode. > M java/engine/org/apache/derby/iapi/reference/MessageId.java > Added message id for the read-only part of the boot message > M java/engine/org/apache/derby/loc/messages_en.properties > Added text for the read-only part of the boot message > M java/testing/org/apache/derbyTesting/functionTests/tests/store/cop= yfiles.ant > Added TurnsReadOnly_app.properties > A java/testing/org/apache/derbyTesting/functionTests/tests/store/Tur= nsReadOnly.java > New test that boots a database with log in non-default location, sh= uts it down, sets DB directory to read-only, boots again and checks that DM= L is not allowed. > A java/testing/org/apache/derbyTesting/functionTests/tests/store/Tur= nsReadOnly_app.properties > Test properties > A java/testing/org/apache/derbyTesting/functionTests/master/TurnsRea= dOnly.out > Master file for new test. >=20 > I am currently running derbyall and will update report when test is finis= hed. >=20 > > Unable to restart after disk is full > > ------------------------------------ > > > > Key: DERBY-555 > > URL: http://issues.apache.org/jira/browse/DERBY-555 > > Project: Derby > > Type: Bug > > Components: Store > > Versions: 10.2.0.0 > > Environment: Sun Sparc Solaris, 1.4 JDK, Derby Client/Server > > Reporter: =C3=98ystein Gr=C3=B8vlen > > Assignee: =C3=98ystein Gr=C3=B8vlen > > Priority: Critical > > Attachments: derby-555a.diff > > > > 1. Inserted data into the database until the disk was full. (5 clients = inserting into 5 different tables in parallel.) > > 2. Shut down the server > > 3. Start the database again without freeing any disk space. > > When I try to start the database again, I get Null-pointer-exception, r= egardless of how I connect (have tried embedded, client server, ij, jdbc ap= plications). I have not tried to free some space on the disk before starti= ng. =20 > > The call stack is not available right now (the computer I used had to b= e shut down due to problems with our cooling system), but the exception com= es from the following line in RawStore.java: > > properties.put(Attribute.LOG_DEVICE, logFactory.getCanonicalLogPat= h()); > > getCanonicalLogPath() returns null which results in a NPE in the hash t= able. > > A quick debug before the computer was stopped, showed that the logFacto= ry was an instance of org.apache.derby.impl.store.raw.log.ReadOnly which al= ways returns null in its getCanonicalLogPath(). > > I suspect this may be related to the fact that I ran with the log in a = non-default location. >=20 > --=20 > 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 >=20 >=20 >=20 >=20 >=20 > --=20 > =D8ystein --=20 Bernt Marius Johnsen, Database Technology Group,=20 Sun Microsystems, Trondheim, Norway --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFDSmx7lFBD9TXBAPARAoZUAJ9DybDKjc57h2pvWU5tI8spKT7XNACfcyJX BsNRP1ZQ8xk8XkR6Yoim5sk= =hEAK -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--