Jonathan Boulle
e5f5fcff48
etcdserver: collapse dir configuration to DataDir
2014-10-03 13:34:49 -07:00
Jonathan Boulle
af6b29f291
main: move server configuration to etcdserver package
2014-10-03 13:34:49 -07:00
Jonathan Boulle
1c4163faf8
Merge pull request #1187 from jonboulle/1187_watches_header
...
Watches do not return X-Etcd-Index header
2014-10-03 10:13:25 -07:00
Xiang Li
01ecc60a88
Merge pull request #1203 from coreos/fix_raft
...
raft: commitIndex=min(leaderCommit, index of last new entry)
2014-10-03 22:24:07 +08:00
Xiang Li
172bd7d096
raft: add test for maybeappend change
2014-10-03 22:21:35 +08:00
Xiang Li
5b291b521b
Merge pull request #1207 from coreos/check_stale_resp
...
raft: do not decrease nextIndex and send entries for stale reply
2014-10-03 13:45:58 +08:00
Xiang Li
70bf464cd6
raft: add comment to decrTo
2014-10-03 13:42:34 +08:00
Xiang Li
16ba77767e
raft: do not decrease nextIndex and send entries for stale reply
2014-10-03 13:41:27 +08:00
Jonathan Boulle
1c11f6a144
*: expose etcd-index in watch requests
...
This adds a StartIndex field to the Watcher interface, which represents
the Etcd-Index at which the Watcher is created.
Also refactors the HTTP tests to use a table for most handleWatch tests
2014-10-02 18:10:11 -07:00
Yicheng Qin
8490904f20
Merge pull request #1224 from unihorn/149
...
raft: msg.Denied -> msg.Reject
2014-10-02 12:24:09 -07:00
Yicheng Qin
fff918c672
raft: msg.Denied -> msg.Reject
...
Change the field name because it has msgDenied already.
2014-10-02 12:22:12 -07:00
Yicheng Qin
4a5bf2e1b7
Merge pull request #1151 from unihorn/138
...
raft: add removed
2014-10-01 15:01:30 -07:00
Yicheng Qin
b64246720b
etcdserver: fix test due to rebase
2014-10-01 14:57:39 -07:00
Yicheng Qin
182c8316e1
raft: refine comment for doc and removed list tests
2014-10-01 14:57:39 -07:00
Yicheng Qin
e4a6c9651a
raft: add removed
...
The usage of removed:
1. tell removed node about its removal explicitly using msgDenied
2. prevent removed node disrupt cluster progress by launching leader election
It is set when apply node removal, or receive msgDenied.
2014-10-01 14:57:38 -07:00
Brandon Philips
b1fc0feb72
Merge pull request #1221 from philips/fixing-stuff
...
pkg/types: introduce a URLs type
2014-10-01 14:55:41 -07:00
Brandon Philips
83137f9eba
pkg/types: introduce a URLs type
...
Cleanup the usage of URLs into its own type so we don't have to use a
FlagValue everywhere we have a list of URLs.
2014-10-01 14:41:01 -07:00
Brandon Philips
619c7f9fdb
Merge pull request #1220 from bcwaldon/bkcompat
...
Backwards-compatibility with v0.4.6 addr-related flags
2014-10-01 12:53:50 -07:00
Yicheng Qin
f84b5b1071
Merge pull request #1201 from unihorn/143
...
etcdserver: publish self info when start
2014-10-01 11:56:20 -07:00
Yicheng Qin
b3c7711da8
Merge pull request #1219 from unihorn/148
...
flags/urls: reject url without port
2014-10-01 11:51:32 -07:00
Yicheng Qin
073eb7677d
etcdserver: move grep member logic into publish func
2014-10-01 11:50:47 -07:00
Brian Waldon
dd88a08f8e
etcd: support v0.4.6 addr flags
...
The -addr, -bind-addr, -peer-addr, and peer-bind-addr flags are
superseded by -advertise-client-urls, -listen-client-urls,
-advertise-peer-urls, and -listen-peer-urls, respectively.
If any of the former flags are provided, however, they will still
work. If the new counterparts to the old flags are provided, etcd
will log an error and fail.
2014-10-01 11:49:01 -07:00
Brian Waldon
11582b0f5f
pkg: add URLsFromFlags
2014-10-01 11:49:01 -07:00
Brian Waldon
add3906f6c
pkg/flags: add NewURLs helper
2014-10-01 11:49:01 -07:00
Brian Waldon
c9cac5fee5
flags: replace Addrs with IPAddressPort
2014-10-01 11:49:00 -07:00
Yicheng Qin
cbc84bc70e
etcdserver: minimize input info
2014-10-01 11:47:17 -07:00
Yicheng Qin
a40a270e19
etcdserver: publish self info when start
2014-10-01 11:47:17 -07:00
Yicheng Qin
1356037fc6
flags/urls: reject url without port
...
For now, if etcd receives a url without port, it will listen on a random
port, which is useless.
2014-10-01 11:44:17 -07:00
Yicheng Qin
c0c0b08ff2
Merge pull request #1218 from unihorn/147
...
flags/urls: assign urls instead of append
2014-10-01 11:34:24 -07:00
Yicheng Qin
fd758c71b8
Merge pull request #1217 from unihorn/146
...
main: not use loop variable in goroutine in loop body
2014-10-01 11:25:53 -07:00
Yicheng Qin
8944364884
flags/urls: assign urls instead of append
2014-10-01 11:23:20 -07:00
Yicheng Qin
7a698be6a3
main: not use loop variable in goroutine in loop body
...
Because loop variable are reused in following loops.
2014-10-01 11:07:32 -07:00
Brandon Philips
6760345453
Merge pull request #1216 from philips/improve-cluster-procfile
...
etcdserver: stop worrying about scheme
2014-09-30 17:13:41 -07:00
Brandon Philips
04bd48fef3
etcdserver: stop worrying about scheme
...
Stop worrying about the scheme. This puts a TODO on adding validation to
the schemes if TLS is specified. But we can worry about that later.
2014-09-30 17:05:20 -07:00
Brandon Philips
7639752c82
Merge pull request #1213 from philips/improve-cluster
...
etcdserver: stop using addScheme
2014-09-30 16:43:26 -07:00
Brandon Philips
c2f96631d3
etcdserver: stop using addScheme
...
This standardizes the flags to use a list of URLs everywhere. The next
step is to enforce the scheme based on TLS settings and support compat
flags.
2014-09-30 16:40:32 -07:00
Brandon Philips
aa5b6cdc9e
etcdserver: have newMember take an optional time field
...
This will be used by members joining an existing cluster or joining
using discovery.
2014-09-30 14:57:04 -07:00
Xiang Li
ce70e63cc6
Merge pull request #1200 from coreos/raft_heartbeat
...
raft: heartbeat is only response for maintaining leader dominance
2014-09-29 17:00:26 -07:00
Xiang Li
d7b4e44a66
raft: heartbeat is only response for maintaining leader dominance
2014-09-29 16:57:43 -07:00
Xiang Li
b3c1bd5616
raft: commitIndex=min(leaderCommit, index of last new entry)
2014-09-29 14:38:17 -07:00
Xiang Li
b6a73c9358
Merge pull request #1202 from unihorn/144
...
etcdserver: fix left Id -> ID
2014-09-29 14:21:42 -07:00
Yicheng Qin
34547229a6
etcdserver: fix left Id -> ID
2014-09-29 14:14:45 -07:00
Yicheng Qin
0e8345aa73
Merge pull request #1143 from unihorn/136
...
*: Id -> ID for protobuf types
2014-09-29 13:58:02 -07:00
Brandon Philips
768090754c
Merge pull request #1199 from AdoHe/master
...
update the Documentation/libraries-and-tools.md to add a new Java client
2014-09-29 13:21:40 -07:00
Yicheng Qin
08e5f39d8a
Merge pull request #1192 from unihorn/140
...
etcdserver: add publish func
2014-09-29 10:20:39 -07:00
Yicheng Qin
89077167c3
etcdserver: add publish func
2014-09-29 10:13:06 -07:00
Xiang Li
1eb09acd8b
Merge pull request #1197 from coreos/raft_t
...
Add raft msg denied
2014-09-28 23:53:13 -07:00
TonyAdo
1c27fad2cf
update the Documentation/libraries-and-tools.md
2014-09-29 13:42:12 +08:00
Xiang Li
e26ff32fd8
raft: fix error msg
2014-09-28 21:17:51 -07:00
Xiang Li
51529cc3f2
raft: remove index field in msg AppResp
2014-09-28 21:13:53 -07:00