Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-22007

TransactionListeners are executed in unpredictable order

    Details

    • Triage:
      ACE
    • Resolution Time Custom Field:
      3 weeks, 5 days, 22 hours, 44 minutes, 37 seconds

      Description

      TransactionListeners can be added manually using TransactionSupportUtil or AlfrescoTransactionSupport but are also added automatically by rules and policies that require the frequency of TRANSACTION_COMMIT.

      Their order of execution is determined by a priority integer (0 being the first priority executed and then in ascending order) and for each priority by their insertion order (by using a LinkedHashSet)

      However, the insertion order is not respected for priority 0 (which is the default normal priority) and the order at which listeners are executed is based on the hash of the class (by using a HashSet) which is unpredictable.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  nicolasbarithel Nicolas Barithel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Date of First Response:

                    Structure Helper Panel