Matt Keeler
4858aa6be4
Add RunWithConfig and put Run signature back to normal
2018-05-31 20:22:14 -04:00
Matt Keeler
365e8d11ee
Allow passing in a config to the watch plan to use when creating the API client
...
This allows watches from consul agent config (rather than consul watch command) to be able to utilize HTTPs
2018-05-31 17:07:36 -04:00
Guido Iaquinti
244fc72b05
Add package name to log output
2018-03-21 15:56:14 +00:00
Preetha Appan
82bf05c888
Fix socket file handle leaks from old blocking queries upon consul reload. This fixes issue #3018
2017-06-26 15:52:03 -05:00
James Phillips
4b85d33ef1
Fixes watch tracking during reloads and fixes address issue. ( #3189 )
...
This patch fixes watch registration through the config file and a broken log line when the watch registration fails. It also plumbs all the watch loading through a common function and tweaks the
unit test to create the watch before the reload.
2017-06-24 12:52:41 -07:00
James Phillips
d8c21afa35
Merge pull request #2621 from alicebob/devwatch
...
reset watch's lastIndex on error
2017-06-02 09:06:02 -07:00
Frank Schroeder
f50d6871f9
golint: No stutter
2017-04-25 09:26:13 -07:00
Harmen
bb41934230
reset the watch index when somehow the index goes backwards
2017-01-17 09:02:53 +01:00
Harmen
10cca4f9ca
reset index to 0, not to 1
2017-01-17 09:02:49 +01:00
Harmen
0d550ff4b8
reset watch's lastIndex on error
...
When a -dev agent is restarted it'll have a clean state, including a
reset index. A watch() will reconnect after a restart, but it won't
notice that the index counter has reset and it will keep waiting until
we reached the old index again, which is wrong. Resetting the index will
prevent that and makes watch work for -dev agents.
2016-12-29 21:58:46 +01:00
Ryan Uber
5172b21ee8
api: initial import from armon/consul-api
2015-01-06 10:40:00 -08:00
Armon Dadgar
4e3ca1a785
watch: Fixing bug with null keys
2014-08-21 17:24:20 -07:00
Armon Dadgar
f82a38ab12
agent: First pass at agent-based watches
2014-08-21 13:09:13 -07:00
Armon Dadgar
47cb44683d
watch: Remove DSL in place of JSON
2014-08-21 11:38:44 -07:00
Armon Dadgar
d47c60daf4
watch: Set the ACL token
2014-08-20 16:45:37 -07:00
Armon Dadgar
07d36ec60a
watch: test key watch
2014-08-20 15:18:08 -07:00
Armon Dadgar
ffddd2b300
watch: Testing plan execution
2014-08-20 13:45:34 -07:00