I am getting some weird errors when I start Hazelcast. I am using
tcpip for discovery and adding two members/interfaces manually -
192.68.0.51 and 192.68.0.52. When I start the first host (192.68.0.51)
I get this:
31-dec-2009 15:23:09 com.hazelcast.impl.Node <init>
INFO: Hazelcast 1.8.1-SNAPSHOT (20091227) starting at Address
[192.68.0.51:5702]
31-dec-2009 15:23:09 com.hazelcast.impl.Node <init>
INFO: Copyright (C) 2009 Hazelcast.com
31-dec-2009 15:23:10 com.hazelcast.nio.Connection close
INFO: Connection lost Address[192.68.0.52:5701]
31-dec-2009 15:23:10 com.hazelcast.nio.Connection close
INFO: Connection lost Address[192.68.0.51:5701]
31-dec-2009 15:23:14 com.hazelcast.impl.Node join
INFO:
Members [1] {
Member [192.68.0.51:5702] this
}
31-dec-2009 15:23:14 com.hazelcast.jmx.ManagementService init
Sometimes Hazelcast starts with these errors, sometimes it doesn't.
When it does, membership isn't working at all (new members aren't seen
by original members) and new members hang on startup. I get the same
error messages when I try to start 192.68.0.52 with 192.68.0.51
already started (but with errors):
31-dec-2009 15:26:50 com.hazelcast.impl.Node <init>
INFO: Hazelcast 1.8.1-SNAPSHOT (20091227) starting at Address
[192.68.0.52:5702]
31-dec-2009 15:26:50 com.hazelcast.impl.Node <init>
INFO: Copyright (C) 2009 Hazelcast.com
31-dec-2009 15:26:51 com.hazelcast.nio.Connection close
INFO: Connection lost Address[192.68.0.52:5701]
31-dec-2009 15:26:51 com.hazelcast.nio.Connection close
INFO: Connection lost Address[192.68.0.51:5701]
And it just gets stuck there.
But sometimes these messages do not appear and everything seems to be
fine. At least new members are discovered and it doesn't hang. But it
doesn't seem that the Maps I am creating are being distributed. When I
stick something in a Map the EntryListener only fires on the member it
was added to.
I suspect there might be some network weirdness going on. I've tried
turning on debugging by putting this in my log4j.xml:
<logger name="com.hazelcast">
<level value="debug"/>
</logger>
But I am not seening any debug info. Hazelcast can use both log4j and
java.util.logging, right? How do I turn it on to see what these errors
are all about.
Thanks!
Bob
ps. Happy new year!