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
|Assignee||Michael Dick [ mikedd ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||2.0.2 [ 12315257 ]|
|Fix Version/s||2.1.0 [ 12314542 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|311d 1h 23m||1||Michael Dick||07/Sep/10 22:49|
|127d 17h 55m||1||Michael Dick||13/Jan/11 16:45|