diff options
author | Tor Brede Vekterli <vekterli@vespa.ai> | 2024-01-26 13:01:46 +0100 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@vespa.ai> | 2024-01-26 14:31:37 +0100 |
commit | ac1f180cb7524da83bb4fbd18933b73c087cf4b6 (patch) | |
tree | 343eb81e069fcec1f9e10f71ad6bffd060976ce3 /vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource | |
parent | 8dc79844053124419d3f217e904f3473483b9da2 (diff) |
Use stored entry count rather than bucket count for (dis-)allowing permanent node down edge
The stored entry count encompasses both visible documents and
tombstones. Using this count rather than bucket count avoids any
issues where a node only containing empty buckets (i.e. no actual
data) is prohibited from being marked as permanently down.
Entry count is cross-checked with the visible document count;
if the former is zero, the latter should always be zero as well.
Since entry/doc counts were only recently introduced as part of
the HostInfo payload, we have to handle the case where these do
not exist. If entry count is not present, the decision to allow
or disallow the transition falls back to the bucket count check.
Diffstat (limited to 'vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource')
0 files changed, 0 insertions, 0 deletions