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

Make VisibilitySocialDocumentListener listener and 'SocialWorkspaceCreatedChain' event handler synchronous

    XMLWordPrintable

    Details

      Description

      There is no need for those listeners to be asynchronous.
      Making them synchronous will:

      • allow the user to have a direct feedback about the document being private or public
      • simplify the execution flow when creating a Social Workspace / Social Document
      • avoid concurrency issues, at least on h2
      Caused by: org.h2.jdbc.JdbcSQLException: Deadlock detected. The current transaction was rolled back. Details: 
      Session #10 (user: SA) is waiting to lock PUBLIC.DUBLINCORE while locking PUBLIC.HIERARCHY (exclusive), PUBLIC.TASK_VARIABLE (exclusive).
      Session #8 (user: SA) is waiting to lock PUBLIC.HIERARCHY while locking , PUBLIC.CONTENT (exclusive), PUBLIC.DUBLINCORE (exclusive).
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: