Xiang Li
d883d5acd3
storage: support seq put to make db more compact
2016-03-15 16:36:36 -07:00
Anthony Romano
6650db53a4
Merge pull request #4733 from heyitsanthony/backend-alignment
...
storage/backend: align fields used for atomic ops
2016-03-09 11:42:55 -08:00
Anthony Romano
dd01ab6dc0
storage/backend: align fields used for atomic ops
...
Fixes crashes on 32-bit tests.
2016-03-09 11:17:27 -08:00
Xiang Li
6cf4c4b3fd
backend: fix TestBackendClose by giving more time to wait for io
2016-03-09 09:44:16 -08:00
Anthony Romano
5f304b4dee
*: build phony etcd server binary for unsupported architectures
...
We don't qualify etcdserver for anything other than amd64, so don't
build binaries that are untested and might be unreliable.
2016-03-08 13:12:11 -08:00
Xiang Li
e9be0415fd
Merge pull request #4703 from xiang90/future_watch
...
*: support watch from future revision
2016-03-07 11:31:12 -08:00
Xiang Li
036ed87c6d
*: support watch from future revision
2016-03-07 10:57:30 -08:00
Gyu-Ho Lee
50fd9d3b57
storage: fix minor typos
2016-03-06 17:05:02 -08:00
Anthony Romano
713f7c056f
storage: use creation revision to compute txn event types
...
Fixes #4688
2016-03-05 19:03:07 -08:00
Xiang Li
9143329c85
storage: implement requestProgress
2016-03-03 09:39:29 -08:00
Xiang Li
558640d91e
backend: support shrink db
2016-03-02 14:35:28 -08:00
Anthony Romano
c0eac7ab72
storage: support watch on ranges
2016-02-29 15:20:41 -08:00
Hongchao Deng
6d32e44b0c
kv.proto: docs fix on watch event of DELETE/EXPIRE
2016-02-25 13:51:38 -08:00
Anthony Romano
afa0368dcc
*: fix godoc bugs in interfaces and slice fields
...
detected with goword
2016-02-24 00:45:40 -08:00
Anthony Romano
c5b51946eb
*: exported godoc fixups
2016-02-21 20:36:44 -08:00
Hongchao Deng
93795745b0
storage: add watch event docs for create case
2016-02-18 13:58:36 -08:00
Anthony Romano
7c17665a1a
storage: limit total unique revisions in unsynced watcher event list
2016-02-18 11:36:22 -08:00
Anthony Romano
ef2d3feca6
Merge pull request #4528 from heyitsanthony/fix-watchcurrev
...
fix several watcher races
2016-02-17 14:26:33 -08:00
Anthony Romano
af225e7433
v3rpc: don't race on current watcher header revision
2016-02-17 14:03:52 -08:00
Anthony Romano
2cbf7cf6d1
storage: do not send outdated events to unsynced watchers
2016-02-17 14:03:51 -08:00
Gyu-Ho Lee
449c116a44
storage: shadowed err var fix at go-tip
2016-02-14 19:49:03 -08:00
Anthony Romano
ee1a03167d
storage, v3: pass compaction revision through watchresponse
2016-02-12 14:06:59 -08:00
Xiang Li
30c11c1bca
*: support local range request
2016-02-12 12:04:06 -08:00
Anthony Romano
9cd45312d5
Merge pull request #4505 from heyitsanthony/v3-range-ge
...
storage: support ranges for >= key
2016-02-12 10:03:45 -08:00
Anthony Romano
4854d7f69d
storage: support ranges for >= key
...
If end == "", range(key, end) will give all keys >= key.
2016-02-12 09:45:43 -08:00
Hongchao Deng
c27a4a1d3d
kv.proto: docs of create_revision, mod_revision
2016-02-11 18:25:46 -08:00
Xiang Li
40c598cfa6
Merge pull request #4494 from xiang90/sched
...
*: fix schedule.Wait race
2016-02-11 15:56:01 -08:00
Xiang Li
bfa5e310a9
*: detach keys from leases
...
1. deatch when a key is removed
2. deatch when the key's lease changes
3. potentially deatch when restroing a tombstone key
2016-02-11 15:31:25 -08:00
Xiang Li
870e4c2681
*: fix schedule.Wait race
2016-02-11 15:21:33 -08:00
Xiang Li
d314345e6d
*: add a scheduler and use it to schedule compaction
2016-02-10 14:27:08 -08:00
Xiang Li
26c645f049
storage/backend: set initial db size to avoid potential deadlock
2016-02-05 11:29:16 -08:00
Xiang Li
b09214df32
storage: update watch.cur and fix tests
2016-02-03 00:54:07 -08:00
Xiang Li
52416fafb0
storage: send compaction
2016-02-02 23:17:27 -08:00
Xiang Li
5780497e18
storage: remove unncessary handle func
2016-02-02 23:02:15 -08:00
Xiang Li
ae5161382b
storage: release tx lock until finish using the readonly bytes
...
The backend will return read only bytes that are only vaild while
the tx is open. We should hold the lock until we get a full copy
by unmarshal.
2016-02-02 22:49:05 -08:00
Xiang Li
31c0c5181a
storage: make unsync a watcherSetByKey
2016-02-02 20:09:35 -08:00
Xiang Li
8dc6248aa7
storage: add set delete
2016-02-02 19:28:42 -08:00
Xiang Li
810c3e74a8
storage: remove unnecessary abstraction
2016-02-02 19:15:46 -08:00
Xiang Li
e5b35b82c5
storage: add watchSet and watchSetByKey type
2016-02-02 18:56:36 -08:00
Anthony Romano
20461ab11a
*: fix many typos
2016-01-31 21:42:39 -08:00
Xiang Li
4ba1ec6a4d
Merge pull request #4363 from xiang90/watch
...
storage: simplify watch store
2016-01-31 16:49:44 -08:00
Xiang Li
611751aee2
storage: simplify watch store
...
We decided that we will not support modifing the same
key in one txn multiple times. That can simlify the current
code/design a lot.
2016-01-31 16:33:07 -08:00
Gyu-Ho Lee
f6215574f2
*: kv range to return current revision
...
This changes the behavior of KV's range and tx range to return
current revision rather than range revision. This makes populating
range response header easier.
2016-01-30 17:37:34 -08:00
Gyu-Ho Lee
a35d5889f6
*: update gRPC, proto interface
2016-01-26 17:41:39 -08:00
Xiang Li
128b5e7387
etcdserver: check invalid range in txn
2016-01-25 20:21:17 -08:00
Anthony Romano
5a967eb2a0
storage: publish delete events on lease revocation
2016-01-22 13:40:55 -08:00
Gyu-Ho Lee
835d824965
*: minor typos, kill TODOs
2016-01-20 16:21:39 -08:00
Anthony Romano
ecba9b61cf
storage: start initial revision at 1
...
When the start revision was 0, there was no way to safely watch
starting from the first store revision.
2016-01-14 17:05:56 -08:00
Gyu-Ho Lee
497bbd3010
*: FatalStack to stacktrace tests after timeout
...
Related to https://github.com/coreos/etcd/issues/4065 .
2016-01-14 10:20:14 -08:00
Xiang Li
2eac21ae0a
Merge pull request #4210 from xiang90/fix_panic
...
storage: fix panic in test
2016-01-14 08:05:46 -08:00