open-nomad/api
Michael Schurter f8884d8b52
client/metadata: fix crasher caused by AllowStale = false (#16549)
Fixes #16517

Given a 3 Server cluster with at least 1 Client connected to Follower 1:

If a NodeMeta.{Apply,Read} for the Client request is received by
Follower 1 with `AllowStale = false` the Follower will forward the
request to the Leader.

The Leader, not being connected to the target Client, will forward the
RPC to Follower 1.

Follower 1, seeing AllowStale=false, will forward the request to the
Leader.

The Leader, not being connected to... well hoppefully you get the
picture: an infinite loop occurs.
2023-03-20 16:32:32 -07:00
..
contexts
internal/testutil
acl.go
acl_test.go
agent.go
agent_test.go
allocations.go
allocations_exec.go
allocations_test.go
api.go
api_test.go
compose_test.go
constraint.go
constraint_test.go
consul.go
consul_test.go
csi.go
csi_test.go
deployments.go
evaluations.go
evaluations_test.go
event_stream.go
event_stream_test.go
fs.go
fs_test.go
go.mod
go.sum
ioutil.go
ioutil_test.go
jobs.go
jobs_test.go
keyring.go
keyring_test.go
namespace.go
namespace_test.go
node_meta.go
node_meta_test.go
nodes.go
nodes_test.go
operator.go
operator_autopilot.go
operator_ent_test.go
operator_metrics.go
operator_metrics_test.go
operator_test.go
quota.go
quota_test.go
raw.go
recommendations.go
regions.go
regions_test.go
resources.go
resources_test.go
scaling.go
scaling_test.go
search.go
search_test.go
sentinel.go
sentinel_test.go
services.go
services_test.go
status.go
status_test.go
system.go
system_test.go
tasks.go
tasks_test.go
util_test.go
utils.go
utils_test.go
variables.go
variables_test.go