-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2.1
-
%
-
-
After an ensemble-add, the zookeeper.url in the FUSE_HOME/instances/instance.properties does not get updated for a child container.
Actual:
item.1.opts = -server......... -Dzookeeper.url=\"172.17.80.22:2181\" ......
Expected:
item.1.opts = -server......... -Dzookeeper.url=\" 172.17.80.22:2182,172.17.80.11:2182,172.17.80.8:2182\" ......
The issue surfaced when a customer deleted the FUSE_HOME/instances/childcontainer/data/ directory. Upon restart, there were ConnectionExceptions (below) because the /data/../zookeeper.config file (having the updated zookeeper.url) was gone, and it seems that the old outdated one from instance.properties/zookeeper.url was being used instead.
2016-07-21 14:22:58,065 | INFO | 2.17.80.22:2181) | ClientCnxn | 89 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Opening socket connection to server 172.17.80.22/172.17.80.22:2181 2016-07-21 14:22:58,067 | WARN | 2.17.80.22:2181) | ClientCnxn | 89 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.8.0_91] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)[:1.8.0_91] at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)[89:io.fabric8.fabric-zookeeper:1.2.0.redhat-621084] at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)[89:io.fabric8.fabric-zookeeper:1.2.0.redhat-621084]