diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-01-03 14:15:44 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-01-03 14:56:49 +0000 |
commit | 225323f025b0ba5aae956f4c80e071b7d159278d (patch) | |
tree | 4935f90ff7e63891f1beb0a16194ac3009c9322b /vespa_jersey2 | |
parent | 831cd97c7ef749ba486e524122a90e1513a139fd (diff) |
Make host info cluster state version reporting correct for deferred state bundles
If an application uses deferred cluster state activations, do not report
back a given cluster state version as being in use by the node until the
state version has been explicitly activated by the cluster controller.
This change is due to the fact that the replication invalidation happens
upon recovery mode entry, and for deferred state bundles this takes place
when a cluster state is _activated_, not when the distributor is otherwise
done gathering bucket info (for a non-deferred bundle the activation happens
implicitly at this point). If the state manager reports that the new cluster
state is in effect even though it has not been activated, the cluster
controller could still end up using stale replication stats, as the invalidation
logic has not yet run at this point in time.
The cluster controller will ignore any host info responses for older
versions, so any stale replication statistics should not be taken into
account with this change.
Diffstat (limited to 'vespa_jersey2')
0 files changed, 0 insertions, 0 deletions