Mantis - Resin
Viewing Issue Advanced Details
4732 minor always 08-26-11 13:09 09-09-11 13:21
cowan  
ferg  
normal  
closed 4.0.21  
fixed  
none    
none 4.0.23  
0004732: -kill with no -server fails in cluster
Configure a cluster with more than one server as below. Start server a. Then issue command "resin.sh -kill". Response is:

Resin/4.0.21 can't kill -server 'b' for watchdog at 127.0.0.1:6600.
java.lang.RuntimeException: WatchdogClient[b]: watchdog kill failed because of 'WatchdogService[watchdog@admin.resin.caucho]: kill server='b' failed because of exception
com.caucho.config.ConfigException: No matching <server> found for -server 'b' in /Users/paul/resin-pro-4.0.21/conf/resin.xml''

ResinBootConfig.findShutdownClient returns the 1st WatchdogClient in an unordered map regardless of if the server is up.

    <server id="a" address="127.0.0.1" port="6800">
      <http address="*" port="8080"/>
    </server>

    <server id="b" address="127.0.0.1" port="6801">
      <http address="*" port="8081"/>
    </server>

    <server id="c" address="127.0.0.1" port="6802">
      <http address="*" port="8082"/>
    </server>

Notes
(0005496)
cowan   
09-09-11 10:55   
* resin.sh command with no -server should require a default server
* If a default server is not configured, then resin.sh commands should fail with a message whenever no -server is passed
(0005497)
ferg   
09-09-11 13:21   
network/0362