dd6e579b84
raftexample: use Rlock instead of Lock in getsnapshot
2018-09-19 13:25:47 +08:00
bcde798fdd
*: path changes for moving to github/etcd-io/etcd
2018-09-03 21:57:23 +05:30
9bad6fd442
contrib/recipes/watch.go : cancel() the watch after desired watch event
...
fixes #9882
2018-09-01 18:18:24 +05:30
c0f6597c02
contrib/systemd: remove v2 service files
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-28 18:35:01 -07:00
d37f1521b7
*: update import paths to "go.etcd.io/etcd"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-28 17:47:55 -07:00
1de9e1b00d
contrib/recipes: use clientv3.NoLease instead of 0
...
If we have a named const, it's more readable to use that.
Found using https://go-critic.github.io/overview#namedConst-ref
2018-07-28 23:56:45 +03:00
42bef8460c
*: clean up code format
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-07-21 16:34:56 -07:00
7940113906
*: move internal "etcdserver/api/rafthttp"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-21 10:31:16 -07:00
04df89bc11
contrib/raftexample: rename internal packages
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-21 07:45:34 -07:00
4a0bf23d1f
contrib/raftexample: rename "snapCount"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-18 14:39:47 -07:00
7a92bbfed2
etcdserver/*: move internal v2 packages
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-14 12:49:49 -07:00
4c928813fb
contrib: add gRPC gateway script for user/add with full chain TLS.
2018-05-04 10:03:26 -04:00
02ed51d300
Merge pull request #9657 from yaojingguo/remove-dead-code
...
contrib/raftexample: remove useless check
2018-05-01 10:19:35 -07:00
0303480b1a
contrib/raftexample: fix typo
2018-05-01 11:22:36 +08:00
cfa1efc7eb
contrib/raftexample: remove useless check
...
`err == raftsnap.ErrNoSnapshot` being false implies that
`err != raftsnap.ErrNoSnapshot` is true.
2018-04-29 11:34:44 +08:00
9063805180
contrib/tools: support structured logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
ca47aab373
*: fix typos in markdown docs
2018-03-07 10:32:07 -05:00
8a518b01c4
*: revert "internal/mvcc" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
9b5d6edc4b
*: revert "internal/raftsnap"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
80d15948bc
*: move "mvcc" to "internal/mvcc"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:14:41 -08:00
dee39bf786
internal/raftsnap: move "raftsnap" to internal
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 10:36:04 -08:00
2b6fd3094f
*: rename "snap" to "raftsnap" package
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 10:26:07 -08:00
75110dd839
*: fix naked returns
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-10 18:46:15 -08:00
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-07 13:39:42 -07:00
f78498b42a
contrib/raftexample: use bytes.Buffer.String (no 'string()')
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-07-18 16:06:22 -07:00
74e020b715
contrib/raftexample: save snapshot to WAL first
...
Save the snapshot index to the WAL before saving the snapshot to the
filesystem. This ensures that we'll only ever call wal.Open with a
snapshot that was previously saved to the WAL.
2017-06-13 11:24:07 -07:00
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
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
c8a2c7f64f
*: eschew you from documentation
...
Removed line wrapping in affected files as well.
2017-03-06 11:40:46 -08:00
b6eedbacf9
contrib: suppress gosimple errors of raftexample
...
Travis claimed errors of gosimple like below
(https://travis-ci.org/coreos/etcd/jobs/208098545 ):
gosimple checking failed:
contrib/raftexample/raftexample_test.go:78:6: should write erri := <-clus.errorC[i] instead of erri, _ := <-clus.errorC[i]
contrib/raftexample/raftexample_test.go:114:10: should write err := <-eC instead of err, _ := <-eC
This commit fixes the errors.
2017-03-06 16:17:22 +09:00
19d30fd4a7
contrib: add etcd cluster deploy on systemd docs
...
Fix https://github.com/coreos/etcd/issues/5971
2017-01-26 16:56:55 -08:00
6443c25422
contrib/recipes/key.go : fixed method comment
2017-01-23 23:42:50 +05:30
0af1679b61
raftexample: load snapshot when opening WAL
...
Fix https://github.com/coreos/etcd/issues/7056 .
Previously we don't load snapshot when replaying WAL.
2016-12-30 17:28:57 -08:00
e8d06d8e4d
raftexample: confState should be saved after apply
2016-11-20 16:51:33 +08:00
8f718e2e5a
contrib/recipes: unexport and clean up keys.go
...
Fixes #6731
2016-10-28 11:41:13 -04:00
113b27229b
raftexample: remove snapshot TODO in README
2016-09-21 05:07:04 -07:00
e4fbf7db00
raftexample: implement Raft snapshot
2016-09-21 04:23:05 -07:00
4b83f40618
raftexample: add index fields to filter entries
2016-09-21 04:23:05 -07:00
666d555450
raftexample: add snapshotter, handle Ready in raft
2016-09-21 04:23:05 -07:00
15fa8dd866
raftexample: add snapshot methods to kvstore
2016-09-21 04:23:01 -07:00
9f829fdab7
recipes: fix rwmutex so locking works
...
Fixes #6408
2016-09-13 14:09:59 -07:00
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
feaff17259
session: remove session manager and add ttl
2016-08-15 14:12:25 -07:00
b86e723107
contrib/raftexample: Restrict channel types
2016-07-18 17:19:54 -04:00
c1e3601776
raftexample: fixes from go vet, go lint
2016-06-22 12:04:15 -07:00
016be1ef31
contrib/recipes: fix govet and goword warnings
2016-06-17 13:13:09 -07:00
84a487f723
Revert "etcdserverpb: make RangeResponse.More an int64"
...
This reverts commit 84e1ab8765
.
2016-06-02 13:43:40 -07:00
84e1ab8765
etcdserverpb: make RangeResponse.More an int64
2016-06-01 17:10:23 -07:00
fc7da09d67
*: add missing godoc package descriptions
...
Fixes #4074
2016-05-27 15:15:26 -07:00
ef44f71da9
*: update LICENSE header
2016-05-12 20:51:48 -07:00