vmware-archive / haret

A strongly consistent distributed coordination system, built using proven protocols & implemented in Rust.
461 stars 18 forks source link

`vr create namespace` allows creating a namespace with less than 3 pids #59

Closed andrewjstone closed 7 years ago

andrewjstone commented 7 years ago

Namespace creation should fail if there are less than 3 pids given.

ajs@shelbs:~/v2r2$ rlwrap target/debug/v2r2-admin 127.0.0.1:2001
v2r2-admin> cluster join dev2@127.0.0.1@3000
Invalid Pid format - Must be of form 'name@addr'
v2r2-admin> cluster join dev2@127.0.0.1:3000
ok
v2r2-admin> cluster join dev3@127.0.0.1:4000
ok
v2r2-admin> vr create namespace ns1 r::dev1@127.0.0.1:2000
start pid Pid { group: Some("ns1"), name: "r", node: NodeId { name: "dev1", addr: "127.0.0.1:2000" } }
ok