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

Remove contention in AsyncUploadCache to improve performance

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10
    • 2.10.1
    • jackrabbit-data
    • None

    Description

      39 threads getting blocked on a lock

      "qtp838397579-20736" - Thread t@20736
         java.lang.Thread.State: BLOCKED
      	at org.apache.jackrabbit.core.data.AsyncUploadCache.hasEntry(AsyncUploadCache.java:165)
      	- waiting to lock <4f224235> (a org.apache.jackrabbit.core.data.AsyncUploadCache) owned by "s3-write-worker-14" t@624
      	at org.apache.jackrabbit.core.data.CachingDataStore.getRecord(CachingDataStore.java:422)
      	at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getDataRecord(DataStoreBlobStore.java:474)
      	at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getStream(DataStoreBlobStore.java:463)
      	at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getInputStream(DataStoreBlobStore.java:297)
      	at org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob.getNewStream(BlobStoreBlob.java:47)
      

      The lock is taken by this thread

      "s3-write-worker-14" - Thread t@624
         java.lang.Thread.State: RUNNABLE
      	at java.io.FileOutputStream.open(Native Method)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
      	at org.apache.jackrabbit.core.data.AsyncUploadCache.serializeAsyncUploadMap(AsyncUploadCache.java:293)
      	- locked <4f224235> (a org.apache.jackrabbit.core.data.AsyncUploadCache)
      	at org.apache.jackrabbit.core.data.AsyncUploadCache.remove(AsyncUploadCache.java:131)
      	- locked <4f224235> (a org.apache.jackrabbit.core.data.AsyncUploadCache)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shgupta Shashank Gupta
            shgupta Shashank Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment