From dev-return-17955-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 11 17:04:06 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 86426 invoked from network); 11 Nov 2010 17:04:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 17:04:06 -0000 Received: (qmail 57697 invoked by uid 500); 11 Nov 2010 17:04:37 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 57668 invoked by uid 500); 11 Nov 2010 17:04:37 -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 57660 invoked by uid 99); 11 Nov 2010 17:04:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 17:04:37 +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; Thu, 11 Nov 2010 17:04:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oABH4Dp3020918 for ; Thu, 11 Nov 2010 17:04:13 GMT Message-ID: <30889545.29301289495053498.JavaMail.jira@thor> Date: Thu, 11 Nov 2010 12:04:13 -0500 (EST) From: "Fay Wang (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (OPENJPA-1762) javax.persistence.lock.scope EXTENDED doesn't properly lock join tables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fay Wang reassigned OPENJPA-1762: --------------------------------- Assignee: Fay Wang > 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 > Assignee: Fay Wang > 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.