[jira] [Updated] (OFBIZ-9401) ServiceSemaphore: Check for Transaction before suspending it in dbWrite(...)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-9401) ServiceSemaphore: Check for Transaction before suspending it in dbWrite(...)

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-9401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Becker updated OFBIZ-9401:
---------------------------------
    Attachment: OFBIZ-9401_checkForTransactionServiceSemaphore.patch

> ServiceSemaphore: Check for Transaction before suspending it in dbWrite(...)
> ----------------------------------------------------------------------------
>
>                 Key: OFBIZ-9401
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9401
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Martin Becker
>            Priority: Minor
>         Attachments: OFBIZ-9401_checkForTransactionServiceSemaphore.patch
>
>
> In ServiceSemaphore.dbWrite(...) the transaction is suspended without checking if there is a transaction in place. This results in logging a warning each time the TransactionUtil.suspend() method is invoked without a current transaction in place. The given patch cuts this unnecessary logging by checking if there is an transaction in place to suspend. If a transaction exists - suspend it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)