Jonathan Boulle
89eac70d09
proxy: add docstrings
2014-11-05 10:30:05 -08:00
Jonathan Boulle
58b171b3e5
Merge pull request #1610 from jonboulle/discovery_docs
...
discovery: add clarifying docstrings
2014-11-04 19:38:59 -08:00
Jonathan Boulle
bb84aaebaf
discovery: add clarifying docstrings
2014-11-04 17:02:33 -08:00
Jonathan Boulle
ab00d23cd3
Merge pull request #1608 from jonboulle/flags
...
pkg: move to more generic StringsFlag
2014-11-04 16:53:48 -08:00
Jonathan Boulle
5de9d38cc6
pkg: move to more generic StringsFlag
2014-11-04 16:52:56 -08:00
Jonathan Boulle
d36f09d643
Merge pull request #1602 from jonboulle/bump_timeout
...
integration: bump timeout for good path
2014-11-04 16:52:44 -08:00
Xiang Li
f71c247d87
Merge pull request #1604 from xiangli-cmu/fallback_proxy
...
*: support discovery fallback
2014-11-04 16:41:28 -08:00
Xiang Li
71acd0c3d0
discovery: consolidate proxyDiscover and Discover interface
2014-11-04 16:38:05 -08:00
Jonathan Boulle
288624550e
Merge pull request #1581 from jonboulle/log_changes
...
No logs when members added/removed from cluster
2014-11-04 15:13:12 -08:00
Jonathan Boulle
e4d0c25365
etcdserver: log adding and removing nodes
2014-11-04 15:05:15 -08:00
Jonathan Boulle
c628d7f412
Merge pull request #1601 from jonboulle/client
...
client: return ErrNoEndpoint when none available
2014-11-04 14:58:22 -08:00
Xiang Li
5cb13fd071
*: support discovery fallback
2014-11-04 14:30:22 -08:00
Jonathan Boulle
9e001dee29
Merge pull request #1603 from jonboulle/typo
...
etcdhttp: fix typo in test comment
2014-11-04 13:18:12 -08:00
Jonathan Boulle
0f7add9722
etcdhttp: fix typo in test comment
2014-11-04 12:57:59 -08:00
Jonathan Boulle
9f29545f66
integration: bump timeout for good path
...
When waiting for a watch result, we expect the good path to complete
quickly here so we don't need to time out so aggressively. (Failure
noted in #1600 )
2014-11-04 12:55:40 -08:00
Jonathan Boulle
45b7c9a4ac
client: return ErrNoEndpoint when none available
...
In certain cases (for example, if a cluster peer is accessible but it
has no members listed), the httpClusterClient could have an empty set of
endpoints as a result of the Sync. This means that its Do function could
potentially return a nil response and nil error, with catastrophic
consequences for callers.
To be safe (particularly about this latter behaviour), this change
errors in both Sync and Do if no endpoints are available.
2014-11-04 12:51:43 -08:00
Brandon Philips
34dabe281b
Merge pull request #1591 from philips/application-json-errors
...
error: use application/json as the content-type
2014-11-04 12:31:06 -08:00
Brandon Philips
5fbef59dbc
error: use application/json as the content-type
...
Fixes #1584
2014-11-04 12:08:18 -08:00
Jonathan Boulle
915f8f4822
Merge pull request #1531 from jonboulle/410_gone
...
return 410 Gone for member that has been removed in /v2/members -XDELETE
2014-11-04 11:54:01 -08:00
Jonathan Boulle
cedcc0d8df
etchttp: return 410 gone for permanently removed members
2014-11-04 11:21:24 -08:00
Yicheng Qin
ac49e1d50f
Merge pull request #1594 from unihorn/201
...
etcdhttp/etcdserver: support HEAD on /v2/keys/ namespace
2014-11-04 00:11:47 -08:00
Yicheng Qin
866ec5948c
etcdhttp/etcdserver: support HEAD on /v2/keys/ namespace
2014-11-04 00:06:49 -08:00
Jonathan Boulle
aa5711bd0f
Merge pull request #1595 from jonboulle/header
...
*: add copyright header to remaining files
2014-11-03 23:42:14 -08:00
Jonathan Boulle
f7434b55e5
*: add copyright header to remaining files
2014-11-03 23:29:15 -08:00
Yicheng Qin
2235b47030
Merge pull request #1545 from unihorn/197
...
etcdhttp: always respond json-format error to client
2014-11-03 23:25:14 -08:00
Xiang Li
5ead800ff5
Merge pull request #1572 from xiangli-cmu/raft_test
...
raft: add paper tests for section 5.4.1
2014-11-03 22:37:26 -08:00
Yicheng Qin
e4b12a8e28
Merge pull request #1593 from unihorn/200
...
etcdserver: print out initial cluster members
2014-11-03 22:23:40 -08:00
Yicheng Qin
9aefb91531
etcdhttp: always respond json-format error to client
2014-11-03 22:19:17 -08:00
Yicheng Qin
5ed5d44652
etcdserver: print out initial cluster members
...
It is moved from etcdmain pkg because the line should only be printed out
when etcd bootstraps at the first time.
2014-11-03 19:34:24 -08:00
Jonathan Boulle
a272f5d7e3
Merge pull request #1592 from jonboulle/integration_tests
...
integration: add keys API integration tests
2014-11-03 16:31:59 -08:00
Jonathan Boulle
63cf0b9d90
integration: add keys API integration tests
2014-11-03 16:30:29 -08:00
Jonathan Boulle
ab69c2adbd
etcdhttp: use EcodePrevValueRequired when appropriate
2014-11-03 16:12:50 -08:00
Xiang Li
075ab6415f
Merge pull request #1587 from xiangli-cmu/fix_wal
...
wal: sync before returning from create
2014-11-03 15:58:47 -08:00
Xiang Li
dd09042632
etcdserver: try to listen on ports before initializing etcd server
2014-11-03 15:55:58 -08:00
Xiang Li
165ac654e8
raft: add paper tests for section 5.4.1
2014-11-03 15:50:56 -08:00
Xiang Li
dbdeceda7b
raft: do not load empty state and ents
2014-11-03 15:16:41 -08:00
Xiang Li
ff1f5a9d57
wal: sync before returning from create
2014-11-03 14:28:59 -08:00
Brian Waldon
d1ec13210f
Merge pull request #1571 from bcwaldon/client-redirects
...
client: follow redirects
2014-11-03 14:26:20 -08:00
Brandon Philips
2ba02c04be
Merge pull request #1576 from coreos/print-initial-cluster-members
...
etcd: print initial cluster members during startup
2014-11-03 14:24:33 -08:00
Brian Waldon
6dd4944e62
client: follow redirects
2014-11-03 12:15:16 -08:00
Yicheng Qin
5da481213e
Merge pull request #1478 from unihorn/190
...
etcdserver: panic on storage error
2014-11-03 11:07:55 -08:00
Yicheng Qin
433b4138c5
etcdserver: panic on storage error
...
It is a critical error to etcd, and etcd is not able to recover it now.
2014-11-03 10:46:04 -08:00
Brian Waldon
729770f32a
Merge pull request #1570 from bcwaldon/client-endpoints
...
client: use all endpoints
2014-11-03 10:44:09 -08:00
Kelsey Hightower
3ec4da6ac6
etcd: print initial cluster members during startup
...
etcd now prints the initial clusters members during startup.
```
2014/11/03 10:32:46 etcd: initial cluster members: etcd0=http://127.0.0.1:2380,etcd1=http://127.0.0.1:2390,etcd2=http://127.0.0.1:2400
```
2014-11-03 10:38:18 -08:00
Xiang Li
9df06bfa94
Merge pull request #1579 from coreos/cleanup-clustering-doc
...
docs: clean up clustering doc
2014-11-03 10:25:04 -08:00
Kelsey Hightower
20df86e3c3
docs: clean up clustering doc
2014-11-03 09:51:50 -08:00
Xiang Li
6433be5738
Merge pull request #1575 from coreos/improve-admin-docs
...
docs: fix usage of peers urls
2014-11-02 22:56:23 -08:00
Kelsey Hightower
3068340a83
docs: fix usage of peers urls
2014-11-02 22:00:41 -08:00
Brian Waldon
da6827f09e
client: use all endpoints
2014-10-31 20:51:47 -07:00
Brian Waldon
75104c10d4
Merge pull request #1553 from bcwaldon/client-sync
...
Support syncing and `--no-sync` flag in `etcdctl member` commands
2014-10-31 20:51:01 -07:00