70bf464cd6
raft: add comment to decrTo
2014-10-03 13:42:34 +08:00
16ba77767e
raft: do not decrease nextIndex and send entries for stale reply
2014-10-03 13:41:27 +08:00
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
8490904f20
Merge pull request #1224 from unihorn/149
...
raft: msg.Denied -> msg.Reject
2014-10-02 12:24:09 -07:00
fff918c672
raft: msg.Denied -> msg.Reject
...
Change the field name because it has msgDenied already.
2014-10-02 12:22:12 -07:00
4a5bf2e1b7
Merge pull request #1151 from unihorn/138
...
raft: add removed
2014-10-01 15:01:30 -07:00
b64246720b
etcdserver: fix test due to rebase
2014-10-01 14:57:39 -07:00
182c8316e1
raft: refine comment for doc and removed list tests
2014-10-01 14:57:39 -07:00
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
b1fc0feb72
Merge pull request #1221 from philips/fixing-stuff
...
pkg/types: introduce a URLs type
2014-10-01 14:55:41 -07:00
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
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
f84b5b1071
Merge pull request #1201 from unihorn/143
...
etcdserver: publish self info when start
2014-10-01 11:56:20 -07:00
b3c7711da8
Merge pull request #1219 from unihorn/148
...
flags/urls: reject url without port
2014-10-01 11:51:32 -07:00
073eb7677d
etcdserver: move grep member logic into publish func
2014-10-01 11:50:47 -07:00
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
11582b0f5f
pkg: add URLsFromFlags
2014-10-01 11:49:01 -07:00
add3906f6c
pkg/flags: add NewURLs helper
2014-10-01 11:49:01 -07:00
c9cac5fee5
flags: replace Addrs with IPAddressPort
2014-10-01 11:49:00 -07:00
cbc84bc70e
etcdserver: minimize input info
2014-10-01 11:47:17 -07:00
a40a270e19
etcdserver: publish self info when start
2014-10-01 11:47:17 -07:00
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
c0c0b08ff2
Merge pull request #1218 from unihorn/147
...
flags/urls: assign urls instead of append
2014-10-01 11:34:24 -07:00
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
8944364884
flags/urls: assign urls instead of append
2014-10-01 11:23:20 -07:00
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
6760345453
Merge pull request #1216 from philips/improve-cluster-procfile
...
etcdserver: stop worrying about scheme
2014-09-30 17:13:41 -07:00
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
7639752c82
Merge pull request #1213 from philips/improve-cluster
...
etcdserver: stop using addScheme
2014-09-30 16:43:26 -07:00
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
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
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
d7b4e44a66
raft: heartbeat is only response for maintaining leader dominance
2014-09-29 16:57:43 -07:00
b3c1bd5616
raft: commitIndex=min(leaderCommit, index of last new entry)
2014-09-29 14:38:17 -07:00
b6a73c9358
Merge pull request #1202 from unihorn/144
...
etcdserver: fix left Id -> ID
2014-09-29 14:21:42 -07:00
34547229a6
etcdserver: fix left Id -> ID
2014-09-29 14:14:45 -07:00
0e8345aa73
Merge pull request #1143 from unihorn/136
...
*: Id -> ID for protobuf types
2014-09-29 13:58:02 -07:00
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
08e5f39d8a
Merge pull request #1192 from unihorn/140
...
etcdserver: add publish func
2014-09-29 10:20:39 -07:00
89077167c3
etcdserver: add publish func
2014-09-29 10:13:06 -07:00
1eb09acd8b
Merge pull request #1197 from coreos/raft_t
...
Add raft msg denied
2014-09-28 23:53:13 -07:00
1c27fad2cf
update the Documentation/libraries-and-tools.md
2014-09-29 13:42:12 +08:00
e26ff32fd8
raft: fix error msg
2014-09-28 21:17:51 -07:00
51529cc3f2
raft: remove index field in msg AppResp
2014-09-28 21:13:53 -07:00
adefd83855
raft: remove index field in msg voteResp
2014-09-28 21:13:43 -07:00
86473d8a27
raft: add msg denied field
2014-09-28 21:13:33 -07:00
e38fbfe9de
Merge pull request #1196 from philips/add-flagtypes-package
...
flagtypes: introduce flagtypes package
2014-09-28 19:48:12 -07:00
d8bf9728d2
Merge pull request #1194 from unihorn/141
...
etcdserver: return client urls for /v2/machines
2014-09-28 17:29:52 -07:00
78a9bba276
pkg/types/flags: introduce flags package
...
I want to use the Addrs type in another experimental proxy that I am
implementing. Pull it out into a separate package.
2014-09-28 14:56:30 -07:00
5784693a39
etcdserver: Cluster.Endpoints() -> Cluster.PeerURLs()
2014-09-28 14:39:47 -07:00