Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-5075

REST server invokes potentially blocking operations on Netty threads

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • RHDG 8.3 GA
    • None
    • Server
    • None

    Description

      DefaultCacheManager.getCache(cacheName) is potentially blocking, and the REST server directly and indirectly invokes getCache(cacheName) on Netty threads.

      BlockHound does not catch it in the test suite because caches are usually predefined and are already started by the time the test invokes any REST operations. But that's not always the case: when a cache is created dynamically, REST requests (like manager health requests from k8s liveness checks) may try to access the cache while it's starting and block.

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: JDG

              People

                dberinde@redhat.com Dan Berindei
                dberinde@redhat.com Dan Berindei
                Gustavo Lira Silva Gustavo Lira Silva
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: