Hongchao Deng
0b253b519e
etcd3 compactor: update docs
2016-08-24 16:24:24 -07:00
Hongchao Deng
874cc7f2b6
separate test watch from zero and nonzero
2016-08-23 20:34:39 -07:00
Hongchao Deng
a607a69f4a
pkg/storage: cleanup Codec() from interface
2016-08-15 20:46:13 -07:00
Kubernetes Submit Queue
0da589fa9c
Merge pull request #30197 from hongchaodeng/r1
...
Automatic merge from submit-queue
storage interface: remove Backends()
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30197 )
<!-- Reviewable:end -->
2016-08-10 00:45:29 -07:00
Timothy St. Clair
4adb23c8cc
Update dependency shift from etcd3 changes in latest release.
2016-08-09 08:51:15 -05:00
Hongchao Deng
7f28eda9be
storage interface: remove Backends()
2016-08-07 16:10:18 -07:00
Hongchao Deng
54025ce8b3
etcd3/store: Add test for compact conflict
2016-07-15 10:24:50 -07:00
Hongchao Deng
186b4858b4
better handle etcd compaction in multi-apiserver
2016-07-15 10:24:49 -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
Gyu-Ho Lee
b8740c2c67
pkg/storage/etcd3: remove name field in test
...
Current test gets the name with its test table index,
so there seems to be no reason to have name field in test table.
2016-05-29 02:17:35 -07:00
Hongchao Deng
ae6166f97d
etcd3/compactor: fix logging endpoints
2016-05-20 14:35:42 -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
3144ebc7fc
start etcd compactor in background
2016-05-04 16:01:03 -07:00
Hongchao Deng
84c07b0bbf
etcd3/store: userUpdate error should be returned
2016-05-03 14:42:29 +08:00
Hongchao Deng
c0071a1595
add flags to enable etcd3
2016-04-28 09:48:16 +08:00
Hongchao Deng
b0f4517e65
etcd3/watcher: cancelling context shouldn't return error
2016-04-22 12:23:04 +08:00
k8s-merge-robot
0a5d57a383
Merge pull request #24079 from hongchaodeng/comp
...
Automatic merge from submit-queue
etcd3 store: provide compactor util
What's this PR?
- Provides a util to compact keys in etcd.
Reason:
We want to save the most recent 10 minutes event history. It should be more than enough for slow watchers. It is not number based, so it can tolerate event bursts too. We do not want to save longer since the current storage API cannot take advantage of the multi-version key yet. We might keep a longer history in the future.
2016-04-21 05:19:54 -07:00
Hongchao Deng
2bc022aad4
watcher test: print more info for debugging
2016-04-21 06:56:50 +08:00
Hongchao Deng
46214c60bb
etcd3/store: support TTL in Create, Update
2016-04-19 07:35:59 +08:00
Hongchao Deng
e18b4e67be
etcd3/store: watcher implementation
2016-04-18 21:41:53 +08:00
k8s-merge-robot
5f3f06f0b1
Merge pull request #24022 from hongchaodeng/dep
...
Automatic merge from submit-queue
Bump up etcd dependency to fix data race
ref: https://github.com/kubernetes/kubernetes/pull/23694
What this PR does
- Bumping up the godep of etcd to fix data race in etcd watcher. Without this change, watcher PR builds will fail in race detection.
- Small changes to fix builds after upgrade
2016-04-17 12:01:32 -07:00
Hongchao Deng
9f43a110d9
file rename; refactor
2016-04-16 01:51:29 +08:00
Hongchao Deng
b9745999c9
Decouple etcd node.expiration logic from DeleitonTimestamp
2016-04-13 15:11:53 -07:00
Hongchao Deng
ab9ac70e56
etcd3 store: provide compactor util
2016-04-09 11:01:27 -07:00
Hongchao Deng
71b46f3f57
fix build
2016-04-07 19:22:28 -07:00
Hongchao Deng
00ddf0671d
etcd (v3) store: implements KV methods of storage.Interface
...
This implements Get(), Create(), Delete(), GetToList(),
List(), GuaranteedUpdate().
2016-03-30 10:20:39 -07:00