Gyuho Lee
fb674833c2
Merge pull request #10094 from nolouch/drop-read
...
server: drop read request if the leader is changed
2018-09-23 19:32:44 -07:00
Xiang Li
12cfc5fce6
Merge pull request #10115 from hexfusion/fx_dvdoc
...
Documentation/dev-guide: add gRPC-gateway example of txn target VERSION syntax.
2018-09-22 23:34:31 -07:00
Sam Batschelet
e935594d34
Documentation/dev-guide: add example of txn target VERSION syntax for gRPC-gateway.
2018-09-22 21:30:35 -04:00
Xiang Li
d987caeb0d
Merge pull request #10109 from jingyih/add_db_integrity_verification_to_snapshot_status
...
clientv3: add db integrity check in snapshot status
2018-09-21 10:42:24 -07:00
Gyuho Lee
7d21cb24e9
bill-of-materials.json: regenerate
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 02:13:56 -07:00
Gyuho Lee
d5967b40db
scripts/updatedep: fix shellcheck errors
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 02:08:25 -07:00
Gyuho Lee
67b0b0cd03
vendor: upgrade "go.uber.org/zap" to v1.9.1
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 01:51:59 -07:00
Gyuho Lee
bea4f1337a
go.mod: upgrade "go.uber.org/zap" to v1.9.1
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 01:51:53 -07:00
Gyuho Lee
cd789fd8f6
vendor: revendor
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 01:48:10 -07:00
Gyuho Lee
527ff8216d
go.mod,sum: initial commit with Go 1.11 module
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 01:47:48 -07:00
Gyuho Lee
ad2d18aeff
scripts/updatedep: use Go 1.11 module for dependency management
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 01:47:24 -07:00
Gyuho Lee
09d1426ac0
Gopkg: remove to use go module
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-21 01:47:04 -07:00
Jingyi Hu
422f867f6b
clientv3: add integrity check in snapshot status
...
Add snapshot file integrity check in snapshot status. If the file is
corrupted, return with error message.
2018-09-20 12:59:27 -07:00
Sam Batschelet
1a3be73387
Merge pull request #10110 from zhongwencool/zhongwencool-patch-1
...
Documentation: add erlang client for etcd API v3
2018-09-20 12:41:33 -04:00
某文
6a07f831d4
Documentation: add erlang client for etcd API v3
2018-09-20 23:49:48 +08:00
Xiang Li
f32bc50765
Merge pull request #10105 from johncming/master
...
bugfix: use Rlock instead of Lock in raftexample.
2018-09-19 15:50:41 -07:00
Xiang Li
b9b75f81e5
Merge pull request #10106 from petermattis/pmattis/ready-must-sync
...
raft: fix Ready.MustSync logic
2018-09-19 15:39:44 -07:00
Peter Mattis
66ee394527
raft: fix Ready.MustSync logic
...
The previous logic was erroneously setting Ready.MustSync to true when
the hard state had not changed because we were comparing an empty hard
state to the previous hard state. In combination with another misfeature
in CockroachDB (unnecessary writing of empty batches), this was causing
a steady stream of synchronous writes to disk.
2018-09-19 16:33:16 -04:00
caoming
dd6e579b84
raftexample: use Rlock instead of Lock in getsnapshot
2018-09-19 13:25:47 +08:00
Joe Betz
ab544f2dde
Merge pull request #10092 from ivuk/Documentation-fix-typo
...
Documentation/v2/metrics.md: Fix a typo
2018-09-18 10:32:42 -07:00
nolouch
6ea54195a6
client/integration: try to fix tests
2018-09-18 01:44:57 +08:00
nolouch
c15fb607f6
server: broadcast leader changed
2018-09-17 14:15:04 +08:00
Gyuho Lee
c2845a3a9d
Merge pull request #10097 from atlaskerr/documentation-annotate-logger
...
Documentation: Annotate --logger flag
2018-09-15 17:28:45 -07:00
Atlas Kerr
952a4365ce
Documentation: Annotate --logger flag
...
This commit annotates the `--logger` flag to let users know that it is
not available in versions 3.3.x or later.
2018-09-15 18:51:53 -05:00
nolouch
fd5ef74b80
clientv3/integration: try to fix tests
2018-09-14 17:57:56 +08:00
nolouch
f3f6427586
server: prevent blocking
2018-09-14 16:08:29 +08:00
nolouch
4de27039cb
server: drop read request if found leader changed
2018-09-14 15:58:35 +08:00
Igor Vuk
6ef7c5f462
Documentation/v2/metrics.md: Fix a typo
...
Typo fix: particlarly -> particularly
2018-09-13 21:05:32 +02:00
Gyuho Lee
001bbb97cc
Merge pull request #9999 from vimalk78/9377_document_election_api
...
clientv3/concurrency: Document Election API context parameter
2018-09-13 10:47:23 -07:00
Xiang Li
90ecbabb7d
Merge pull request #10086 from vimalk78/fix-Documentation-etcd-io
...
Documentation/*: change github url, import path from coreos to etcd-io
2018-09-13 10:15:53 -07:00
Vimal K
35fa6e13b9
clientv3/concurrency: Document Election API context parameter
...
fixes #9377
2018-09-13 12:15:01 +05:30
Gyuho Lee
a7b1306ecf
Merge pull request #10088 from ivuk/Documentation-fix-typo
...
Documentation/metrics.md: Fix a typo
2018-09-12 14:29:32 -07:00
Igor Vuk
09b7590c0b
Documentation/metrics.md: Fix a typo
...
Typo fix: particlarly -> particularly
2018-09-12 23:19:21 +02:00
Vimal K
bda28c3ce2
Documentation/*: change github url, import path from coreos to etcd-io
2018-09-12 22:05:08 +05:30
Xiang Li
ec5ff10436
Merge pull request #10019 from thrawn01/grpc-proxy-watch-errors
...
Improve watch error reporting when using grpc proxy
2018-09-10 12:54:33 -07:00
Gyuho Lee
a18b467111
Merge pull request #10075 from gyuho/dash-etcd-io
...
Documentation/op-guide: remove "dash.etcd.io"
2018-09-06 18:11:47 -07:00
Gyuho Lee
2fc06c8ec9
Documentation/op-guide: remove "dash.etcd.io"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-06 17:58:54 -07:00
Gyuho Lee
2589353c1f
Merge pull request #10074 from gyuho/raft-link
...
raft: fix link typo
2018-09-06 09:25:45 -07:00
Gyuho Lee
c2b3c54370
raft: fix link typo
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-09-06 09:20:22 -07:00
Gyuho Lee
1c80ce4b29
Merge pull request #10070 from philips/add-more-projects
...
Please read https://github.com/etcd-io/etcd/blob/master/CONTRIBUTING.md#contribution-flow .
2018-09-05 20:02:49 -07:00
Brandon Philips
085a5bd2f8
Documentation: add more projects
2018-09-05 19:55:31 -07:00
Xiang Li
cf3f79a04d
Merge pull request #10069 from philips/add-more-projects
...
Documentation: add new projects
2018-09-05 19:33:50 -07:00
Brandon Philips
16ad8b48bd
Documentation: add new projects
...
A number of projects using etcd were missing. Add.
2018-09-05 19:30:08 -07:00
Sam Batschelet
8b66718529
Merge pull request #10067 from hexfusion/fx_ddb_doc
...
tools/etcd-dump-db: fix iterate-bucket example.
2018-09-05 22:07:03 -04:00
Sam Batschelet
d43f223e36
tools/etcd-dump-db: fix iterate-bucket example.
2018-09-05 20:41:42 -04:00
Gyuho Lee
1df1ddff43
Merge pull request #10066 from mrIncompetent/use-testing-interface
...
Use testing.TB for integration test helpers to enable usage in benchmarks
2018-09-04 14:04:06 -07:00
mrIncompetent
2be5994f61
integration: Replace *testing.T with testing.TB
...
Use testing.TB for integration test helpers to enable usage in benchmarks
2018-09-04 22:34:40 +02:00
Tobias Schottdorf
7a8ab37bfd
raft: fix correctness bug in CommittedEntries pagination
...
In #9982 , a mechanism to limit the size of `CommittedEntries` was
introduced. The way this mechanism worked was that it would load
applicable entries (passing the max size hint) and would emit a
`HardState` whose commit index was truncated to match the limitation
applied to the entries. Unfortunately, this was subtly incorrect
when the user-provided `Entries` implementation didn't exactly
match what Raft uses internally. Depending on whether a `Node` or
a `RawNode` was used, this would either lead to regressing the
HardState's commit index or outright forgetting to apply entries,
respectively.
Asking implementers to precisely match the Raft size limitation
semantics was considered but looks like a bad idea as it puts
correctness squarely in the hands of downstream users. Instead, this
PR removes the truncation of `HardState` when limiting is active
and tracks the applied index separately. This removes the old
paradigm (that the previous code tried to work around) that the
client will always apply all the way to the commit index, which
isn't true when commit entries are paginated.
See [1] for more on the discovery of this bug (CockroachDB's
implementation of `Entries` returns one more entry than Raft's when the
size limit hits).
[1]: https://github.com/cockroachdb/cockroach/issues/28918#issuecomment-418174448
2018-09-04 14:52:23 +02:00
Xiang Li
6143c135bd
Merge pull request #10060 from vimalk78/go.etcd.io-move-minor-changes
...
*: path changes for moving to github/etcd-io/etcd
2018-09-03 13:48:01 -07:00
Vimal K
bcde798fdd
*: path changes for moving to github/etcd-io/etcd
2018-09-03 21:57:23 +05:30