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

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

      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.

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

                Created:
                Updated:
                Resolved: