These are chat archives for atomix/atomix

20th
Sep 2018
william.z
@zwillim
Sep 20 2018 01:51

Hi,all. I wanted to use atomix in my project, but it froze when starting...
These are logs before frozen.

09:42:40.998 [atomix-cluster-0] INFO  i.a.c.d.BootstrapDiscoveryProvider - Joined
09:42:41.001 [atomix-cluster-0] INFO  i.a.c.i.DefaultClusterMembershipService - 10.136.120.29:9981 - Member activated: Member{id=10.136.120.29:9981, address=ADDR-0014:9981, properties={}}
09:42:41.003 [atomix-cluster-0] INFO  i.a.c.i.DefaultClusterMembershipService - Started
09:42:41.003 [atomix-cluster-0] INFO  i.a.c.m.i.DefaultClusterCommunicationService - Started
09:42:41.004 [atomix-cluster-0] INFO  i.a.c.m.i.DefaultClusterEventService - Started
09:42:41.012 [atomix-0] INFO  i.a.p.p.i.DefaultPartitionGroupMembershipService - Started
09:42:41.020 [atomix-0] DEBUG io.atomix.utils.serializer.Namespace - (no name): class io.atomix.primitive.partition.GroupMember already registered as 502. Skipping 553.
09:42:41.020 [atomix-0] DEBUG io.atomix.utils.serializer.Namespace - (no name): class io.atomix.cluster.MemberId already registered as 503. Skipping 554.
09:42:41.020 [atomix-0] DEBUG io.atomix.utils.serializer.Namespace - (no name): class io.atomix.primitive.partition.MemberGroupId already registered as 504. Skipping 555.
09:42:41.020 [atomix-0] DEBUG io.atomix.utils.serializer.Namespace - (no name): class io.atomix.primitive.partition.PartitionId already registered as 505. Skipping 556.
09:42:41.024 [atomix-0] INFO  i.a.p.p.i.HashBasedPrimaryElectionService - Started
09:42:41.035 [atomix-0] DEBUG i.a.p.p.i.HashBasedPrimaryElection - 10.136.120.29:9981 - Recomputed term for partition PartitionId{id=1, group=system}: PrimaryTerm{term=1, primary=GroupMember{memberId=10.136.120.29:9981, groupId=10.136.120.29:9981}, candidates=[]}
09:42:41.060 [atomix-0] DEBUG i.a.p.b.p.i.PrimaryBackupPartitionServer - Successfully started server for PartitionId{id=1, group=system}
09:42:41.063 [atomix-0] DEBUG i.a.p.b.p.i.PrimaryBackupPartitionClient - Successfully started client for PartitionId{id=1, group=system}
09:42:41.064 [atomix-0] INFO  i.a.p.b.p.PrimaryBackupPartitionGroup - Started
09:42:41.075 [atomix-0] DEBUG i.a.p.s.impl.RecoveringSessionClient - SessionClient{system-partition-1} - Opening proxy session

And These are the code

        AtomixBuilder builder = Atomix.builder();
        builder.withMemberId(host).withAddress(host);
        builder.withMembershipProvider(new BootstrapDiscoveryProvider(cluster.stream()
                .map(n -> Node.builder().withId(n)
                .withAddress(n).build())
                .collect(Collectors.toList())));
        builder.withProfiles(Profile.dataGrid());
        atomix = builder.build();
        atomix.start().join();

I'm confused what is happening...