Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1581

Concurrent session access in event handlers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Event 2.3.0
    • Event 2.4.0
    • Extensions
    • None

    Description

      I have a deadlock scenario caused by one thread calling AbstractRepositoryEventHandler.stopWriterSession() while another thread is attempting to lock a node using the same session in TimedJobHandler.runInBackground().

      There's already a writeLock object in TimedJobHandler that's apparently designed to protect against concurrent use of the writer session, but that protection doesn't seem to cover the stopWriterSession() method in the base class.

      Attachments

        1. SLING-1581.patch
          6 kB
          Jukka Zitting

        Activity

          People

            cziegeler Carsten Ziegeler
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: