summaryrefslogtreecommitdiffstats
path: root/application-preprocessor
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-01-03 13:54:40 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2022-01-03 13:54:40 +0000
commit831cd97c7ef749ba486e524122a90e1513a139fd (patch)
treefea066f3c11c793ac33fb577ce4303ea14464458 /application-preprocessor
parent1f3e5d1003a33d9a7076575eab8059c582611cdb (diff)
Invalidate bucket DB replica statistics upon recovery mode entry
The replica stats track the minimum replication factor for any bucket for a given content node the distributor maintains buckets for. These statistics may be asynchronously queried by the cluster controller through the host info reporting API. If we do not invalidate the statistics upon a cluster state change, there is a very small window of time where the distributor may potentially report back _stale_ statistics that were valid for the _prior_ cluster state version but not for the new one. This can happen if the cluster controller fetches host info from the node in between start of the recovery period and the completion of the recovery mode DB scan. Receiving stale replication statistics may cause the cluster controller to erroneously believe that replication due to node retirements etc has completed earlier than it really has, possibly impacting orchestration decisions in a sub- optimal manner.
Diffstat (limited to 'application-preprocessor')
0 files changed, 0 insertions, 0 deletions