bd5e1ea1c0
e2e: fix race in ranging test tables
...
Fix https://github.com/coreos/etcd/issues/5598 .
race conditions were detected in iterating the test table
because the go func closure doesn't receive the 'puts' index
in the argument. This can cause the test to run wrong put
operations.
2016-06-08 13:44:05 -07:00
87d105c036
Merge pull request #5596 from heyitsanthony/wal-warn-slow-fsync
...
wal: warn if sync exceeds a second
2016-06-08 13:07:13 -07:00
6bb96074da
auth, etcdserver: permission of range requests
...
Currently the auth mechanism doesn't support permissions of range
request. It just checks exact matching of key names even for range
queries. This commit adds a mechanism for setting permission to range
queries. Range queries are allowed if a range of the query is [begin1,
end1) and the user has a permission of reading [begin2, range2) and
[begin1, end2) is a subset of [begin2, range2). Range delete requests
will follow the same rule.
2016-06-08 11:57:32 -07:00
35329a1674
Merge pull request #5597 from gyuho/btree_dep
...
*: update google/btree dependency
2016-06-08 11:39:29 -07:00
0b7e5c70a5
*: update google/btree dependency
2016-06-08 11:23:49 -07:00
39eaa37dcf
wal: warn if sync exceeds a second
2016-06-08 11:03:18 -07:00
ff2b24a8ac
Merge pull request #5583 from heyitsanthony/grpc-nuke-waitstate
...
clientv3: use grpc balancer
2016-06-08 09:45:44 -07:00
4a13c9f9b3
clientv3: use grpc balancer
2016-06-08 09:24:13 -07:00
e551aec339
doc: sign release artifacts in armor mode
...
Release guide steps to artifacts signing defaults to binary
signatures, while producing .asc files.
This commit changes to armored signatures, also matching appc
requirements.
Fixes #5594
2016-06-08 17:51:54 +02:00
66a6ed63cb
Merge pull request #5585 from xiang90/token_cleanup
...
etcdserver: make usernameFromCtx more go style
2016-06-08 08:08:58 -07:00
4d56f54898
Merge pull request #5590 from xiang90/user
...
auth: add getuser
2016-06-08 08:08:36 -07:00
7abc8f21eb
integration: update tests for new grpc reconnection interface
2016-06-08 01:04:59 -07:00
62f8ec25c0
clientv3: use grpc reconnection logic
2016-06-08 01:04:59 -07:00
1823702cc6
integration: bridge connections to grpc server
...
Tests need to disconnect the network connection for the client to check
reconnection paths but closing a grpc connection closes the logical connection.
To disconnect the client, instead have a bridge between the server and
the client which can monitor and reset connections.
2016-06-08 00:34:53 -07:00
b382c2c86f
vendor: update grpc
2016-06-07 22:46:43 -07:00
c6496dcff6
auth: add getuser
2016-06-07 22:43:04 -07:00
3e057129e2
Merge pull request #5588 from purpleidea/fix/test-typo
...
e2e: tests: fix small typo
2016-06-07 22:25:57 -07:00
0048782d97
e2e: tests: fix small typo
...
Found when trying to get the e2e tests to run on Fedora which they
don't because of https://github.com/kr/pty/issues/21
2016-06-08 01:14:11 -04:00
2da6fb6616
Merge pull request #5587 from gyuho/function
...
etcd-tester: retry for 'etcdserver: not capable'
2016-06-07 22:01:07 -07:00
350673f1f8
etcd-tester: retry for 'etcdserver: not capable'
...
Fix https://github.com/coreos/etcd/issues/5573 .
Currently stresser starts at the same time as cluster start.
If the stresser got launched too fast/early, all stressers
exit from the error 'etcdserver: not capable', which
means the cluster is not ready yet. This adds additional
error checking, so stresser can retry.
2016-06-07 21:56:04 -07:00
cc1155c93b
etcdserver: make usernameFromCtx more go style
2016-06-07 21:17:32 -07:00
9a14b796e0
Merge pull request #5582 from gyuho/watch_range_end
...
etcdctl: support watch with range_end
2016-06-07 17:08:49 -07:00
7eaf73d273
e2e: test watch command with 2 args
2016-06-07 16:52:19 -07:00
624d5eb0cb
etcdctl: support range_end for watch command
...
Fix https://github.com/coreos/etcd/issues/5575 .
2016-06-07 16:52:15 -07:00
50ef8f148c
Merge pull request #5579 from gyuho/request_union
...
RequestOp, ResponseOp
2016-06-07 13:54:59 -07:00
1610391449
*: following changes for proto update
2016-06-07 13:33:03 -07:00
1e4d3603db
clientv3,ctlv3: following changes for proto change
2016-06-07 13:32:36 -07:00
6e149e3485
etcdserver: following updates for proto change
2016-06-07 13:32:07 -07:00
ca630a0803
etcdserverpb: RequestOp, ResponseOp
...
Fix https://github.com/coreos/etcd/issues/5504 .
2016-06-07 13:31:10 -07:00
0d1133178f
Merge pull request #5574 from xiang90/auth
...
auth: make naming consistent
2016-06-07 11:24:29 -07:00
83ce1051ff
auth: make naming consistent
2016-06-07 10:54:50 -07:00
4984d82d27
Merge pull request #5570 from heyitsanthony/rafthttp-snapshot-tests
...
rafthttp: snapshot testing
2016-06-06 16:02:22 -07:00
7f461b2df9
Merge pull request #5572 from heyitsanthony/fallocate-eintr-fallback
...
pkg/fileutil: fall back to truncate() if fallocate is interrupted
2016-06-06 15:24:42 -07:00
dc91da50b5
rafthttp: snapshot tests
2016-06-06 11:38:11 -07:00
93f114c76c
snap: return errors if Message's snapshot is not entirely read
2016-06-06 11:38:11 -07:00
3aadb25c31
pkg/ioutil: exact readcloser
...
NewExactReadCloser wraps a ReadCloser so it returns errors if exact number
of bytes are not read.
2016-06-06 11:38:10 -07:00
5be39d2c84
wal: don't preallocate on old tail file
...
Code is only there to handle an edge case where the tail wasn't preallocated
already (e.g., via old etcd version or a crash). It also triggers tmpfs
corruption, so remove it.
2016-06-06 11:31:25 -07:00
9022137d2b
Merge pull request #5567 from gyuho/wal_type
...
wal: minor fixes
2016-06-06 10:31:03 -07:00
54aac4ab7e
pkg/fileutil: fall back to truncate() if fallocate is interrupted
...
Fixes #5558
2016-06-06 09:52:34 -07:00
008081ffb5
wal: minor fixes
...
- remove unnecessary type cast
- simply modulo operations
2016-06-06 09:43:19 -07:00
c63eaf45f9
Merge pull request #5566 from ktateish/fix-single-dash
...
*: replace '-' with '--' for long options
2016-06-05 21:38:29 -07:00
8b75a33398
*: replace '-' with '--' for long options
...
A long option should have double dashes (cf. #4595 ),
so are error messages.
2016-06-06 12:25:45 +09:00
3c2a47ea64
Merge pull request #5565 from gyuho/raft_doc
...
raft: small fix in doc
2016-06-05 19:16:08 -07:00
843c53192a
raft: small fix in doc
...
'MsgBeat' is an internal type to signal the leader, not the message type
that gets sent to its followers. 'MsgHeartbeat' is the type sent to followers.
2016-06-05 17:47:46 -07:00
2baca91ee2
Merge pull request #5564 from mitake/auth-v3-cleaning
...
cleaning auth v3
2016-06-05 08:40:06 -07:00
94f22e8a07
*: rename RPCs and structs related to revoking
...
This commit renames RPCs and structs related to revoking.
1. UserRevoke -> UserRevokeRole
2. RoleRevoke -> RoleRevokePermission
2016-06-05 16:57:23 +09:00
60fc1e4d4e
auth, etcdserver: error codes for revoking non existing role and permission
...
This commit adds error codes for representing revoking non existing
role (from user) and permission (from role).
2016-06-05 16:41:10 +09:00
8bebd8caa9
Merge pull request #5559 from gyuho/docker_guide
...
Documentation: add docker guide for v3
2016-06-04 19:14:48 -07:00
2f00b1e071
Documentation: add docker guide for v3
2016-06-04 16:43:44 -07:00
429b2eee58
Merge pull request #5548 from mitake/auth-v3-revoke-delete
...
revoke user, revoke role, and delete role in auth v3
2016-06-03 21:44:37 -07:00