Closed linehrr closed 6 years ago
discard, protocol builder has an option, but it's just not very clear in the document.
val protocol = MultiRaftProtocol.builder("raft") // here you can specify the group name
.withReadConsistency(ReadConsistency.LINEARIZABLE)
.build()
Expected behavior
when Atomix cluster is configured with multiple primitive groups, it should give option to choose which group user wants to create primitive on. same for getting the primitives, so user can specify not just the primitive name, but also the primitive group
Actual behavior
when multiple primitive groups are configured, getting primitives by name will throw exception:
Steps to reproduce
setup Atomix cluster
create a queue with some specific protocol
get queue primitive from another node afterwards
Environment
3.0.5
15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64 x86_64
java version "1.8.0_162"