Yicheng Qin
35eb26ef5d
Merge pull request #3726 from yichengq/watch-store
...
storage: add store field in watchableStore
2015-10-21 11:07:45 -07:00
Yicheng Qin
0f7374ce89
storage: KV field -> store field in watchableStore
...
We need to access the underlying store to use its RangeEvents function.
It is not good to use unnecessary type conversion.
The underlying store is also needed for further store upon
watchableStore.
2015-10-20 19:23:20 -07:00
Yicheng Qin
8d3ed0176c
Merge pull request #3727 from yichengq/govet
...
raft: fix malformed example name
2015-10-20 16:51:47 -07:00
Yicheng Qin
01806c3e80
raft: fix malformed example name
...
It is reported by latest govet:
```
gopath/src/github.com/coreos/etcd/raft/example_test.go:26: Example_Node
has malformed example suffix: Node
```
2015-10-20 16:40:01 -07:00
Xiang Li
704bff0c77
Merge pull request #3724 from coreos/philips-patch-1
...
README: fix language for release binaries
2015-10-20 14:22:02 -07:00
Brandon Philips
5b5b0ef060
README: attempt to make it even clearer
2015-10-20 14:17:33 -07:00
Brandon Philips
b38e21a9e9
README: fix language for release binaries
...
Address confusion on where to find stuff and make it easier to find with keywords for various operating systems.
2015-10-20 14:07:40 -07:00
Yicheng Qin
9635d8d94c
Merge pull request #3720 from yichengq/clean-streamAppV1
...
rafthttp: deprecate streamTypeMsgApp and remove msgApp stream sent restriction due to streamTypeMsgApp
2015-10-20 10:37:51 -07:00
Yicheng Qin
de669be6d6
Merge pull request #3683 from yichengq/raft-block
...
etcdserver: fix raft state machine may block
2015-10-20 09:44:34 -07:00
Yicheng Qin
ab5df57ecf
etcdserver: fix raft state machine may block
...
When snapshot store requests raft snapshot from etcdserver apply loop,
it may block on the channel for some time, or wait some time for KV to
snapshot. This is unexpected because raft state machine should be unblocked.
Even worse, this block may lead to deadlock:
1. raft state machine waits on getting snapshot from raft memory storage
2. raft memory storage waits snapshot store to get snapshot
3. snapshot store requests raft snapshot from apply loop
4. apply loop is applying entries, and waits raftNode loop to finish
messages sending
5. raftNode loop waits peer loop in Transport to send out messages
6. peer loop in Transport waits for raft state machine to process message
Fix it by changing the logic of getSnap to be asynchronously creation.
2015-10-20 09:19:34 -07:00
Yicheng Qin
b61eaf3335
rafthttp: msgApp{Reader/Writer} -> msgAppV2{Reader/Writer}
...
To make what it serves more clear.
2015-10-20 08:28:06 -07:00
Yicheng Qin
5060b2f322
rafthttp: send all MsgApp on stream msgAppV2
...
For stream msgAppV2, as long as the message is MsgApp type, it should be sent
through stream msgAppV2.
2015-10-20 08:23:36 -07:00
Yicheng Qin
33231fccdd
rafthttp: fix wrong stream name returned by pick
...
msgAppWriter uses streamAppV2 type, and it should return the correct name.
2015-10-20 08:17:06 -07:00
Yicheng Qin
f725f6a552
rafthttp: deprecate streamTypeMsgApp
...
streamTypeMsgApp is only used in etcd 2.0. etcd 2.3 should not talk to
etcd 2.0, either send or receive requests. So I deprecate streamTypeMsgApp
and its related stuffs from rafthttp package.
updating term is only used from streamTypeMsgApp, so it is removed too.
2015-10-20 08:15:54 -07:00
Xiang Li
eb7bce893e
Merge pull request #3721 from mitake/servevars
...
etcdserver: don't allow methods other than GET in /debug/vars
2015-10-20 08:01:38 -07:00
Hitoshi Mitake
1b0c65c299
etcdserver: don't allow methods other than GET in /debug/vars
...
Currently, /debug/vars seems to allow all types of methods e.g. PUT,
POST, etc. However, this path is a readonly stuff so it should allow
GET only.
2015-10-20 17:19:42 +09:00
Yicheng Qin
7dcb99b60e
Merge pull request #3656 from endocode/kayrus/client_doc
...
Added example on how to get node's value
2015-10-19 20:41:12 -07:00
Jonathan Boulle
e5082fce54
Merge pull request #3718 from gyuho/gyuho_README
...
README: fix typo
2015-10-19 17:14:46 -07:00
Gyu-Ho Lee
7d326087f9
README: fix typo
...
It looks like a typo. Or is it elided sentence?
Thanks,
2015-10-19 17:03:40 -07:00
Yicheng Qin
4e9f137d1b
Merge pull request #3716 from yichengq/add-sem-badge
...
README: add semaphore CI status badge into README
2015-10-19 16:25:21 -07:00
Yicheng Qin
6ebd62a869
README: add semaphore CI status badge into README
2015-10-19 16:08:40 -07:00
Xiang Li
32dd4d5de3
Merge pull request #3657 from xiang90/fix_remove
...
etcdserver: skip updating attr if the member does not exist
2015-10-19 13:35:57 -07:00
Xiang Li
776e9fb7be
Merge pull request #3703 from xiang90/bolt
...
storage/backend: avoid creating new bolt.tx during a batchTx
2015-10-19 10:30:57 -07:00
kayrus
afb35e366d
client: added example on how to get node's value
2015-10-19 10:31:05 +02:00
Xiang Li
79c263b2ec
Merge pull request #3707 from xiang90/CI
...
pkg/transport: longer timeout for slow CI
2015-10-18 17:22:15 -07:00
Xiang Li
7c6e2deb66
Merge pull request #3708 from xiang90/travis
...
travis: drop go-nyet
2015-10-18 16:43:53 -07:00
Xiang Li
559b76f401
travis: drop go-nyet
2015-10-18 16:41:57 -07:00
Xiang Li
3c1ecf70cf
pkg/transport: longer timeout for slow CI
2015-10-18 16:32:18 -07:00
Xiang Li
5372e11727
Merge pull request #3704 from xiang90/rafthttp
...
clean up rafthttp pkg: round1
2015-10-18 10:00:26 -07:00
Xiang Li
427a154aae
rafthttp: various clean up
2015-10-18 09:49:18 -07:00
Xiang Li
7d3af5e15f
rafthttp: rename message.go -> message_codec.go
2015-10-18 09:49:11 -07:00
Xiang Li
e87cd0c17b
rafthttp: move new funcs to right place
2015-10-18 09:48:59 -07:00
Xiang Li
f08d750b0b
Merge pull request #3697 from mqliang/cluster-health
...
etcdctl: fix health check condition
2015-10-18 09:26:05 -07:00
Xiang Li
478fab6aca
rafthttp: rename NewHandler to newPipelineHandler
2015-10-17 22:33:28 -07:00
Xiang Li
080c11d14e
rafthttp: make ConnReadLimitByte private and add comment
2015-10-17 22:20:36 -07:00
Xiang Li
5efdd7bc6d
storage/backend: avoid creating new bolt.tx during a batchTx
2015-10-17 21:31:34 -07:00
mqliang
b2d92dedae
etcdctl:fix health check condition
2015-10-18 08:22:13 +08:00
Xiang Li
d07c9b00e5
Merge pull request #3701 from xiang90/rm_end_watcher
...
storage: remove the endRev of watcher
2015-10-17 16:04:27 -07:00
Xiang Li
6556bf1643
storage: remove the endRev of watcher
2015-10-17 15:59:49 -07:00
Xiang Li
f78a11d468
Merge pull request #3694 from philips/fix-configuration-headers
...
Documentation: configuration docs headers
2015-10-16 12:39:10 -07:00
Brandon Philips
22d8ca4c9a
Documentation: configuration docs headers
...
The configuration docs are indented weird compared to our standards.
This makes the sidebar here not work right:
https://coreos.com/etcd/docs/latest/configuration.html
2015-10-16 12:32:57 -07:00
Xiang Li
fd07e02604
Merge pull request #3691 from gyuho/documentation_20151015
...
raft/documentation: clarify progress's subjects.
2015-10-15 20:02:00 -07:00
Gyu-Ho Lee
1716d5858f
raft/documentation: clarify progress's subjects.
...
If I understand correctly, `progress` represents the states of follower. For
me, some comments weren't clear because it was missing the subjects of
`progress`. This adds more clarification on who is doing what. Please let me
know if I misunderstood anything. Thanks,
2015-10-15 19:15:08 -07:00
Yicheng Qin
9ce79dbbc3
Merge pull request #3685 from gyuho/etcdctl_mk_command_2
...
etcdctl: fix mk command with PrevNoExist
2015-10-15 12:13:54 -07:00
Xiang Li
df34d67e98
Merge pull request #3689 from ccding/patch-1
...
raft/doc: fix misuse of `for' loop in docs
2015-10-15 09:20:05 -07:00
Cong Ding
362df8e470
raft/doc: fix misuse of `for' loop in docs
2015-10-15 11:13:30 -05:00
Gyu-Ho Lee
1dab7e8084
etcdctl/command: mk command with PrevNoExist
...
This attempts to fix #3676 . `PrevNoExist` checks if the key previously exists
and if so, it returns an error, which is how `mk` command is supposed to work.
The previous code ignores the previous key and overwrites with the later value.
/cc @yichengq
2015-10-15 09:05:17 -07:00
Xiang Li
c2e49b5622
Merge pull request #3687 from ccding/patch-1
...
raft/doc: fix typos
2015-10-15 07:52:43 -07:00
Cong Ding
f1f92f0fa3
raft/doc: fix typos
2015-10-15 02:17:34 -05:00
Yicheng Qin
afd74dfeb7
Merge pull request #3611 from mitake/etcdctl-timeout
...
etcdctl: use a context with -total-timeout in simple commands
2015-10-14 16:13:34 -07:00