Gyu-Ho Lee
b7dc6cc604
e2e: test 'lease timetolive'
2016-09-09 08:22:41 +09:00
Gyu-Ho Lee
04a4cea630
etcdctl/ctlv3: add 'lease timetolive' command
2016-09-09 08:21:58 +09:00
Gyu-Ho Lee
4c08f6767c
clientv3: add lease.TimeToLive + tests
2016-09-09 08:18:45 +09:00
Anthony Romano
55ba3d95fb
etcd-tester: support per-agent client/peer/failpoint ports
2016-09-08 16:15:18 -07:00
Gyu-Ho Lee
78cfc8db95
grpcproxy: implement 'LeaseTimeToLive'
2016-09-09 08:14:46 +09:00
Gyu-Ho Lee
63b0cd470d
etcdserver: implement 'LeaseTimeToLive'
2016-09-09 08:14:14 +09:00
Gyu-Ho Lee
0712ebc9b5
v2http: handle '/leases/internal'
2016-09-09 08:12:31 +09:00
Anthony Romano
2e25a772a5
etcd-agent: support rootless operation and configurable gofail ports
2016-09-08 16:12:00 -07:00
Gyu-Ho Lee
617d2d5b98
lease/*: add lease handler for 'LeaseTimeToLive'
2016-09-09 08:11:46 +09:00
Gyu-Ho Lee
3132e36bf3
etcdserverpb: add 'LeaseTimeToLive' RPC
2016-09-09 08:08:14 +09:00
Xiang Li
33b3fdc627
Merge pull request #6388 from groxxda/patch-1
...
etcd.service: order after network.target
2016-09-08 16:31:29 -05:00
Xiang Li
758f0d9017
Merge pull request #6387 from sinsharat/fix_ctl_win
...
ctlv3: fix line parsing for Windows
2016-09-08 16:27:26 -05:00
Alexander Ried
17377f5642
example .service file: Order after network.target
...
From (systemd NetworkTarget description)[https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ ]:
```
[...]since the shutdown ordering of units in systemd is the reverse of the startup ordering, any unit that is order After=network.target can be sure that it is stopped before the network is shut down if the system is powered off. This allows services to cleanly terminate connections before going down, instead of abruptly losing connectivity for ongoing connections, leaving them in an undefined state.[...]
```
2016-09-08 23:11:01 +02:00
sharat
8b764aac71
ctlv3: fix line parsing for Windows
2016-09-09 01:58:33 +05:30
Anthony Romano
bb3ba1ee1c
Merge pull request #6381 from heyitsanthony/fix-wal-rename
...
wal: fsync directory after wal file rename
2016-09-08 12:56:50 -07:00
Xiang Li
28d80ad709
Merge pull request #6370 from xiang90/fix_restore
...
etcdctl: restore should create a snapshot
2016-09-08 14:25:07 -05:00
Xiang Li
e9f841627c
Merge pull request #6384 from hhkbp2/add-test-case-for-leader-transfer-from-follower
...
raft: add test case for leader transfer from follower
2016-09-08 13:58:03 -05:00
Anthony Romano
4563efd766
Merge pull request #6382 from heyitsanthony/unhealthy-err
...
v3api, rpctypes: add ErrUnhealthy
2016-09-08 09:15:58 -07:00
Dylan.Wen
68f2fdc1ff
raft: add test case for leader transfer from follower
2016-09-08 17:22:52 +08:00
Anthony Romano
bd7107bd4b
wal: fsync directory after wal file rename
...
Fixes #6368
2016-09-08 00:09:16 -07:00
Anthony Romano
c449da6ff9
fileutil: windows OpenDir
...
Windows needs to open a directory with write access to fsync but the go
runtime won't open directories that way.
2016-09-08 00:09:16 -07:00
Xiang Li
0cc2f82e7e
Merge pull request #6383 from gyuho/lease-client
...
clientv3: use correct context in toErr (lease)
2016-09-08 01:39:40 -05:00
Gyu-Ho Lee
1aec483e42
clientv3: use correct context in toErr (lease)
2016-09-08 10:58:11 +09:00
Anthony Romano
1defeda792
v3api, rpctypes: add ErrUnhealthy
2016-09-07 16:51:49 -07:00
Xiang Li
0b6350227c
Merge pull request #6341 from xiang90/handle_overload
...
grpcproxy: handle overloaded stream
2016-09-07 16:55:41 -05:00
Sharat
656167d760
etcdctl: Corrected command in Readme.md ( #6376 )
...
Corrected command in Readme.md
2016-09-07 21:09:24 +09:00
Xiang Li
a6c905ad96
Merge pull request #6367 from heyitsanthony/fix-watch-init-reconn
...
clientv3: drain buffered WatchResponses before resuming
2016-09-07 03:15:01 -05:00
Xiang Li
f411583ed1
Merge pull request #6374 from sinsharat/master
...
etcdctlv3: Readme.md updated
2016-09-07 02:29:14 -05:00
sharat
534cb0b749
etcdctlv3: Readme.md updated
...
1. Under PUT example the put command was mentioned in capital which will
give the below error:
Error: unknown command "PUT" for "etcdctl"
Hence corrected the same.
2. The lease id is mentioned with 0x to denote hex but since its an
example, copy pasting the command will give the below error:
Error: bad lease ID (strconv.ParseInt: parsing "0x1234abcd": invalid
syntax), expecting ID in Hex
Hence modified the same to a sample correct value so that a user new to
etcd does not get confused.
3. The command ./etcdctl range foo does not work and gives the below
error:
Error: unknown command "range" for "etcdctl"
Hence corrected the same
#6372
2016-09-07 12:35:20 +05:30
Xiang Li
7b7b29ad1e
Merge pull request #6373 from vimalk78/master
...
pkg/pbutil: corrected the package name in logger in pbutil.go
2016-09-07 01:35:21 -05:00
Vimal Kumar
5ea6990a73
corrected the package name in logger
2016-09-07 11:52:01 +05:30
goroutine
ce49fb6ec4
raft: add tests for IsLocalMsg ( #6357 )
...
* raft: add tests for IsLocalMsg
* report index of failed tests
2016-09-07 12:52:37 +09:00
Xiang Li
7e182fa24a
etcdctl: restore should create a snapshot
...
Restore should create a snasphot. So the new db file
can be sent to newly joined member.
2016-09-07 11:21:53 +08:00
Gyu-Ho Lee
b24527f2f0
Merge pull request #6353 from petermattis/pmattis/grow-inflights-buffer
...
raft: grow the inflights buffer instead of preallocating
2016-09-07 09:51:45 +09:00
Anthony Romano
ad318ee891
clientv3: drain buffered WatchResponses before resuming
...
Otherwise, the watcherStream can receive WatchResponses in the
middle of a resume, corrupting the stream.
Fixes #6364
2016-09-06 17:15:39 -07:00
Anthony Romano
af5ab7b351
Merge pull request #6365 from heyitsanthony/fix-dns-bind
...
embed: reject domain names before binding
2016-09-06 16:02:46 -07:00
Anthony Romano
7644a8ad76
integration: test domain name URLs are rejected before binding
2016-09-06 15:33:47 -07:00
Anthony Romano
2752169d6a
embed: reject binding listeners to domain names
...
Fixes #6336
2016-09-06 15:33:28 -07:00
Peter Mattis
c1948f2940
raft: grow the inflights buffer instead of preallocating
...
Grow the inflights buffer as needed instead of preallocating it to its
max size. This avoids preallocating a lot of unnecessary
space (8*MaxInflightMsgs) when using lots of raft groups while still
allowing for a reasonable MaxInflightMsgs configuration.
2016-09-06 18:07:01 -04:00
Xiang Li
da6a0f0594
Merge pull request #6362 from kevinburke/fix-typo
...
Documentation: fix typo
2016-09-06 14:45:03 -05:00
Anthony Romano
96ed856bca
Merge pull request #6345 from topecongiro/patch-1
...
rafthttp: remove unnecessary sendc from peer
2016-09-06 11:32:16 -07:00
Kevin Burke
e508ce36ef
Documentation: fix typo
...
"its" in this case is not short for "it is", it should be a possessive.
2016-09-06 11:26:27 -07:00
Jonathan Boulle
0b9c65c82f
Merge pull request #6360 from jonboulle/master
...
scripts, doc: remove actool references
2016-09-06 18:37:28 +02:00
Jonathan Boulle
fd0539c8cc
scripts, doc: remove actool references
...
Since c597d591b56a2a9ed355c57a717d1b2ed4c31aa9 the release script uses
acbuild instead of actool, so purge all the references and have the
release script check for acbuild's presence instead.
2016-09-06 17:47:41 +02:00
Xiang Li
d36c0a1444
Merge pull request #6356 from mitake/root-role
...
auth, e2e: the root role should be granted access to every key
2016-09-06 15:31:20 +08:00
Hitoshi Mitake
bc5d7bbe03
auth, e2e, clientv3: the root role should be granted access to every key
...
This commit changes the semantics of the root role. The role should be
able to access to every key.
Partially fixes https://github.com/coreos/etcd/issues/6355
2016-09-06 16:10:28 +09:00
Gyu-Ho Lee
271df0dd71
Merge pull request #6354 from es-chow/fix-typo-in-interacting_v3-md
...
interacting_v3.md: fix typo
2016-09-06 10:17:56 +09:00
es-chow
b17b482268
interacting_v3.md: fix typo
2016-09-06 09:08:37 +08:00
Xiang Li
65fb1ad362
Merge pull request #6351 from petermattis/pmattis/raft-global-rand
...
raft: use a singleton global rand
2016-09-05 22:25:18 +08:00
Peter Mattis
4a33aa3917
raft: use a singleton global rand
...
rand.NewSource creates a 4872 byte object. With a small number of raft
groups in a process this isn't a problem. With 10k raft groups we'd use
46MB for these random sources. The only usage is in
raft.resetRandomizedElectionTimeout which isn't performance critical.
Fixes #6347 .
2016-09-05 09:03:18 -04:00