[jboss-jira] [JBoss JIRA] (AS7-3524) HostControllerConnectionService connection timeout is not configurable

Dominik Pospisil (JIRA) jira-events at lists.jboss.org
Wed Feb 1 09:03:48 EST 2012


    [ https://issues.jboss.org/browse/AS7-3524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663369#comment-12663369 ] 

Dominik Pospisil edited comment on AS7-3524 at 2/1/12 9:02 AM:
---------------------------------------------------------------

I would suggest to consider adding common set of network attributes (connection-timeout, response-timeout, retry?, ...) to interface/socket-binding level. Than each connector/service bound to it would respect that setting if the underlying protocol supports that. This would eliminate the need to add such attributes for every networking service to management model.
                
      was (Author: dpospisil):
    I would suggest to consider adding common set of network attributes (connection-timeout, response-timeout, retry?, ...) to interface/socket-binding level. Than each connector/service bound to it would respect that setting if the underlying protocol supports that.
                  
> HostControllerConnectionService connection timeout is not configurable
> ----------------------------------------------------------------------
>
>                 Key: AS7-3524
>                 URL: https://issues.jboss.org/browse/AS7-3524
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 7.1.0.Final
>            Reporter: Dominik Pospisil
>            Assignee: Bartosz Baranowski
>             Fix For: 7.2.0.Alpha1
>
>
> I am seeing intermittent failures when starting AS7 in domain mode. It seems that this is due to HostControllerConnectionService has hardcoded 15s timeout when trying to connect to DC. I think that this value should be configurable.
> HostControllerConnectionService.java:
> ...
> ProtocolChannelClient.Configuration configuration = new ProtocolChannelClient.Configuration();
> configuration.setEndpoint(endpointInjector.getValue());
> configuration.setConnectionTimeout(15000);
> configuration.setUri(new URI("remote://" + hcAddressInjector.getValue().getHostName() + ":" + hcAddressInjector.getValue().getPort()));
> client = ProtocolChannelClient.create(configuration);
> ...
> Exception I am getting:
> [Server:server-two] 13:52:54,766 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.host.controller.channel: org.jboss.msc.service.StartException in service jboss.host.controller.channel: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost.localdomain:9999. The connection timed out
> [Server:server-two] 	at org.jboss.as.server.mgmt.domain.HostControllerConnectionService.start(HostControllerConnectionService.java:103) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
> [Server:server-two] 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> [Server:server-two] 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> [Server:server-two] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
> [Server:server-two] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
> [Server:server-two] 	at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
> [Server:server-two] Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost.localdomain:9999. The connection timed out
> [Server:server-two] 	at org.jboss.as.protocol.ProtocolChannelClient.connectSync(ProtocolChannelClient.java:166) [jboss-as-protocol-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list