Anthony Romano
93f114c76c
snap: return errors if Message's snapshot is not entirely read
2016-06-06 11:38:11 -07:00
Anthony Romano
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
Gyu-Ho Lee
9022137d2b
Merge pull request #5567 from gyuho/wal_type
...
wal: minor fixes
2016-06-06 10:31:03 -07:00
Gyu-Ho Lee
008081ffb5
wal: minor fixes
...
- remove unnecessary type cast
- simply modulo operations
2016-06-06 09:43:19 -07:00
Gyu-Ho Lee
c63eaf45f9
Merge pull request #5566 from ktateish/fix-single-dash
...
*: replace '-' with '--' for long options
2016-06-05 21:38:29 -07:00
Katsuyuki Tateishi
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
Gyu-Ho Lee
3c2a47ea64
Merge pull request #5565 from gyuho/raft_doc
...
raft: small fix in doc
2016-06-05 19:16:08 -07:00
Gyu-Ho Lee
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
Xiang Li
2baca91ee2
Merge pull request #5564 from mitake/auth-v3-cleaning
...
cleaning auth v3
2016-06-05 08:40:06 -07:00
Hitoshi Mitake
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
Hitoshi Mitake
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
Xiang Li
8bebd8caa9
Merge pull request #5559 from gyuho/docker_guide
...
Documentation: add docker guide for v3
2016-06-04 19:14:48 -07:00
Gyu-Ho Lee
2f00b1e071
Documentation: add docker guide for v3
2016-06-04 16:43:44 -07:00
Xiang Li
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
Hitoshi Mitake
c7a1423d45
*: support deleting a role in auth v3
...
This commit implements RoleDelete() RPC for supporting deleting a role
in auth v3. It also adds a new subcommand "role delete" to etcdctl.
2016-06-04 13:42:45 +09:00
Hitoshi Mitake
0cb1343109
*: support revoking a key from a role in auth v3
...
This commit implements RoleRevoke() RPC for supporting revoking a key
from a role in auth v3. It also adds a new subcommand "role revoke" to
etcdctl.
2016-06-04 13:42:45 +09:00
Hitoshi Mitake
957b07c408
*: support revoking a role from a user in auth v3
...
This commit implements UserRevoke() RPC for supporting revoking a role
from a user in auth v3. It also adds a new subcommand "user revoke" to
etcdctl.
2016-06-04 13:39:26 +09:00
Gyu-Ho Lee
3f1af453b9
Merge pull request #5560 from gyuho/lease_test
...
clientv3/integration: test lease closed connection
2016-06-03 18:23:03 -07:00
Gyu-Ho Lee
0cb4dd4331
clientv3/integration: test lease closed connection
...
Tests if lease operations return ErrConnClosed when
the client is closed.
2016-06-03 16:41:32 -07:00
Xiang Li
6a35833fc3
Merge pull request #5450 from luxas/more_arches
...
travis: Catch compilation errors in CI for arm and ppc64le
2016-06-03 16:12:28 -07:00
Anthony Romano
c093234e3a
Merge pull request #5557 from heyitsanthony/fix-watcher-cancel
...
mvcc: don't cancel watcher if stream is already closed
2016-06-03 11:28:54 -07:00
Anthony Romano
88afb0b0a6
Merge pull request #5543 from heyitsanthony/clientv3-unblock-reconnect
...
clientv3: don't hold client lock while dialing
2016-06-03 11:28:44 -07:00
Xiang Li
6187d812da
Merge pull request #5556 from xiang90/r_test
...
raft: fix TestNodeStepUnblock
2016-06-03 11:13:43 -07:00
Anthony Romano
f57b4eb46d
mvcc: don't cancel watcher if stream is already closed
...
Close() already cancels all the watchers but doesn't bother to clear out
the bookkeeping maps so Cancel() may try to cancel twice.
Fixes #5533
2016-06-03 11:12:46 -07:00
Anthony Romano
7dfe7db243
clientv3: panic if ActiveConnection tries to return non-nil connection
2016-06-03 10:25:20 -07:00
Anthony Romano
267d1cb16f
clientv3: fix watch to reconnect on failure
...
It was spinning before.
2016-06-03 10:25:20 -07:00
Anthony Romano
5f5a203e27
clientv3: don't hold client lock while dialing
...
Causes async reconnect to block while the client is dialing.
This was also causing problems with the Close error message, so
now Close() will return the last dial error (if any) instead of
clearing it out with a cancel().
Fixes #5416
2016-06-03 10:25:20 -07:00
Xiang Li
500296d0fb
raft: fix TestNodeStepUnblock
...
The test cases have side-effect. We need to stop testing if one of the test
fails. Also timeout should be much longer to avoid false-positive.
2016-06-03 10:22:11 -07:00
Xiang Li
948dc5e425
Merge pull request #5552 from ktateish/fix-wrong-link
...
Fix wrong links
2016-06-03 10:06:13 -07:00
Xiang Li
634b9584ef
Merge pull request #5555 from xiang90/fix_rm
...
rafthttp: report error to correct chan
2016-06-03 09:48:43 -07:00
Xiang Li
5183631f17
rafthttp: report error to correct chan
2016-06-03 09:18:02 -07:00
Lucas Käldström
95fc21e38b
travis: Catch compilation errors in CI for arm and ppc64le
2016-06-03 18:46:36 +03:00
Katsuyuki Tateishi
5bff4d85d6
Doc: fix links using url for internal doc
2016-06-03 22:26:01 +09:00
Katsuyuki Tateishi
9585daf0a9
Doc: fix wrong links and remove unused or duplicate ones
2016-06-03 22:23:57 +09:00
Xiang Li
b3fee0abff
Merge pull request #5539 from mitake/auth-v3-get-role
...
*: support getting role in auth v3
2016-06-02 21:48:45 -07:00
Hitoshi Mitake
10ee69b44c
*: support getting role in auth v3
...
This commit implements RoleGet() RPC of etcdserver and adds a new
subcommand "role get" to etcdctl v3. It will list up permissions that
are granted to a given role.
$ ETCDCTL_API=3 bin/etcdctl role get r1
Role r1
KV Read:
b
d
KV Write:
a
c
d
2016-06-03 13:03:54 +09:00
Xiang Li
755567cb3d
Merge pull request #5547 from xiang90/int
...
integration: always return active client
2016-06-02 15:52:38 -07:00
Xiang Li
bbfe7f401f
integration: always return active client
...
In the integration test, we sometimes stop/restart an etcd server.
Now our client has internal connection monitoring logic that might
set conn to nil when there is a connection failure and the redial
also fails.
Chaning randClient to always return a client with active connection
to make integration test reliable.
2016-06-02 14:49:32 -07:00
Xiang Li
85691dbbe5
Merge pull request #5546 from raoofm/patch-6
...
Doc: fix link for migrate command in v2-migration
2016-06-02 14:21:36 -07:00
Raoof Mohammed
6ac67ecd5c
Doc: fix link for migrate command in v2-migration
...
Doc: fix link for migrate command in v2-migration
2016-06-02 17:19:43 -04:00
Anthony Romano
6d96dd581a
Merge pull request #5545 from heyitsanthony/revert-more-i64
...
Revert "etcdserverpb: make RangeResponse.More an int64"
2016-06-02 14:09:31 -07:00
Anthony Romano
84a487f723
Revert "etcdserverpb: make RangeResponse.More an int64"
...
This reverts commit 84e1ab876539b0bcd1387d7ce6c8b07b72f398d2.
2016-06-02 13:43:40 -07:00
Xiang Li
3005f2717f
Merge pull request #5541 from xiang90/tls
...
transport: require tls12
2016-06-02 10:11:57 -07:00
Xiang Li
8b28c647ea
transport: require tls12
2016-06-02 09:38:56 -07:00
Xiang Li
51a048e6b3
Merge pull request #5540 from xiang90/fix_snap
...
snap: fix write snap
2016-06-02 09:12:50 -07:00
Xiang Li
2b77e9a086
Merge pull request #5538 from rustyrobot/fix-header-formatting
...
doc: fix header formatting
2016-06-02 07:58:27 -07:00
Xiang Li
ab0ccdc4df
snap: fix write snap
...
Do not use writeFile since it does not sync file before closing.
This can lead to slient file corruption when disk is full.
2016-06-02 07:38:48 -07:00
Evgeny L
9098f27745
doc: fix header formatting
2016-06-02 16:15:08 +03:00
Xiang Li
29d2caf14a
Merge pull request #5532 from xiang90/rh
...
rafthttp: simplify initialization funcs
2016-06-01 22:31:19 -07:00
Xiang Li
a047aa4a81
rafthttp: rename to to peerID
2016-06-01 22:12:47 -07:00