Closed andy-yx-chen closed 5 years ago
Hi @andy-yx-chen , we also have leadership expiration.
Please note that (I remember we also had discussion through e-mail a few months ago), at least in eBay's use cases, just denying requests is not enough. Other service components behave differently according to the role of node (e.g. query type, admin operations), thus leader should step down itself immediately if it detects this kind of isolation.
There is an optimization in cornerstone that introduces leader expiration to prevent a node thinks itself as a leader forever if it's isolated, see this, do you want to port it?