Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 33664 invoked from network); 16 Aug 2010 20:33:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 20:33:48 -0000 Received: (qmail 32677 invoked by uid 500); 16 Aug 2010 20:33:48 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 32627 invoked by uid 500); 16 Aug 2010 20:33:47 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 32619 invoked by uid 99); 16 Aug 2010 20:33:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 20:33:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.d.dick@gmail.com designates 209.85.160.174 as permitted sender) Received: from [209.85.160.174] (HELO mail-gy0-f174.google.com) (209.85.160.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 20:33:42 +0000 Received: by gyg10 with SMTP id 10so2418601gyg.33 for ; Mon, 16 Aug 2010 13:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=+xJqh9GQzWOgQL9JT5JTarwJ37XisEQc3vCgWrVFD8o=; b=Bxi8cQJm4DORkbVqTmKwAlbvSvXMBUsRUZ21kS1j69Yh2w8NldzVhhBp+lnX+xSoSN 1IDlqlt5+OsjSDiWvuMDH7x6VJB8qwDPOituTyfFVbl0/uEcQOwfxFWZIrDlE5X0JbVN CfnlDedB51WEQUxbHYjCeW3HzLrVLaTwjFFlI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=jVfMVQ+Atbamqkscp4WKmlHGVdFwSQBV5l+2oFERPeM6iE+OhguPsb84g3Aq1HtvHK SpGMwqSFhai399Hd7kMOajNlpEj80BID5A0/fJlfF26/Ti2rL67ZqmUBHK9VQDFiwjOg 0qiCkswiDGsUfC7tvQ0rgd/IPtNrDMY4xFuHU= Received: by 10.90.120.12 with SMTP id s12mr3882651agc.7.1281990802134; Mon, 16 Aug 2010 13:33:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.104.11 with HTTP; Mon, 16 Aug 2010 13:33:02 -0700 (PDT) In-Reply-To: <86e69538-7a88-40dc-92e2-c56c9d2f0847@default> References: <4C65B447.2010202@apache.org> <4C66F36B.2030004@apache.org> <1281966607288-5427904.post@n2.nabble.com> <86e69538-7a88-40dc-92e2-c56c9d2f0847@default> From: Michael Dick Date: Mon, 16 Aug 2010 15:33:02 -0500 Message-ID: Subject: Re: svn commit: r985067 - /openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=0016361e7f085dd83d048df6be8e --0016361e7f085dd83d048df6be8e Content-Type: text/plain; charset=ISO-8859-1 At first glance a single lock should work - removing the sm lock should prevent deadlocks down the road. I'm not sure if I can reproduce the problem on my laptop - might have to wait until I get home to try it out. Thanks for the pointer to OpenJPA-453 - lots of data there I'll have to read up a bit. -mike On Mon, Aug 16, 2010 at 1:29 PM, Ravi Palacherla wrote: > This patch does broker lock and in that case, is there a need for sm lock > too ? > Can we eliminate the sm lock and rely completely on broker lock? > The patch for the above is in 453. > > Regards, > Ravi. > > -----Original Message----- > From: Rick Curtis [mailto:curtisr7@gmail.com] > Sent: Monday, August 16, 2010 12:25 PM > To: dev@openjpa.apache.org > Subject: Re: svn commit: r985067 - > /openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java > > Go ahead and pull the trigger. > > On Mon, Aug 16, 2010 at 1:20 PM, Michael Dick >wrote: > > > I understand your concern about giving people a false sense of confidence > - > > openjpa.Multithreaded requires more than just this fix. OTOH it's going > to > > be a while before we have the whole solution. > > > > If you don't have a specific concern with the patch I'll go ahead and > > commit > > it - I don't see it as dangerous for normal (non openpja.Multithreaded) > use > > and we have at least one testcase which depends on it. > > > > -mike > > > > On Mon, Aug 16, 2010 at 8:50 AM, Rick Curtis wrote: > > > > > > > > My biggest concern with that fix is that it isn't a complete fix for > the > > > openjpa.Multithreaded property. It fixes the one one reported bug, but > > > there > > > are numerous others out there. > > > > > > I'd really like to see someone find some time to come up with a > complete > > > multi threaded story for openjpa. > > > > > --0016361e7f085dd83d048df6be8e--