Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B7141079A for ; Tue, 26 Nov 2013 20:49:44 +0000 (UTC) Received: (qmail 80956 invoked by uid 500); 26 Nov 2013 20:49:43 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 80858 invoked by uid 500); 26 Nov 2013 20:49:43 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 80850 invoked by uid 99); 26 Nov 2013 20:49:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Nov 2013 20:49:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of phil.steitz@gmail.com designates 209.85.192.181 as permitted sender) Received: from [209.85.192.181] (HELO mail-pd0-f181.google.com) (209.85.192.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Nov 2013 20:49:37 +0000 Received: by mail-pd0-f181.google.com with SMTP id p10so8342934pdj.26 for ; Tue, 26 Nov 2013 12:49:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=vgZ7HYuUGFwXeX2Gs6Oph3dErGw6eX5ASaL33rvjNQU=; b=SudJ1F+JZwN8fVh7N2cvhqu3xQwHX9KOL5GEQF/fpjt9um8bKPq+oa7dvB/ZedfbSE 3kAXhYz2nfTIfFrcqjQlD98Zb3zkukTR0b2HSvQPB2QrmhuAgICQjHBGCcjYm9CxI91M +Dm6RKWfVhFH31ibEv4wImKGv5K0g1zlhT3l23uEPNCwmkFzKjS1MpEStmidbQAjixu5 ZNx2UVByQk7XBV36rvkiQF7JnK371oWKMdzUm6DZhDyBwp0kE9T8Oji5FzyTU78hLvNR UcIxO82FEESI5/AavLp6bm/NgCjE/a6Y4YYM8XKP1/C8NW3R1VzBpfMDO6I2eZMK4lPL fTWg== X-Received: by 10.66.136.71 with SMTP id py7mr37671363pab.2.1385498956958; Tue, 26 Nov 2013 12:49:16 -0800 (PST) Received: from [192.168.2.107] (ip72-208-109-243.ph.ph.cox.net. [72.208.109.243]) by mx.google.com with ESMTPSA id rx4sm93771067pab.13.2013.11.26.12.49.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 12:49:13 -0800 (PST) Message-ID: <52950948.80602@gmail.com> Date: Tue, 26 Nov 2013 12:49:12 -0800 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [jira] [Commented] (POOL-240) GKOP: invalidateObject does not unblock threads waiting in borrowObject References: <9gof278yr2538a29b6lv4ug3.1385421433052@email.android.com> <5293DDA9.2010404@gmail.com> <52948F64.5050604@apache.org> <5294C9A5.9030703@gmail.com> <52950732.50603@apache.org> In-Reply-To: <52950732.50603@apache.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 11/26/13, 12:40 PM, Mark Thomas wrote: > On 26/11/2013 16:17, Phil Steitz wrote: >> On 11/26/13, 4:09 AM, Mark Thomas wrote: >>> On 25/11/2013 23:30, Phil Steitz wrote: >>>> On 11/25/13, 3:17 PM, Gary Gregory wrote: >>>>> Are we getting a 2.0.1 for this fix? >>>> GKOP still needs to be fixed to resolve this and the GOP fix needs >>>> the "TR" part of "CTR" done carefully ;). >>> The GOP fix looks OK to me. >>> >>> Good catch with invalidateObject(). I hadn't noticed that. >> I just committed a fix for GKOP. I thought about just changing the >> returnObject code to always call reuseCapacity instead of >> immediately returning after destroying an object; but reuseCapacity >> is a weaker liveness-enabler. Calling addObject with the key of the >> instance just destroyed seemed more reliable. > Patch looks good to me. > > I noticed a minor inconsistency in the GOP code that I fixed. It wasn't > a functional change but I think it helps to have the code as consistent > as possible to aid understanding. Thanks for fixing that. Sorry I missed it. > >> I am right that destroys on activation or validation failures during >> borrow can't trigger this problem, right? > That shouldn't trigger this problem. If the activation or validation > fails then that will be followed by a call to create. > >> Might be good to add test >> cases for this in any case. I will get to that eventually, but if >> this fix passes review I am OK resolving the issue. > I'm fine with resolving it too. OK, thanks. Phil > > Mark > > >> Phil >>> Mark >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>> For additional commands, e-mail: dev-help@commons.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org