This repository has been archived by the owner. It is now read-only.
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync _security objects on interactive request
We've known for some time that the _security object can occasionally diverge across a cluster. This ends up leading to intermittent client errors as they access different _security settings depending on which node happens to be handling the request. This patch works by opening the _security object for all copies of all shards in the cluster and then checks to see if they are the same object or not. If there is a single version across the cluster then all is well. If two versions exist, and the minority are an empty object, then the majority version is set on all shards in the cluster. Otherwise an error is logged for human intervention.
- Loading branch information
Showing 2 changed files with 85 additions and 0 deletions.