Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 39848 invoked from network); 4 Jan 2006 16:57:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jan 2006 16:57:55 -0000 Received: (qmail 92447 invoked by uid 500); 4 Jan 2006 16:57:54 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 92436 invoked by uid 99); 4 Jan 2006 16:57:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2006 08:57:54 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stefan.guggisberg@gmail.com designates 64.233.162.198 as permitted sender) Received: from [64.233.162.198] (HELO zproxy.gmail.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2006 08:57:54 -0800 Received: by zproxy.gmail.com with SMTP id i11so2446944nzi for ; Wed, 04 Jan 2006 08:57:43 -0800 (PST) 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=RhXad24yUpketaMha88YiY9vt0jo113HgPWsbxzSZn18CgG7dC0tApy0e438SxKj1Vsxcb8Ho75g5VuP02vNhtmRftSBmfpBaNNozxV2628eM3iIIxoK1U+kAnvK+DNsmI8f/5kjCvAPWEWMRa57YviC+QlaQW9Cucfl80xk0pM= Received: by 10.37.22.33 with SMTP id z33mr5525552nzi; Wed, 04 Jan 2006 08:57:43 -0800 (PST) Received: by 10.36.86.4 with HTTP; Wed, 4 Jan 2006 08:57:42 -0800 (PST) Message-ID: <90a8d1c00601040857r463ce7cfr91c79bc23622c230@mail.gmail.com> Date: Wed, 4 Jan 2006 17:57:42 +0100 From: Stefan Guggisberg To: jackrabbit-dev@incubator.apache.org Subject: Re: corrupted root node state In-Reply-To: <90a8d1c00601040832na9c6241l65fc3c86c722182e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <29a761a00601020302q15c6ee39s9252356d05773672@mail.gmail.com> <90a8d1c00601030240n3a1d1041gbd62db83f9a6609c@mail.gmail.com> <29a761a00601030908v5967284ag449f9ddffa7233c3@mail.gmail.com> <90a8d1c00601040026y4ed23942w1157130e6db3e18b@mail.gmail.com> <29a761a00601040659o29fc0940jef962aca63ae1aa2@mail.gmail.com> <90a8d1c00601040724y7557eb8fkd8c31dca2cd54c82@mail.gmail.com> <29a761a00601040744t6e4df1efo3f73a013983c892b@mail.gmail.com> <90a8d1c00601040832na9c6241l65fc3c86c722182e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N sorry, i was all wrong. it's not a derby bug but a bug in my code :( i should have used DataInputStream.readFully(byte[]) instead of DataInputStream.read(byte[]). i'll commit a fix asap. cheers stefan On 1/4/06, Stefan Guggisberg wrote: > On 1/4/06, Brian Moseley wrote: > > On 1/4/06, Stefan Guggisberg wrote: > > > > > your working hypothesis is absolutely correct. the problem is caused = by a > > > bug in derby's stream implementation returned by ResultSet.getBinaryS= tream(). > > > the problem occurs when you read across an internal 32k buffer bounda= ry. > > > i suppose the bug is somewhere in derby's MemByteHolder class. > > > i also agree with you that this code is, erm..., quite confusing :( > > > > heh. we had a feeling it was a data structure size issue. i even > > looked at MemByteHolder at one point, but i didn't connect the dots. > > glad you did! > > > > > the good news is that your repository data is not corrupt and that > > > there's an easy temporary workaround for the derby bug (see attachmen= t). > > > > awesome. shall i report a derby bug, or have you already done that? > > thanks, i already did that: http://issues.apache.org/jira/browse/DERBY-79= 7 > > cheers > stefan > > > > > > i guess you owe me a beer :) > > > > i owe you a sixer. if we ever make it to apachecon at the same time, it= 's yours. > > > > thanks! > > >