Sam Rijs
896719c877
raft: use configured logger in raft/node.go
...
Those three log statements in node.go have not been using the logger that was passed via `raft.Config`, but instead the default raft logger. This changes it to use the proper logger.
2016-01-25 00:15:44 +11:00
Anthony Romano
5099bf6f7a
Merge pull request #4269 from heyitsanthony/v3-reject-put-bogus-lease
...
etcdserver: return error when putting a key with a bad lease id
2016-01-22 21:25:17 -08:00
Anthony Romano
9572197aee
etcdserver: return error when putting a key with a bad lease id
2016-01-22 20:47:31 -08:00
Gyu-Ho Lee
5a9f81b198
Merge pull request #4267 from gyuho/govet
...
pkg/testutil: fix unreachable govet complain
2016-01-22 15:33:55 -08:00
Gyu-Ho Lee
0d646a25ee
pkg/testutil: fix unreachable go tool vet complain
2016-01-22 15:16:35 -08:00
Gyu-Ho Lee
c21d87354e
Merge pull request #4266 from gyuho/minor_govet
...
integration: minor govet shadow fix
2016-01-22 14:43:13 -08:00
Gyu-Ho Lee
5e4113374b
integration: minor govet shadow fix
2016-01-22 14:40:21 -08:00
Gyu-Ho Lee
53d6aede82
Merge pull request #3889 from gyuho/raft_doc.go_20151118
...
raft: doc, debugging instruction on MessageType
2016-01-22 14:22:49 -08:00
Anthony Romano
6c240b4037
Merge pull request #4262 from heyitsanthony/v3-lease-watch-expire
...
storage: publish delete events on lease revocation
2016-01-22 14:09:19 -08:00
Anthony Romano
ae05c87c2f
Merge pull request #4238 from heyitsanthony/v3-recipes
...
contrib: v3 recipes
2016-01-22 14:08:21 -08:00
Anthony Romano
b07900ae03
contrib: v3 recipes
...
Concurrency recipes using the V3 API (sans leases).
2016-01-22 13:46:22 -08:00
Anthony Romano
5a967eb2a0
storage: publish delete events on lease revocation
2016-01-22 13:40:55 -08:00
Anthony Romano
53def2dc5e
Merge pull request #4260 from heyitsanthony/v3-lease-forward-keepalive
...
lease: forward lease keepalive to leader
2016-01-22 12:53:17 -08:00
Anthony Romano
2e157530a0
etcdhttp, lease, v3api: forward keepalives to leader
...
keepalives don't go through raft so let follower peers announce
keepalives to the leader through the peer http handler
2016-01-22 12:40:40 -08:00
Anthony Romano
be7d573366
lease: store server-decided TTL in lease
...
If actual TTL is not stored in lease, the client will receive the correct
TTL and therefore won't be able to keepalive correctly.
2016-01-22 11:44:12 -08:00
Anthony Romano
2b54c5a977
Merge pull request #4253 from heyitsanthony/v3-lease-grant-consistency
...
lease: grant consistent lease IDs
2016-01-22 11:10:12 -08:00
Anthony Romano
9113a27bde
lease: grant consistent lease IDs
...
When raft broadcasts a Grant to all nodes, all nodes must
agree on the same lease ID. Otherwise, attaching a key to
a lease will fail since the lease ID is node-dependent.
2016-01-22 09:43:39 -08:00
Gyu-Ho Lee
6413c96024
Merge pull request #4254 from gyuho/check_wait
...
client: do not timeout when wait is true
2016-01-21 18:59:03 -08:00
Gyu-Ho Lee
bbb7fb5a46
client: do not timeout when wait is true
...
Current V2 watch waits by encoding URL with wait=true.
When a client sets 'no-sync', it requests directly to
proxy and the proxy redirects it by cloning the request
object, which leads to cancel the original request when
it times out and the cloned request gets closed prematurely.
This fixes coreos#3894 by querying
the original client request in order to not use context timeout
when 'wait=true'.
2016-01-21 18:45:15 -08:00
Gyu-Ho Lee
1db0148ffd
Merge pull request #4252 from gyuho/client_doc
...
*: move EndpointSelection doc to godoc
2016-01-21 10:02:32 -08:00
Gyu-Ho Lee
2a3bd01f58
*: move EndpointSelection doc to godoc
...
This merges two redundant documentation into one.
2016-01-21 09:48:05 -08:00
Gyu-Ho Lee
6eb0b35ed3
Merge pull request #4231 from mitake/go-client-doc
...
Documentation: add a doc for using the go client library
2016-01-21 00:46:14 -08:00
Hitoshi Mitake
e196a0e8d2
Documentation: add a doc for using the go client library
...
This commit adds a document that provides tips of how to use the go
client library. Currently it describes how to use the
client.SelectionMode parameter that is added in
https://github.com/coreos/etcd/pull/4030 .
2016-01-21 17:31:36 +09:00
Anthony Romano
1ec71c1cdc
Merge pull request #4250 from mitake/ls-quorum
...
etcdctl: add an option to ls for consistent result
2016-01-20 21:15:35 -08:00
Hitoshi Mitake
cae0577619
etcdctl: add an option to ls for consistent result
...
Like the commit 11f49a09605b, this commit adds a new option "--quorum"
to etcdctl ls command. It is required for obtaining a consistent
result.
2016-01-21 14:03:10 +09:00
Gyu-Ho Lee
5184260907
Merge pull request #4249 from gyuho/minor_typo
...
*: minor typos, kill TODOs
2016-01-20 16:25:18 -08:00
Gyu-Ho Lee
835d824965
*: minor typos, kill TODOs
2016-01-20 16:21:39 -08:00
Gyu-Ho Lee
cd323e0ec8
Merge pull request #4242 from gyuho/unsynced_multi
...
integration: TestV3WatchMultipleEventsPutUnsynced
2016-01-20 15:39:49 -08:00
Gyu-Ho Lee
39116e2e20
integration: TestV3WatchMultipleEventsPutUnsynced
2016-01-20 15:31:13 -08:00
Gyu-Ho Lee
d26b1460c5
Merge pull request #4248 from gyuho/rest_of_unsynced_test
...
integration: add more tests for unsynced watch
2016-01-20 12:32:08 -08:00
Gyu-Ho Lee
96f646c586
integration: add more tests for unsynced watch
...
For https://github.com/coreos/etcd/issues/4216 .
2016-01-20 12:13:58 -08:00
Gyu-Ho Lee
6a43aa28fe
Merge pull request #4247 from gyuho/unsynced_cancel
...
integration: cancel operation for unsynced watcher
2016-01-20 11:47:31 -08:00
Gyu-Ho Lee
8c40232198
integration: cancel operation for unsynced watcher
...
Related https://github.com/coreos/etcd/issues/4216 .
2016-01-20 11:28:31 -08:00
Gyu-Ho Lee
092879291f
Merge pull request #4228 from mitake/procfile-pprof
...
Procfile: enable pprof in Procfiles
2016-01-19 22:33:37 -08:00
Gyu-Ho Lee
72195afbc9
Merge pull request #4237 from gyuho/multi_stream
...
integration: add TestV3WatchMultipleStreams
2016-01-19 14:37:33 -08:00
Gyu-Ho Lee
12362d292d
integration: add TestV3WatchMultipleStreams
...
Related https://github.com/coreos/etcd/issues/4216 .
2016-01-19 14:27:14 -08:00
Gyu-Ho Lee
d2e35f68f9
Merge pull request #4235 from gyuho/watch_multi_synced
...
integration: watch test for multi-events with txn
2016-01-19 14:00:58 -08:00
Anthony Romano
a571f83343
Merge pull request #4232 from heyitsanthony/test-fmt-first
...
test: test fmt before running unit tests
2016-01-19 13:47:09 -08:00
Gyu-Ho Lee
166055b443
integration: watch test for multi-events with txn
...
Related to https://github.com/coreos/etcd/issues/4216 .
2016-01-19 13:47:09 -08:00
Anthony Romano
de765ac7dd
Merge pull request #4236 from heyitsanthony/fix-watch-test-race
...
integration: fix race in WatchFromCurrentRevision
2016-01-19 12:50:23 -08:00
Anthony Romano
7e0a5b8ed7
integration: fix race in WatchFromCurrentRevision
...
Since watching from current revision, keys should be put after the
watcher is registered or the test may time out. Shows up in CI.
2016-01-19 12:30:49 -08:00
Anthony Romano
63197782ea
test: trigger formatting tests before unit tests
...
Don't waste time running full unit tests only to fail CI over fmt or vet.
2016-01-19 11:39:39 -08:00
Anthony Romano
7d9a88a687
test: refactor sorts of tests into separate functions
2016-01-19 11:39:31 -08:00
Hitoshi Mitake
882d63226d
Procfile: enable pprof in Procfiles
...
Procfiels are used for development purpose. So enabling pprof in
default would be confortable for developers.
2016-01-18 15:18:57 +09:00
Anthony Romano
9ca3c8e581
Merge pull request #4224 from heyitsanthony/v3-rangereq-more-flag
...
support V3 rangereq more flag and revision request flag
2016-01-17 22:16:33 -08:00
Anthony Romano
05531b4600
integration: test v3 RangeRequest
2016-01-17 22:03:08 -08:00
Anthony Romano
ccfd68a251
etcdserver: support Revision option in v3 RangeRequest
2016-01-17 21:45:22 -08:00
Anthony Romano
8df3f0c545
etcdserver: support 'More' flag for v3 RangeRequest
2016-01-17 21:45:22 -08:00
Gyu-Ho Lee
1090320bb2
Merge pull request #4227 from gyuho/wait_response
...
integration: use WaitResponse for watch tests
2016-01-17 16:32:32 -08:00
Gyu-Ho Lee
f9b505ae56
integration: use WaitResponse for watch tests
2016-01-17 14:11:30 -08:00