[
https://issues.apache.org/jira/browse/OFBIZ-4469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128671#comment-13128671
]
Jacques Le Roux commented on OFBIZ-4469:
----------------------------------------
Please don't put tabs in you patches but 4 spaces, thanks
> Load product dimension when and only when the product is created successfully
> -----------------------------------------------------------------------------
>
> Key: OFBIZ-4469
> URL: https://issues.apache.org/jira/browse/OFBIZ-4469
> Project: OFBiz
> Issue Type: Bug
> Components: product
> Affects Versions: SVN trunk
> Reporter: Leon
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: Release Branch 09.04, Release Branch 10.04, Release
> Branch 11.04, SVN trunk
>
> Attachments: OFBIZ-4469.patch
>
>
> Service "loadType1ProductInProductDimension" is triggered by "createProduct"
> service on "commit" events in "async" mode.
> Sometimes, there're too much backend work to do after a product is created
> and before the whole transaction is commited, as other "sync" mode secas,
> transaction itself and so on.
> In such situation, the loadType1ProductInProductDimension service cannot get
> the product info because the new created product has not been truely commited
> yet, and then it will fail with error message "cannot found product" in log.
> Patch: use "global-commit" event instead of "commit" to resolve this problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira