Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32767

MongoDB persistency on commit should happen before other afterCompletion

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2025.x, 2023.16
    • Component/s: Core MongoDB

      Description

      Today MongoDB commit is called in a transaction synchronization when a session is used
      in RepositoryService$SessionSynchronization.afterCompletion.
      The order of beforeCompletion and afterCompletion hooks are given by the order of registration to the transaction.
      This means that custom synchronization might be called before data are persisted in MongoDB resulting in visibility problem on afterCompletion hook.

      The mongo persistence should be the first hook to be executed, this is possible using geronimo registerInterposedSynchronization

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: