Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 69550 invoked from network); 5 Nov 2010 23:02:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 23:02:33 -0000 Received: (qmail 99279 invoked by uid 500); 5 Nov 2010 23:03:05 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 99224 invoked by uid 500); 5 Nov 2010 23:03:04 -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 99215 invoked by uid 99); 5 Nov 2010 23:03:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 23:03:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 23:03:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA5N2hxV013844 for ; Fri, 5 Nov 2010 23:02:43 GMT Message-ID: <17065651.46391288998163371.JavaMail.jira@thor> Date: Fri, 5 Nov 2010 19:02:43 -0400 (EDT) From: "Fay Wang (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1762) javax.persistence.lock.scope EXTENDED doesn't properly lock join tables In-Reply-To: <4773868.240091281383055873.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fay Wang updated OPENJPA-1762: ------------------------------ Attachment: OPENJPA-1726-1.patch This patch will fix the PessimisticLockManager by locking the join table. > javax.persistence.lock.scope EXTENDED doesn't properly lock join tables > ----------------------------------------------------------------------- > > Key: OPENJPA-1762 > URL: https://issues.apache.org/jira/browse/OPENJPA-1762 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 2.0.1, 2.1.0 > Environment: Derby and DB2 > Reporter: Rick Curtis > Attachments: OPENJPA-1726-1.patch, OPENJPA-1762.PATCH > > > I have a simple failing unit test that exercises a small portion of the javax.persistence.lock.scope=Extended property. The failing scenario is as follows: > ManyToMany relationship between A(owner) and B. > Em1 - Find A, no lock > Em1 - Refresh A, PESSIMISTIC_FORCE_INCREMENT and javax.persistence.lock.scope=PessimisticLockScope.EXTENDED -- this SHOULD lock the join table for A_B > Em2 - Find, lock B. Remove B. should block while trying to remove from Join table. > I will post the unit test which demonstrates the problem shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.