[jira] [Created] (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] [Created] (OFBIZ-9401) ServiceSemaphore: Check for Transaction before suspending it in dbWrite(...)

Nicolas Malin (Jira)
Martin Becker created OFBIZ-9401:
------------------------------------

             Summary: 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)