Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-443

Deadlock when concurrently committing and reading versioning states

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9, 1.0
    • 1.0.1
    • None
    • None
    • r4093490

    Description

      there is a rear occation when one thread commits a transaction and another thread reads versioing related information, so that a deadlock can occurr.

      example:

      Thread1:
      ut.begin();
      session.getWorkspace().clone("default", "/content", "/content", true);
      ut.commit();

      Thread2:
      VersionHistory vh = folder.getVersionHistory();
      VersionIterator iter = vh.getAllVersions();
      while (iter.hasNext())

      { Version v = iter.nextVersion(); }

      to fix this issue we must ensure, that methods below the shareditemstatemgr do not call higher instances (like itemmgr) again.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: