Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6121

Improve concurrency of ContentRepositoryImpl

XMLWordPrintable

      ContentRepositoryImpl has a sharable MessageDigest instance, access to which is (incompletely) controlled via synchronization. That limits the number of concurrent calls, e.g. for uploading different repository content.

      The sharing is a nice to have thing, but it's not invalid to have more than 1 digest active at once, so do a bit of bookkeeping to use the shared instance if available and create a one-off instance otherwise.

      Also fix the partially missing control of the shared digest object.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: