c19985244a
This PR makes GetAllocs use a blocking query as well as adding a sanity check to the clients watchAllocation code to ensure it gets the correct allocations. This PR fixes https://github.com/hashicorp/nomad/issues/2119 and https://github.com/hashicorp/nomad/issues/2153. The issue was that the client was talking to two different servers, one to check which allocations to pull and the other to pull those allocations. However the latter call was not with a blocking query and thus the client would not retreive the allocations it requested. The logging has been improved to make the problem more clear as well. |
||
---|---|---|
.. | ||
allocdir | ||
config | ||
driver | ||
fingerprint | ||
getter | ||
stats | ||
structs | ||
testutil | ||
vaultclient | ||
alloc_runner.go | ||
alloc_runner_test.go | ||
client.go | ||
client_test.go | ||
consul_template.go | ||
consul_template_test.go | ||
gc.go | ||
gc_test.go | ||
restarts.go | ||
restarts_test.go | ||
serverlist.go | ||
serverlist_test.go | ||
task_runner.go | ||
task_runner_test.go | ||
util.go | ||
util_test.go |