Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9401

ServiceSemaphore: Check for Transaction before suspending it in dbWrite(...)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: 17.12.01
    • Component/s: framework
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              mbecker Martin Becker
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: