These are chat archives for atomix/atomix

4th
Dec 2018
Junbo Ruan
@aruanruan
Dec 04 2018 07:10
@kuujo when not setting multicast, 'group' property in MultipcastConfig may be null in some environment
NettyBroadcastService.Builder will throw NullPointerException
Jordan Halterman
@kuujo
Dec 04 2018 07:52
Got a fix for it? Submit a PR?
miniarak
@miniarak
Dec 04 2018 14:55
Hi! I am trying to build an atomix cluster with 3 nodes. 2 of them start fine. But the last one starts but raises an exception. io.atomix.s torage.StorageException: Failed to acquire storage lock; ensure each Raft server is configured with a distinct storage directory. Can someone explain to me why does causes this error?
Jordan Halterman
@kuujo
Dec 04 2018 17:01
@miniarak according to the message they’re all trying to store data in the same folder on the same node. If you’re running them on the same node then you have to configure the storageDirectory for Raft partitions to be different for each node
Jordan Halterman
@kuujo
Dec 04 2018 18:41
In code it’s .withStorageDirectory on RaftPartitionGroup builders, and in configuration it’s storage.directory
Otherwise they’re all trying to get a lock on the same directory to write the same log files. Of course, in a real cluster with multiple nodes you don’t have this problem.
Also, please join the Slack workspace! Soon I will just start responding to questions with a link to Slack to try to force these threads to move over there.
miniarak
@miniarak
Dec 04 2018 22:11
@kuujo Thank you!...And how do I join the Slack workspace?
Jordan Halterman
@kuujo
Dec 04 2018 22:15
There’s a link above or in the README