Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 266 invoked from network); 17 Dec 2005 00:35:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Dec 2005 00:35:12 -0000 Received: (qmail 85676 invoked by uid 500); 17 Dec 2005 00:35:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 85555 invoked by uid 500); 17 Dec 2005 00:35:11 -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 85546 invoked by uid 99); 17 Dec 2005 00:35:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 16:35:11 -0800 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.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 16:35:10 -0800 Received: from phys-gadget-1 ([129.156.85.171]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id jBH0Yn3F014020 for ; Fri, 16 Dec 2005 17:34:49 -0700 (MST) Received: from conversion-daemon.gadget-mail1.uk.sun.com by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IRM00F01951PA@gadget-mail1.uk.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-dev@db.apache.org; Sat, 17 Dec 2005 00:34:49 +0000 (GMT) Received: from localhost (vpn-129-150-112-91.Holland.Sun.COM [129.150.112.91]) by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IRM00FMG9LZYT@gadget-mail1.uk.sun.com> for derby-dev@db.apache.org; Sat, 17 Dec 2005 00:34:48 +0000 (GMT) Date: Sat, 17 Dec 2005 01:34:10 +0100 From: Knut Anders Hatlen Subject: Re: [jira] Commented: (DERBY-733) Starvation in RAFContainer.readPage() In-reply-to: <43A327D6.8080507@debrunners.com> To: derby-dev@db.apache.org Message-id: <874q587e9p.fsf@sun.com> Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) References: <909576820.1134603346924.JavaMail.jira@ajax.apache.org> <43A31752.80806@sbcglobal.net> <43A327D6.8080507@debrunners.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Daniel John Debrunner writes: > Mike Matrigali wrote: >> You have raised some issues about this patch. In the apache >> commit/review model should I be raising a vote on the patch. I >> think this is basically do you feel strongly enough to vote -1 >> on such a vote. > > Any patch implictly has a vote, there is no need to raise such a thing. > If I wanted to vote -1 I would do so. > >> I don't think Knut plans on building a separate module for this >> locking stuff, at least not until it is used in more than one place. >> He should comment. That's correct, I don't plan on doing that. Not right now, at least. Of course, if someone voted -1 the plans would probably change. ;) >> I am ok with the patch, and would go foward with his subsequent >> patch recently submitted as it addressed some of my concerns (I have >> not had a chance yet to review it). I agree the separate module >> approach is >> better, but that is not what was submitted. I believe I would >> not commit a proliferation of the same kinds of changes in multiple >> files. >> >> I am hoping that this patch leads to more work in this area, identifying >> the next bottleneck and next change and it may become clearer what major >> changes need to happen. > > Agreed, though it does concern me a little that there is an existing > mechanism for ensuring single threaded access to an object with queuing. > It seems that one of the reasons it was not used was that someone had a > question about if it could be used, but that question was not rasied on > the list until after the patch was submitted and committed. > > I don't want to see a trend where people add code that replicates > existing internal functionality because they don't understand the > existing functionality and never ask about it on the list. I admit that you are correct when you are saying that I don't understand the functionality of the lock manager. However, saying that I never asked about it on the list is not entirely true. I did post a description of the problem on the list. And I did post a description of what functionality was needed to fix the problem and how I planned to implement it. Using existing functionality is of course a much better solution than the ugly hack I came up with, but I never hid my intentions from the list. If someone knew that Derby already had that kind of functionality, nothing prevented them from letting me know. -- Knut Anders