R.B. Boyer
7edb6bcbe1
etcd: correct security configuration for peers in sample config file
2016-07-11 20:19:27 -05:00
Gyu-Ho Lee
da44e17b58
Merge pull request #5908 from gyuho/raft-cleanup
...
raft: remove unnecessary type-cast, else-clause
2016-07-10 16:42:42 -07:00
Gyu-Ho Lee
c396b6aaaa
raft: remove unnecessary type-cast, else-clause
2016-07-09 22:01:19 -07:00
Hitoshi Mitake
c47689d98f
Merge pull request #5689 from mitake/skip-apply
...
RFC: etcdserver, pkg: skip needless log entry applying
2016-07-10 01:23:35 +09:00
Anthony Romano
474eb1b44b
Merge pull request #5890 from jaredeh/32bit
...
Easy 32bit architecture fixes
2016-07-08 13:36:52 -07:00
Jared Hulbert
f78d4713ea
etcdserver: atomic access alignment
...
Most fields accessed with sync/atomic functions are 64bit aligned, but a couple
are not. This makes comments out of date and therefore misleading.
Affected fields reordered, comments scrubbed and updated.
2016-07-08 11:20:47 -07:00
Jared Hulbert
90889ebc0f
raftpb: atomic access alignment
...
The Entry struct has misaligned fields that are accessed atomically. The
misalignment is caused by the EntryType enum which the Protocol Buffers
spec forces to be a 32bit int.
Moving the order of the fields without renumbering them in the .proto file
seems to align the go structure without changing the wire format.
2016-07-08 11:13:53 -07:00
Jared Hulbert
df94f58462
raft: atomic access alignment
...
The relevant structures are properly aligned, however, there is no comment
highlighting the need to keep it aligned as is present elsewhere in the
codebase.
Adding note to keep alignment, in line with similar comments in the codebase.
2016-07-08 11:05:41 -07:00
Gyu-Ho Lee
eded9f5f84
Merge pull request #5887 from gyuho/rate-limiting-stresser
...
etcd-tester: add rate limits to stresser
2016-07-08 09:32:25 -07:00
Hitoshi Mitake
abb20ec51f
etcdserver, pkg: skip needless log entry applying
...
This commit lets etcdserver skip needless log entry applying. If the
result of log applying isn't required by the node (client that issued
the request isn't talking with the node) and the operation has no side
effects, applying can be skipped.
It would contribute to reduce disk I/O on followers and be useful for
a cluster that processes much serializable get.
2016-07-08 15:16:45 +09:00
Gyu-Ho Lee
7c39f41e7c
etcd-tester: add rate limiter to stresser
2016-07-07 21:55:12 -07:00
Xiang Li
b970e03e19
Merge pull request #5446 from gyuho/gateway_log
...
tcpproxy: log proxy start
2016-07-07 21:38:01 -07:00
Anthony Romano
ce8900e3b4
Merge pull request #5899 from heyitsanthony/qos-tuning
...
Documentation: tuning advice for peer prioritization
2016-07-07 19:48:07 -07:00
Anthony Romano
6f0a67603a
Documentation: tuning advice for peer prioritization
2016-07-07 19:14:31 -07:00
Anthony Romano
a2760c9f49
Merge pull request #5888 from heyitsanthony/v2-one-shot
...
client: make set/delete one shot operations
2016-07-07 16:41:01 -07:00
Anthony Romano
c30f89f1d0
client/integration: test v2 client one shot operations
2016-07-07 15:58:58 -07:00
Anthony Romano
946b3cce1d
client: make set/delete one shot operations
...
Old behavior would retry set and delete even if there's an error. This
can lead to the client returning an error for deleting twice, instead
of returning an error for an interdeterminate state.
Fixes #5832
2016-07-07 15:51:08 -07:00
Xiang Li
4f2da16d82
Merge pull request #5897 from xiang90/lock
...
v3rpc: lock progress and prevKV map correctly
2016-07-07 15:20:37 -07:00
Xiang Li
427496ebb8
v3rpc: lock progress and prevKV map correctly
2016-07-07 15:01:05 -07:00
Anthony Romano
dc2dced129
Merge pull request #5892 from heyitsanthony/auth-cheap-bcrypt
...
auth: cheap bcrypt for tests
2016-07-07 09:04:57 -07:00
Xiang Li
b6a497214e
Merge pull request #5883 from westhood/master
...
clientv3: fix sync base
2016-07-07 07:09:55 -07:00
Anthony Romano
0b0cbaac09
clientv3: use cheap bcrypt for ExampleAuth and use embedded auth api
...
Fixes #5783
2016-07-06 23:35:14 -07:00
Anthony Romano
d4e0e419dc
auth: set bcrypt cost to minimum for test cases
...
DefaultCost makes auth tests 10x more expensive than MinCost.
Fixes #5851
2016-07-06 23:35:06 -07:00
westhood
16b0c1d1e1
clientv3: fix sync base
...
It is not correct to use WithPrefix. Range end will change in every
internal batch.
2016-07-07 12:02:53 +08:00
westhood
88a9cf2cea
clientv3: add public function to get prefix range end
2016-07-07 10:35:40 +08:00
Gyu-Ho Lee
c4a280e511
Merge pull request #5881 from goby/master
...
hack: fix etcd execute path in k8s example
2016-07-06 17:04:16 -07:00
Gyu-Ho Lee
244b1d7d20
tcpproxy: add start logging line
2016-07-06 14:21:26 -07:00
Anthony Romano
1c9e0a0e33
Merge pull request #5886 from heyitsanthony/health-check-str
...
rafthttp: make health check meaning clearer
2016-07-06 11:32:27 -07:00
Xiang Li
4db8f018cb
Merge pull request #5885 from xiang90/fix_snap_test
...
etcdserver: fix TestSnap
2016-07-06 11:21:13 -07:00
Anthony Romano
3a080143a7
rafthttp: make health check meaning clearer
2016-07-06 10:31:13 -07:00
Xiang Li
3451623c71
etcdserver: fix TestSnap
2016-07-06 10:30:15 -07:00
laidonglin
8c4df9a96f
hack: fix etcd execute path in k8s example
...
Change /etcd to /usr/local/bin/etcd
2016-07-06 15:07:00 +08:00
Xiang Li
234c30c061
Merge pull request #5880 from xiang90/put_prev
...
add options to return prev_kv
2016-07-05 21:03:56 -07:00
Xiang Li
7ec822107a
*: add put prevkv
2016-07-05 20:45:01 -07:00
Xiang Li
12bf1a3382
*: rename preserveKVs to prevKv
2016-07-05 20:45:01 -07:00
Anthony Romano
a78cdeae81
Merge pull request #5877 from heyitsanthony/rsa-fixtures
...
test: certificate fixes for fedora
2016-07-05 19:34:23 -07:00
Xiang Li
929d6ab62c
Merge pull request #5850 from xiang90/get_o_kv
...
*: support get-old-kv in watch
2016-07-05 16:37:24 -07:00
Xiang Li
c853704ac9
*: support get-old-kv in watch
2016-07-05 16:17:09 -07:00
Anthony Romano
c642430fae
integration: use RSA certs for testing
...
Some systems don't support EC due to patent issues, but the tests
should still work.
Fixes #5744
2016-07-05 13:21:21 -07:00
Gyu-Ho Lee
066afd6abd
Merge pull request #5876 from gyuho/manual
...
Dockerfile: use 'ENTRYPOINT' instead of 'CMD'
2016-07-05 11:40:02 -07:00
Secret
f19cef960e
Dockerfile: use 'ENTRYPOINT' instead of 'CMD'
...
use entrypoint, so people can specify flags to etcd
without providing the binary.
Signed-off-by: Secret <haichuang221@163.com>
2016-07-05 11:28:19 -07:00
Gyu-Ho Lee
beab76c7a9
Merge pull request #5872 from gyuho/build_doc
...
Documentation: add instruction on vendoring, build
2016-07-05 10:43:28 -07:00
Gyu-Ho Lee
ff5ddd0909
Documentation: add instruction on vendoring, build
...
Addressing https://github.com/coreos/etcd/issues/5857#issuecomment-230174840 .
2016-07-05 09:55:44 -07:00
Gyu-Ho Lee
660f0fcc3d
Merge pull request #5873 from gyuho/raft_updates
...
raft: fix minor grammar, remove TODO
2016-07-05 09:49:08 -07:00
Xiang Li
8c71eb71df
Merge pull request #5867 from vmatekole/master
...
Documentation: Example config amendment
2016-07-05 09:17:22 -07:00
vmatekole
c52bf1ac5d
Documentation: Example config amendment
2016-07-05 16:27:47 +02:00
Gyu-Ho Lee
9e0de02fde
raft: fix minor grammar, remove TODO
...
- test 'Term' panic cases (remove TODO)
- fix minor grammar in 'Node' godoc
2016-07-05 07:21:52 -07:00
Gyu-Ho Lee
c7dd74d8d3
Merge pull request #5869 from gyuho/raft_log_test
...
raft: minor updates and clean up in log.go
2016-07-04 21:51:13 -07:00
Gyu-Ho Lee
881a120453
raft: minor updates and clean up in log.go
...
- remove redundant test case in log_test.go
- fix test case comment ('equal or larger')
- lastnewi after matching index and term
2016-07-04 16:52:17 -07:00
Anthony Romano
b566ca225c
Merge pull request #5855 from heyitsanthony/fix-windows-wal-init
...
wal: release wal locks before renaming directory on init
2016-07-03 19:21:23 -07:00