These are chat archives for atomix/atomix

19th
Jun 2018
FKrack
@FKrack
Jun 19 2018 10:49

I have a problem to start the AtomixAgent. I always get the ConfigurationException Failed to locate system partition group. I start the Agent with java -cp bin/* io.atomix.agent.AtomixAgent -c atomix.yaml node1@localhost:5001 or with java -cp bin/* io.atomix.agent.AtomixAgent -c atomix.conf node1@localhost:5001. The exception occurs in both variants.

The atomix.conf looks like this:

cluster {
 name: test
 members.1 {
    id: node1
    address: "localhost:5001"
  }
  members.2 {
    id: node2
    address: "localhost:5002"
  }
  members.3 {
    id: node3
    address: "localhost:5003"
  }
}

managementGroup {
  type: raft
  partitions: 1
  dataDirectory: target/test-logs/system
  members: [node1, node2, node3]
}

partitionGroups.raft {
  type: raft
  storageLevel: memory
  partitions: 7
  partitionSize: 3
  dataDirectory: target/test-logs/raft
  members: [node1, node2, node3]
}

partitionGroups.data {
  type: primary-backup
  partitions: 7
}

primitives.test {
  type: map
  cacheEnabled: true
  protocol {
    type: multi-raft
    group: raft
  }
}

And the yaml file looks like this:

cluster:
  name: test
  members:
    - id: node1
      address: localhost:5001
    - id: node2
      address: localhost:5002
    - id: node3
      address: localhost:5003
management-group:
  type: raft
  partitions: 1
  data-directory: target/test-logs/system
  members:
    - node1
    - node2
    - node3
partition-groups:
  raft:
    type: raft
    storage-level: memory
    partitions: 7
    partition-size: 3
    data-directory: target/test-logs/core
    members:
      - node1
      - node2
      - node3
  data:
    type: multi-primary
    partitions: 7
primitives:
  test:
    type: consistent-map
    cache-enabled: true

I would appreciate it if you could tell me what I am doing wrong.

FKrack
@FKrack
Jun 19 2018 10:54
This is the exception:
Exception in thread "main" java.util.concurrent.CompletionException: io.atomix.utils.config.ConfigurationException: Failed to locate system partition group
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
        at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
        at java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:614)
        at java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:1983)
        at io.atomix.primitive.partition.impl.DefaultPartitionGroupMembershipService.start(DefaultPartitionGroupMembershipService.java:300)
        at io.atomix.primitive.partition.impl.DefaultPartitionService.start(DefaultPartitionService.java:137)
        at io.atomix.core.Atomix.lambda$startServices$4(Atomix.java:446)
        at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
        at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: io.atomix.utils.config.ConfigurationException: Failed to locate system partition group
        at io.atomix.primitive.partition.impl.DefaultPartitionGroupMembershipService.lambda$bootstrap$5(DefaultPartitionGroupMembershipService.java:187)
        at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
        at java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:778)
        at java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2140)
        at io.atomix.utils.concurrent.AtomixFuture.whenComplete(AtomixFuture.java:281)
        at io.atomix.primitive.partition.impl.DefaultPartitionGroupMembershipService.bootstrap(DefaultPartitionGroupMembershipService.java:184)
        ... 13 more
Thank you!
FKrack
@FKrack
Jun 19 2018 12:09
I am using the 3.0.0-rc1