Hongchao Deng
874cc7f2b6
separate test watch from zero and nonzero
2016-08-23 20:34:39 -07:00
Wojciech Tyczynski
1d9bc58328
Extend Filter interface with Trigger() and use it for pods and nodes
2016-07-13 08:45:18 +02:00
Wojciech Tyczynski
7f7ef0879f
Change filter to interface in storage.Interface
2016-07-13 08:44:22 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Hongchao Deng
cd3f7f41c1
etcd3/watcher: refactor test
2016-05-10 12:37:31 -07:00
Hongchao Deng
da7e9783e8
etcd3/watcher: Event.Object should have the same rev as etcd delete
...
instead of previous object's revision.
2016-05-10 10:53:53 -07:00
Hongchao Deng
97f4647dc3
etcd3/watcher: fix goroutine leak if ctx is canceled
...
In reflector.go, it could probably call Stop() without retrieving all results
from ResultChan().
A potential leak is that when an error has happened, it could block on resultChan,
and then cancelling context in Stop() wouldn't unblock it.
This fixes the problem by making it also select ctx.Done and cancel context
afterwards if error happened.
2016-05-09 09:06:11 -07:00
Hongchao Deng
b0f4517e65
etcd3/watcher: cancelling context shouldn't return error
2016-04-22 12:23:04 +08:00
Hongchao Deng
2bc022aad4
watcher test: print more info for debugging
2016-04-21 06:56:50 +08:00
Hongchao Deng
e18b4e67be
etcd3/store: watcher implementation
2016-04-18 21:41:53 +08:00