open-nomad/client
Alex Dadgar c19985244a GetAllocs uses a blocking query
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.
2017-01-10 13:30:35 -08:00
..
allocdir Put a logger in AllocDir/TaskDir 2017-01-05 16:31:56 -08:00
config Move chroot building into TaskRunner 2017-01-05 16:31:49 -08:00
driver Fix inconsistent task env setting 2017-01-06 12:19:32 -08:00
fingerprint Fixed namespacing for the cpu arch 2017-01-06 14:23:22 -08:00
getter
stats Added comments 2016-12-20 10:49:48 -08:00
structs Move chroot building into TaskRunner 2017-01-05 16:31:49 -08:00
testutil
vaultclient Comments 2016-10-18 11:36:04 -07:00
alloc_runner.go Add COMPAT comment 2017-01-06 11:39:17 -08:00
alloc_runner_test.go Fix upgrade path for #2132 2017-01-05 16:31:55 -08:00
client.go GetAllocs uses a blocking query 2017-01-10 13:30:35 -08:00
client_test.go Fix fingerprint tests 2017-01-08 13:53:27 -08:00
consul_template.go Always disable renew_token for CT config 2016-11-10 15:16:08 -08:00
consul_template_test.go Allow absolute paths for template sources 2016-11-02 13:04:47 -07:00
gc.go Removing the alloc runner from GC if it is destroyed by the server 2016-12-20 11:14:22 -08:00
gc_test.go Added comments 2016-12-20 10:49:48 -08:00
restarts.go Thread through whether DeriveToken error is recoverable or not 2016-10-22 18:08:30 -07:00
restarts_test.go Thread through whether DeriveToken error is recoverable or not 2016-10-22 18:08:30 -07:00
serverlist.go
serverlist_test.go noServers -> noServersErr 2016-09-26 15:12:35 -07:00
task_runner.go Merge pull request #2164 from hashicorp/b-dispatch 2017-01-09 11:24:46 -08:00
task_runner_test.go Fix tests post rebase 2017-01-06 11:39:13 -08:00
util.go Fix string formatting 2016-12-01 11:22:51 -08:00
util_test.go