[jboss-jira] [JBoss JIRA] (WFCORE-4557) The read http-upgrade-enabled attribute operation acquires the write lock unnecessarily

Yeray Borges (Jira) issues at jboss.org
Tue Jul 2 11:26:00 EDT 2019


Yeray Borges created WFCORE-4557:
------------------------------------

             Summary: The read http-upgrade-enabled attribute operation acquires the write lock unnecessarily
                 Key: WFCORE-4557
                 URL: https://issues.jboss.org/browse/WFCORE-4557
             Project: WildFly Core
          Issue Type: Bug
          Components: Management
            Reporter: Yeray Borges
            Assignee: Yeray Borges


When we are reading the http-upgrade-enabled, the model is read acquiring the write lock. That could make the operation block until the write lock is released by any other underlying operation that previously has acquired it.

The read handler only reads the value and put it in the response, so taking the write lock here is unnecessary.

This issue affects the ongoing work in WFCORE-4283, there, we could have servers starting with the write lock taken, so it negatively affects to any reading of this attribute.




--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list