[jboss-jira] [JBoss JIRA] (WFCORE-3077) Operation removing http-connector requires full server reload but does not change the server state accordingly
Brian Stansberry (JIRA)
issues at jboss.org
Wed Jul 19 15:29:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437825#comment-13437825 ]
Brian Stansberry commented on WFCORE-3077:
------------------------------------------
This one is odd. I can see a problem here, in that RemotingHttpUpgradeService.stop does this:
injectedRegistry.getValue().removeProtocol(JBOSS_REMOTING);
That will remove all upgrade handling for JBOSS_REMOTING, not just the handling added in the service instance's start() method. That's a problem if you have >1 http-connector for the same undertow listener, which seems to be what the test in question sets up (standard config has http-connector=http-remoting-connector and test adds http-connector=ejb3-tests, both with the same connector-ref.)
So I would expect not doing a reload to break things because removing http-connector=ejb3-tests results in http-connector=http-remoting-connector no longer working until reload happens. But I don't see how it would result in http upgrade continuing to work until the reload happens.
I'm not sure how the test setup with two http-connectors on the same undertow listener functions properly in the test anyway, since my reading of ChannelUpgradeHandler tells me it will always pick the one registered by the first RemotingHttpUpgradeService to add the protocol, since all such registrations will use an equivalent SimpleHttpUpgradeHandshake.
> Operation removing http-connector requires full server reload but does not change the server state accordingly
> --------------------------------------------------------------------------------------------------------------
>
> Key: WFCORE-3077
> URL: https://issues.jboss.org/browse/WFCORE-3077
> Project: WildFly Core
> Issue Type: Bug
> Components: Remoting
> Reporter: Michal Jurc
> Assignee: David Lloyd
>
> Removing a {{http-connector}} with {{allow-resource-service-restart}} set to {{true}} will yield the following result:
> {code}{
> "operation" => "remove",
> "address" => [
> ("subsystem" => "remoting"),
> ("http-connector" => "ejb3-tests")
> ],
> "operation-headers" => {"allow-resource-service-restart" => true}
> }
> {"outcome" => "success"}{code}
> However, the removal of {{http-connector}} will only register after full server reload.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list