Failover failed because of sequence is 0
#340 is good, but when an instance has never had any data written to it (so its sequence number is 0), performing a failover operation will fail.
@ninuxer Yes, perhaps we could provide a switch to disable this restriction.
@git-hulk Could we retrieve the sequence of the master node within the store/cluster_shard.go: getNewMasterNodeIndex function? If the master's sequence is also 0, it means that no data has ever been written to this shard, and in this case, we can skip the validation of the slave node's sequence is 0.
@ninuxer It's a good way to avoid this situation when the master is still alive.