Hi,
There were some thoughts to send and check the database id (if I'm not
mistaken its called dbid) when servers connect to each other, which should
be different for different zookeepers. It shouldn't be difficult to add, if
you'd like to work on it.
Alex
On Wed, Sep 9, 2015 at 11:04 AM, Benjamin Jaton <benjamin.jaton@gmail.com>
wrote:
> Hi,
>
> First I build a 3 nodes cluster (A,B,C) with zk.reconfig commands.
>
> Now we stop the all the ZK, and we make a new cluster (A,B,D) configured
> with the same ports.
>
> In that scenario, if you start C, it will join the ensemble, becoming
> (A,B,C,D).
> The problem is that it's not the same ensemble, C shouldn't have been
> allowed to join the new ensemble.
>
> Is there a way to prevent this from happening? (even if it's hacky)
>
> Thanks,
> Ben
>
|