rohitsardesai83
42a7ea6d33
etcd: Replace ghodss/yaml with sigs.k8s.io/yaml
...
To remove the dependency on ghodss/yaml. Replaced this dependency with sigs.k8s.io/yaml.
This wil help to remove the ghodss/yaml dependency from main kubernetes repository.
xref: https://github.com/kubernetes/kubernetes/issues/77024
2019-05-02 12:34:36 +05:30
Gyuho Lee
e899023f3f
Merge pull request #10640 from shrajfr12/gomodulecompat
...
Fix module path to have the major version to comply with go modules specification.
2019-05-01 22:46:03 -07:00
Xiang Li
8a86a60fbc
Merge pull request #10699 from jingyih/protect_tree_clone_with_write_lock
...
mvcc: protect tree clone with write lock
2019-05-01 13:25:31 -07:00
Jingyi Hu
88922b0d08
mvcc: protect tree clone with write lock
2019-05-01 12:34:09 -07:00
Xiang Li
fc6936863a
Merge pull request #10582 from johncming/empty_update
...
clientv3/naming: ignore empty update.
2019-04-30 14:21:56 -07:00
Xiang Li
1bd02b2053
Merge pull request #10595 from johncming/locking
...
clientv3: modify lock type.
2019-04-30 14:19:02 -07:00
Xiang Li
e3f37534e1
Merge pull request #10684 from nvanbenschoten/nvanbenschoten/appendAndCopy
...
raft: Avoid multiple allocs when merging stable and unstable log
2019-04-30 11:51:32 -07:00
Xiang Li
0bc219a91e
Merge pull request #10679 from nvanbenschoten/nvanbenschoten/commitAlloc
...
raft: Avoid allocation when boxing slice in maybeCommit
2019-04-30 10:55:16 -07:00
Xiang Li
efcc1088f0
Merge pull request #10680 from nvanbenschoten/nvanbenschoten/appendAlloc
...
raft: avoid allocation of Raft entry due to logging
2019-04-27 18:14:20 -07:00
Matteo Olivi
41a0d67b30
Documentation: add links to blog post on benchmarking disks with fio
...
The documentation mentions fio as a tool to benchmark disks to assess
whether they are fast enough for etcd. But doing that is far from trivial,
because fio is very flexible and complex to use, and the user must make sure
that the workload fio generates mirrors the I/O workload of its etcd cluster
closely enough. This commit adds links to a blog post with an example of how
to do that.
2019-04-27 13:13:11 -04:00
shivaramr
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
Nathan VanBenschoten
b5593de806
raft: Avoid multiple allocs when merging stable and unstable log
...
Appending to an empty slice twice could (and often did) result in
multiple allocations. This was wasteful. We can avoid this by performing
a single allocation with the correct size and copying into it.
2019-04-26 14:57:51 -04:00
Nathan VanBenschoten
24f35a9861
raft: avoid allocation of Raft entry due to logging
...
`raftpb.Entry.String` takes a pointer receiver, so calling it
on a loop variable was causing the variable to escape. Removing
the `.String()` call was enough to avoid the allocation, but
this also avoids a memory copy and prevents similar bugs.
This was responsible for 11.63% of total allocations in an
experiment with https://github.com/nvanbenschoten/raft-toy .
2019-04-26 14:56:31 -04:00
Nathan VanBenschoten
208b8a349c
raft: Avoid allocation when boxing slice in maybeCommit
...
By boxing a heap-allocated slice header instead of the slice
header on the stack, we can avoid an allocation when passing
through the sort.Interface interface.
This was responsible for 26.61% of total allocations in an
experiment with https://github.com/nvanbenschoten/raft-toy .
2019-04-26 00:10:45 -04:00
Jingyi Hu
cca0d5c1be
Merge pull request #10672 from nolouch/fix-probing-log
...
api/rafthttp: fix the probing status log print
2019-04-24 23:05:23 -07:00
Gyuho Lee
8146e1ebdf
CHANGELOG-3.4: add json-iterator/go change
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-04-23 15:00:59 -07:00
Gyuho Lee
1697c06df9
Merge pull request #10667 from dims/replace-ugorji-with-json-iterator
...
Replace ugorji/codec with json-iterator/go
2019-04-23 14:52:41 -07:00
Davanum Srinivas
3655a4b228
vendor: Run scripts/updatedeps.sh to cleanup unused code
2019-04-23 16:54:44 -04:00
Davanum Srinivas
daee668b75
client: Switch to case sensitive unmarshalling to be compatible with ugorji
...
Using lessons learned from k8s changes:
https://github.com/kubernetes/kubernetes/pull/65034
Change-Id: Ia17a8f94ae6ed00c5af2595c2b48d3c9a0344427
2019-04-23 16:54:44 -04:00
Davanum Srinivas
290ac75869
*: update bill-of-materials
...
Change-Id: Ibfa24e28cacd58388f7606a945c8ac35e1c34580
2019-04-23 16:54:44 -04:00
Davanum Srinivas
6de29e08aa
vendor: Add json-iterator and its dependencies
...
Change-Id: I1f3fc00f95efadd6da9b4c248156f8460ae0ff97
2019-04-23 16:54:44 -04:00
Davanum Srinivas
86e3481ba2
scripts: Remove generated code and script
...
Change-Id: Iac4601443bcad71920fd96b97bfe21c16116577a
2019-04-23 16:54:44 -04:00
Davanum Srinivas
90108a2e61
client: Replace ugorji/codec with json-iterator/go
...
We need to use the stdlib-compatible one that is case-sensitive, etc
Change-Id: Id0df573a70e09967ac7d8c0a63d99d6a49ce82f1
2019-04-23 16:54:44 -04:00
Gyuho Lee
9dfde8a4fb
Merge pull request #10664 from jingyih/update_changelog_3p4_from_pr10646
...
CHANGELOG: update CHANGELOG-3.4 from #10646
2019-04-23 11:35:58 -07:00
nolouch
decc0d5f43
api/rafthttp: fix the probing status print
...
Signed-off-by: nolouch <nolouch@gmail.com>
2019-04-23 19:51:34 +08:00
Manjunath A Kumatagi
867b45d865
client: Fix tests for latest golang
2019-04-22 08:14:10 -05:00
Xiang Li
216808eab5
Merge pull request #10663 from gyuho/log
...
etcdserver: improve heartbeat send failures logging
2019-04-22 13:37:40 +08:00
Jingyi Hu
b11223caf5
CHANGELOG: update CHANGELOG-3.4 from #10646
2019-04-19 21:23:49 -07:00
Jingyi Hu
943d6887c4
Merge pull request #10646 from yingnanzhang666/metrics_db_compaction
...
fix issue that metric db_compaction_total_duration_milliseconds is always 0
2019-04-19 21:10:41 -07:00
Gyuho Lee
877f11bed8
etcdserver: improve heartbeat send failures logging
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-04-19 10:58:17 -07:00
Joe Betz
85594ae99c
Merge pull request #10661 from jpbetz/backport-changelog
...
CHANGELOG: update changelogs for backport of PR #10646
2019-04-18 14:10:17 -07:00
Joe Betz
93479fdecd
CHANGELOG: update changelogs for backport of PR #10646
2019-04-18 09:39:22 -07:00
Sahdev Zala
cd7ffbe227
Merge pull request #10654 from CydeWeys/patch-1
...
embed: Fix HTTPs -> HTTPS in error message
2019-04-17 15:14:21 -04:00
Ben McIlwain
b3dd3d3856
embed: Fix HTTPs -> HTTPS in error message
2019-04-17 09:38:53 -04:00
Yingnan Zhang
c5cb5509ea
mvcc: fix db_compaction_total_duration_milliseconds
2019-04-16 10:32:21 +08:00
Xiang Li
f29b1ada19
Merge pull request #10635 from jingyih/add_learner_field_to_progress_stringer
...
raft: add learner field to progress stringer
2019-04-11 19:19:13 -07:00
Jingyi Hu
30034e5ff5
raft: add learner field to progress stringer
2019-04-11 18:15:03 -07:00
Joe Betz
c7c6894527
Merge pull request #10551 from johncming/lbname
...
clientv3/balancer: change balancer name to builder name.
2019-04-10 16:16:51 -07:00
Joe Betz
d69090002a
Merge pull request #10604 from shreyas-s-rao/fix/open-wal-return-with-logger
...
wal: include logger in WAL returned by openAtIndex
2019-04-10 16:15:13 -07:00
Sam Batschelet
9d62477c79
CHANGELOG: add "Change gRPC proxy to expose etcd server endpoint /metrics" PR
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2019-04-10 16:09:32 -04:00
Sam Batschelet
9915d02022
*: Change gRPC proxy to expose etcd server endpoint /metrics
...
This PR resolves an issue where the `/metrics` endpoints exposed by the proxy were not returning metrics of the etcd members servers but of the proxy itself.
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2019-04-10 16:09:32 -04:00
zhoulin xie
cc08c1bd2e
clientv3/integration/leasing_test.go: Fix t.Fatalf error message
...
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
2019-04-10 13:19:50 -04:00
Shreyas Rao
914e5edb00
wal: include logger in WAL returned by openAtIndex
...
Signed-off-by: Shreyas Rao <shreyas.sriganesh.rao@sap.com>
2019-04-02 13:09:10 +05:30
Luc Perkins
a621d807f0
documentation: initial metadata additions for website generation ( #10596 )
...
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-01 13:57:24 -07:00
johncming
9b5c468dc6
clientv3: modify lock type.
2019-03-29 21:02:13 +08:00
Paco
be39aa5bb2
Documentation: add Python client for etcd v3
2019-03-29 06:09:38 -04:00
Xiang Li
952b9e75c6
Merge pull request #10590 from jingyih/fix_readIndex_for_learner
...
raft: leader respond to learner read index message
2019-03-28 16:51:35 -07:00
Jingyi Hu
5088d70d69
raft: leader response to learner MsgReadIndex
...
Leader should check message sender after receiving MsgReadIndex, even
when raft quorum is 1. The message could be sent from learner node, and
leader should respond.
2019-03-28 16:14:32 -07:00
Xiang Li
a645e27486
Merge pull request #10591 from purpleidea/bug/fatal-corruption
...
etcdserver: Use panic instead of fatal on no space left error
2019-03-28 15:19:33 -07:00
Xiang Li
d5e94b1c0d
Merge pull request #10557 from johncming/add_test
...
contrib/raftexample: add test for httpKVAPI.
2019-03-28 11:39:45 -07:00