Status: Patch Available
Affects Version/s: Release Branch 09.04, Trunk
Fix Version/s: None
Sprint:Bug Crush Event - 21/2/2015
There is a fundamental issue with enforced sequences (for orders, invoices, etc ..) and concurrency.
For example if two users are creating an order at the same time one of them will see the creation fail with a PK error. The problem is that the "getNextXXXId" rely on the party accounting preference entity, but there is absolutely no guarantee that the last number in the sequence gets updated before another service can read it.
This is at best very annoying when used only internally but may be unpractical for e-commerce sites.
|Workflow||jira [ 12501912 ]||OFbiz Workflow [ 12507224 ]|
|Status||Open [ 1 ]||Patch Available [ 10002 ]|
|Priority||Major [ 3 ]||Blocker [ 1 ]|
[ Thanks Jeremy,
Hopefully, Adam who assigned 2353 to himself and marked this one as a duplicate will apply your solution or has already another one, Adam? ]
[ Add a note about the duplicate link with
I just quickly read the 1st lines of your last comment, and I think it should be noted here the relation with
Just noticed that [Adrian already reported it in a comment above|https://issues.apache.org/jira/browse/OFBIZ-3557?focusedCommentId=12870058&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12870058]. Anyway I already removed the duplicate lin ]
|Priority||Blocker [ 1 ]||Major [ 3 ]|
|Sprint||Bug Crush Event - 21/2/2015 [ 91 ]|