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

Revisit the locking in RuntimeExpressionResolver due to deadlock risk.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Management
    • None

      The RuntimeExpressionResolver is holding the lock on the collection for the entire resolution of the expression step, this means there is a risk of deadlock across multiple threads

      https://github.com/wildfly/wildfly-core/blob/main/server/src/main/java/org/jboss/as/server/RuntimeExpressionResolver.java#L55-L57

      We need to double check but from our discussions we feel it was likely this locking was to protect the iterator from modifications to the underlying collection but we can handle that in a different way, the individual extensions are responsible for their own locking requirements.

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: