Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-10223

Ensure transaction thread local gets cleared for every request and service run (potential deadlock fix)

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Need to create a web filter that cleans the thread local that is used by transaction code to hold the database connection during a transaction. The web filter needs to log warnings when it finds the thread lcoal uncleared. The same thread lcoal clearing code needs to to be put into the service runner.

      Also need to fix up org.ofbiz.core.entity.TransactionUtil, such that the thread lcoal is cleared in the finally block (just in case).

      Remember that no JIRA class should interact with org.ofbiz.core.entity.TransactionUtil directly. JIRA's classes should call methods on com.atlassian.core.ofbiz.util.CoreTransactionUtil, which should in turn proxy calls to org.ofbiz.core.entity.TransactionUtil.

      Attachments

        Activity

          People

            Unassigned Unassigned
            anton@atlassian.com AntonA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: