Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 83862 invoked from network); 31 Oct 2009 21:28:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Oct 2009 21:28:23 -0000 Received: (qmail 84520 invoked by uid 500); 31 Oct 2009 21:28:22 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 84476 invoked by uid 500); 31 Oct 2009 21:28:22 -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 84466 invoked by uid 99); 31 Oct 2009 21:28:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Oct 2009 21:28:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Oct 2009 21:28:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6AB0F234C1F2 for ; Sat, 31 Oct 2009 14:27:59 -0700 (PDT) Message-ID: <2102260533.1257024479422.JavaMail.jira@brutus> Date: Sat, 31 Oct 2009 21:27:59 +0000 (UTC) From: "Milosz Tylenda (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1372) Generating identifiers by using sequence table may fail during sequence table initialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Generating identifiers by using sequence table may fail during sequence table initialization -------------------------------------------------------------------------------------------- Key: OPENJPA-1372 URL: https://issues.apache.org/jira/browse/OPENJPA-1372 Project: OpenJPA Issue Type: Bug Components: jdbc, kernel Affects Versions: 2.0.0-M3, 1.2.1 Reporter: Milosz Tylenda When sequence table does not exist and mutliple threads get EntityManagers from EntityManageFactory, an insert into sequence table may fail because of duplicate primary key value. EMF is created lazily by default and users reported various problems with concurrent initialization (e.g. failures in resolving aliases in JPQL queries, IIRC) of EMF. This issue might have the same roots. Issue and test case originally reported by Pinaki in OPENJPA-466. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.