Gyu-Ho Lee
1c59708c51
e2e: test 'print-value-only' flag
2016-08-29 12:09:16 -07:00
Gyu-Ho Lee
524a5a1afb
ctlv3: add 'print-value-only' flag to get command
2016-08-29 12:09:07 -07:00
Xiang Li
45079ec6c1
Merge pull request #6274 from dghubble/etcd3-rkt-docs
...
Documentation: Add initial etcd3 with rkt docs
2016-08-29 12:01:27 -07:00
Dalton Hubble
fa79d42b98
Documentation: Add initial etcd3 with rkt docs
2016-08-29 11:59:46 -07:00
Anthony Romano
e53b99588a
Merge pull request #6288 from heyitsanthony/fix-retryread
...
clientv3: retry non-mutable rpcs on Internal codes
2016-08-28 20:41:19 -07:00
Anthony Romano
5e963608b7
clientv3: do not treat Internal codes as halting
...
Fixes #6277
2016-08-28 20:20:22 -07:00
Anthony Romano
3552420dfd
clientv3: set failfast=false on read-only txns
2016-08-28 19:40:38 -07:00
Anthony Romano
64ac631863
rpctypes: set unknown codes to Unknown instead of internal
...
An unrecognized error code isn't "very broken".
2016-08-28 19:37:35 -07:00
Gyu-Ho Lee
f73258a51f
Merge pull request #6282 from gyuho/tester-error
...
etcd-tester: return error for mismatch rev/hash
2016-08-27 22:25:18 -07:00
Gyu-Ho Lee
0bf2ef3c1b
etcd-tester: return error for mismatch rev/hash
2016-08-27 22:14:42 -07:00
Xiang Li
a0759298c5
Merge pull request #6281 from xiang90/fix
...
etcd-tester: do not restart stresser on error
2016-08-27 20:49:08 -07:00
Xiang Li
017aac88a8
etcd-tester: do not restart stresser on error
2016-08-27 20:47:45 -07:00
Xiang Li
0be190df4d
Merge pull request #6279 from xiang90/fix_hash
...
mvcc: force commit and hash should be atomic for getting hash
2016-08-27 20:09:22 -07:00
Xiang Li
1437388f77
mvcc: force commit and hash should be atomic for getting hash
2016-08-27 19:22:22 -07:00
Anthony Romano
c388b2f22f
Merge pull request #6264 from heyitsanthony/error-codes
...
clientv3: use grpc codes to translate raw grpc errors
2016-08-26 11:52:37 -07:00
Anthony Romano
a50c707050
clientv3/integration: wait for two request timeouts in txn tests
...
Read only txns and Get may timeout once if the leader is lost.
2016-08-26 10:04:10 -07:00
Xiang Li
3a49cbb769
Merge pull request #6269 from aaronlehmann/hold-lock-while-renaming
...
On non-Windows OS, hold file lock while renaming WAL directory
2016-08-26 09:53:59 -07:00
Aaron Lehmann
af4f82228c
wal: hold file lock while renaming WAL directory on non-Windows
...
Windows requires this lock to be released before the directory is
renamed. But on unix-like operating systems, releasing the lock and
trying to reacquire it immediately can be flaky if a process is forked
around the same time. The file descriptors are marked as close-on-exec
by the Go runtime, but there is a window between the fork and exec where
another process will be holding the lock.
2016-08-26 09:27:51 -07:00
Anthony Romano
df54ad2208
v3rpc, rpctypes: add error types for timeouts
2016-08-26 09:22:09 -07:00
Anthony Romano
267063efd0
clientv3: use grpc codes to translate raw grpc errors
2016-08-26 09:22:09 -07:00
Xiang Li
417b9469aa
Merge pull request #6270 from heyitsanthony/etcdserver-timeout
...
etcdserver: use request timeout defined by ServerConfig for v3 requests
2016-08-25 20:50:21 -07:00
Anthony Romano
254c0ea814
etcdserver: use request timeout defined by ServerConfig for v3 requests
2016-08-25 18:39:01 -07:00
Anthony Romano
4f5cacc835
Merge pull request #6267 from heyitsanthony/fix-wal-tear
...
wal: fix CRC corruption on writes following write tears
2016-08-25 17:10:08 -07:00
Anthony Romano
f1ead43482
wal: zero out wal tail past its first zero record
...
Whenever the WAL is opened for writes, it should write zeroes to its tail
starting from the first zero record. Otherwise, if there are entries past
the first zero record due to a torn write, any new writes that overlap the
old entries will lead to a garbage record on the tail and cause a CRC
mismatch.
2016-08-25 14:24:46 -07:00
Anthony Romano
58a36cb651
fileutil: add ZeroToEnd for zeroing files
2016-08-25 14:24:46 -07:00
Anthony Romano
0d8d9a374c
wal: test for truncation on torn writes
2016-08-25 14:24:46 -07:00
Xiang Li
488ae52a51
Merge pull request #6259 from xiang90/fix_test_c
...
clientv3/integration: fix TestKVPutStoppedServerAndClose
2016-08-24 14:14:17 -07:00
Xiang Li
f2b7c501cc
clientv3/integration: fix TestKVPutStoppedServerAndClose
2016-08-24 13:57:27 -07:00
Xiang Li
bb110b0a2d
Merge pull request #6257 from heyitsanthony/doc-fix-buglink
...
Documentation: update links for unaligned 64-bit atomics issue
2016-08-24 09:37:00 -07:00
Anthony Romano
159c8ee6e0
Documentation: update links for unaligned 64-bit atomics issue
...
Fixes #6256
2016-08-24 09:13:53 -07:00
Anthony Romano
1c989edb47
Merge pull request #6253 from heyitsanthony/srv-arec
...
discovery: reject IP address records in SRVGetCluster
2016-08-24 06:56:17 -07:00
Anthony Romano
3dc12e33f1
discovery: reject IP address records in SRVGetCluster
...
Was incorrectly trimming the trailing '.' from the target; this in turn
caused the etcd server to accept any SRV record with an IP target
instead of only targets with A records.
2016-08-23 18:10:42 -07:00
Xiang Li
8e4fcaa6dc
Merge pull request #6251 from xiang90/ctl_doc
...
etcdctl: list output options
2016-08-23 11:32:33 -07:00
Xiang Li
86dcfbf205
etcdctl: list output options
2016-08-23 11:32:00 -07:00
Xiang Li
83e66d2962
Merge pull request #6248 from xiang90/fix_mvcc
...
mvcc: only write txn should update index
2016-08-23 10:50:46 -07:00
Xiang Li
c12104bd15
Merge pull request #6247 from xiang90/fix_snap
...
etcdserver: kv.commit needs to be serialized with apply
2016-08-23 09:39:54 -07:00
Xiang Li
7f3d4bfae5
etcdserver: kv.commit needs to be serialized with apply
...
kv.commit updates the consistent index in backend. When
executing in parallel with apply, it might grab tx lock
after apply update the consistent index and before apply
starts to execute the opeartion. If the server dies right
after kv.commit, the consistent is updated but the opeartion
is not executed. If we restart etcd server, etcd will skip
the operation. :(
There are a few other places that we need to take care of,
but let us fix this first.
2016-08-23 09:16:09 -07:00
Xiang Li
959f860a40
Merge pull request #6249 from gyuho/fix-count
...
etcd-tester: fix compact rev counting
2016-08-22 23:36:57 -07:00
Gyu-Ho Lee
0c37df7265
etcd-tester: fix compact rev counting
2016-08-22 22:58:44 -07:00
Xiang Li
e1789aa531
mvcc: only write txn should update index
2016-08-22 22:05:51 -07:00
Xiang Li
028b954052
Merge pull request #6245 from requenym/patch-1
...
documentation: update libraries-and-tools.md
2016-08-22 19:08:15 -07:00
Michael Requeny
49ef47a9a4
documentation: update libraries-and-tools.md
2016-08-22 20:21:29 -04:00
Xiang Li
13f79affb6
Merge pull request #6243 from xiang90/fix_m
...
e2e: remove server testing in etcdctl test
2016-08-22 16:14:51 -07:00
Anthony Romano
aa89bc35fd
Merge pull request #6242 from heyitsanthony/rwdial-timeout
...
pkg/transport: bump wait time in TestReadWriteTimeoutDialer for write deadline
2016-08-22 16:13:50 -07:00
Gyu-Ho Lee
722d66b03d
Merge pull request #6241 from gyuho/progress-doc
...
clientv3: specify watch progress notify interval
2016-08-22 15:59:01 -07:00
Gyu-Ho Lee
be38c50567
clientv3: specify watch progress notify interval
...
For watch request
2016-08-22 15:44:59 -07:00
Xiang Li
1d58c7d3b2
e2e: remove server testing in etcdctl test
2016-08-22 15:34:50 -07:00
Anthony Romano
3b92384394
pkg/transport: bump wait time in TestReadWriteTimeoutDialer for write deadline
...
Was able to get 2s wait times with 500 concurrent requests on a fast machine;
a slower machine could possibly see similar delays with a single connection.
Fixes #6220
2016-08-22 15:30:44 -07:00
Xiang Li
c39b7205a6
Merge pull request #6228 from mitake/e2e-txn-auth
...
e2e: a test case for txn and permission
2016-08-22 09:24:18 -07:00
Hitoshi Mitake
3d5d3b90e9
e2e: a test case for txn and permission
...
This commit adds a new test case for checking the permission mechanism
can work well in txn requests.
2016-08-22 12:06:19 +09:00