You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you restart a cluster without a stateboard, not a single instance could fetch a leader information and everyone will be read-only.
If you try to join an instance, it'll fail.
But there's another real problem: the same error arise when a leader isn't first in failover priority list.
Steps to reproduce:
Start 3 unconfigured instances and a stateboard
Compose a replicaset of two instances (3301 and 3302) with 3301 in top of failover priority list
Enable stateful failover
Promote the second instance (3302)
Try to join the third instance (3303) to the same replicaset
Result:
I> bootstrapping replica from 4c4c9e4a-bdf9-4250-bb59-200155272620 at 127.0.0.1:3301
E> ER_READONLY: Can't modify data because this instance is in read-only mode.
localleader_uuid=leaders_order[1] -- !!!!! with stateful failover it's not always a leaderlocalleader=topology_cfg.servers[leader_uuid]
box_opts.replication= {pool.format_uri(leader.uri)}
box.cfg(box_opts)
After some admin actions on new cluster, I cant reboot the whole cluster.
Seems that somehow it's possible to make several masters, while one of them still not bootstraped.
The results
repro.tar.gz
The text was updated successfully, but these errors were encountered: