You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Milosz Tylenda (JIRA)" <ji...@apache.org> on 2009/10/31 22:27:59 UTC

[jira] Created: (OPENJPA-1372) Generating identifiers by using sequence table may fail during sequence table initialization

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.


[jira] Updated: (OPENJPA-1372) Generating identifiers by using sequence table may fail during sequence table initialization

Posted by "Milosz Tylenda (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milosz Tylenda updated OPENJPA-1372:
------------------------------------

    Attachment: TestSequenceGenerationOnMT.java
                GeneratedIdObject.java

> 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: 1.2.1, 2.0.0-M3
>            Reporter: Milosz Tylenda
>         Attachments: GeneratedIdObject.java, TestSequenceGenerationOnMT.java
>
>
> 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.


[jira] Assigned: (OPENJPA-1372) Generating identifiers by using sequence table may fail during sequence table initialization

Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dick reassigned OPENJPA-1372:
-------------------------------------

    Assignee: Michael Dick

> 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: 1.2.1, 2.0.0-M3
>            Reporter: Milosz Tylenda
>            Assignee: Michael Dick
>         Attachments: GeneratedIdObject.java, TestSequenceGenerationOnMT.java
>
>
> 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.


[jira] Resolved: (OPENJPA-1372) Generating identifiers by using sequence table may fail during sequence table initialization

Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dick resolved OPENJPA-1372.
-----------------------------------

    Fix Version/s: 2.0.2
                   2.1.0
       Resolution: Fixed

Testcase added to 2.x releases - so I'm marking as resolved. If there's another way to trigger this problem we can either open another issue (if 2.0.2 or 2.1.0 have been released), or reopen this one (if neither has been released).

> 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: 1.2.1, 2.0.0-M3
>            Reporter: Milosz Tylenda
>            Assignee: Michael Dick
>             Fix For: 2.0.2, 2.1.0
>
>         Attachments: GeneratedIdObject.java, TestSequenceGenerationOnMT.java
>
>
> 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.