Gyuho Lee
37546f74ab
*: move "version" to "internal/version"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-29 10:00:20 -08:00
Sahdev P. Zala
3b7e2ce0ca
StatusFromError: handle return value of the function
...
status.FromError can return nil, false. We are handling the return values
most places in code but some places we aren't. Fixing it herewith.
Fixes #9117
2018-01-08 22:28:20 -05:00
Gyu-Ho Lee
0199bdc266
*: fix 'ineffassign' issues
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-10-03 10:14:33 -07:00
Gyu-Ho Lee
6f76d52a1a
*: deprecate grpc.Code, grpc.ErrorDesc
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-11 09:28:56 -07:00
Anthony Romano
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
Anthony Romano
33c375dc44
*: fill out blank package godocs
...
Mostly one-liner short descriptions, but also includes some typo fixes
and some examples.
2017-05-18 09:41:13 -07:00
fanmin shi
b44bd6d2a9
etcd-runner: fix race on nextc
2017-05-10 11:21:17 -07:00
fanmin shi
87d99fe038
etcd-runner: remove mutex on validate() and release() in global.go
...
election runner can deadlock in atomic release().
suppose election runner has two clients A and B.
if A is a leader and B is a follower, B obtains lock
for release() and waits for A to close(nextc) which signal
next round is ready. However, A can only close(nextc) if it
obtains lock for release(); hence deadlock.
this pr removes atomicity of validate() and release() in global.go
and gives the responsibility of locking to each runner.
FIXES #7891
2017-05-09 15:38:13 -07:00
Anthony Romano
6dd8fb6f24
Revert "Merge pull request #7732 from heyitsanthony/lease-err-ka"
...
This reverts commit fbbc4a4979b256125d2238f6325ad86e7f1b58bd, reversing
changes made to f254e383859a2939d5929346f6595549f424f7c5.
Fixes #7851
2017-05-02 09:36:16 -07:00
fanmin shi
60b9adc267
Merge pull request #7812 from fanminshi/refactor_runner
...
etcd-runner: fix runner and minor refactoring.
2017-04-25 15:21:57 -07:00
fanmin shi
77fbe10dfc
etcd-runner: add --prefix flag, allows inf round, and minor vars refactoring in watch runner.
2017-04-25 14:18:42 -07:00
fanmin shi
debc69e1f2
etcd-runner: pass in lock name as a command arg for lock_racer.
2017-04-25 14:18:42 -07:00
fanmin shi
72fb756af3
etcd-runner: add lease ttl as a flag and fatal when err in lease-runner.
2017-04-25 14:18:42 -07:00
fanmin shi
d57ad8ec8d
etcd-runner: add barrier, observe !ok handling, and election name arg to election-runner.
2017-04-25 14:17:59 -07:00
fanmin shi
fa85445ef8
etcd-runner: add rate limiting in doRounds()
2017-04-25 14:00:52 -07:00
fanmin shi
b94b8b5707
etcd-runner: move root cmd into command package
...
this allows easier sharing of global variable for sub commands.
2017-04-25 10:19:20 -07:00
Anthony Romano
78afc853f4
etcd-runner: update to use new lease interface
2017-04-24 23:49:45 -07:00
Gyu-Ho Lee
7fb1f68ff8
*: coreos/rkt -> rkt/rkt
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-11 08:48:48 -07:00
Anthony Romano
5f366db7d1
etcd-runner: update election command to use new Leader() interface
2017-04-07 16:36:38 -07:00
Manjunath A Kumatagi
0914b8b707
test: Fix gosimple errors
...
Getting gosimple suggestion while running test script, so this PR is for fixing gosimple S1019 check.
raft/node_test.go:456:40: should use make([]raftpb.Entry, 1) instead (S1019)
raft/node_test.go:457:49: should use make([]raftpb.Entry, 1) instead (S1019)
raft/node_test.go:458:43: should use make([]raftpb.Message, 1) instead (S1019)
Refer https://github.com/dominikh/go-tools/blob/master/cmd/gosimple/README.md#checks for more information.
2017-02-09 08:01:28 -05:00
sharat
d0f301adb7
etcd-runner:add flags in watcher for hardcoded values
2017-01-04 15:17:53 +05:30
sharat
5cb6dd268b
etcd-runner: make command compliant
2017-01-03 14:43:58 +05:30
Xiang Li
523a859ad9
etcd-runner: clean up watcher runner
2016-11-10 08:56:19 -08:00
Xiang Li
9f0ee53e86
etcd-runner: move string generation to pkg/stringutil
2016-10-31 12:20:02 -07:00
Gyu-Ho Lee
5bd00ab1f6
*: fix minor typos
2016-10-31 09:47:15 -07:00
Xiang Li
e5c3978725
etcd-runner: refactor code structure and flag cleanup
2016-10-30 18:45:16 -07:00
Xiang Li
b398233f4f
Merge pull request #6730 from gyuho/round-prefix
...
etcd-runner: fix typo in round prefix
2016-10-25 16:24:27 -07:00
Gyu-Ho Lee
12488d4a70
etcd-runner: fix typo in round prefix
2016-10-25 15:59:44 -07:00
sharat
6e7e346c93
etcd-runner: Added client connection timeout flag
2016-10-26 01:58:22 +05:30
sharat
69ae49a1dd
etcd-runner: remove unused code and change name for randClient
2016-10-25 19:16:27 +05:30
sharat
90146d863c
etcd-runner: watcher runner respect rounds
2016-10-22 05:00:10 +05:30
sharat
50523e22d8
etcd-runner: make run watcher fail safe
2016-10-20 00:23:35 +05:30
sharat
8297322176
etcd-runner:added watch runner
2016-10-17 23:04:33 +05:30
Xiang Li
feaff17259
session: remove session manager and add ttl
2016-08-15 14:12:25 -07:00
Anthony Romano
fc7da09d67
*: add missing godoc package descriptions
...
Fixes #4074
2016-05-27 15:15:26 -07:00
Anthony Romano
393725fe5f
clientv3/concurrency: ctx-ize Leader(), Resign(), and Unlock()
2016-05-13 10:07:35 -07:00
Anthony Romano
4612e2d59a
Merge pull request #5340 from heyitsanthony/etcd-runner-election
...
etcd-runner: election mode
2016-05-12 22:53:35 -07:00
Anthony Romano
4fe91ed1e2
etcd-runner: election mode
2016-05-12 22:32:33 -07:00
Anthony Romano
215afb9b1d
etcd-runner: refactor round code
2016-05-12 22:32:33 -07:00
Gyu-Ho Lee
3d523e34b1
tools: update LICENSE header
2016-05-12 20:50:17 -07:00
Xiang Li
73ecb61ff4
etcd-runner: initial commit
2016-04-30 17:24:03 -07:00