541f2e5200
etcdctl: support basic operations with etcd 0.4.
...
For CoreOS users, they will get a updated version of etcdctl without updating
the etcd server version. And the users cannot really control this behavior.
We do not want to suddenly break them without enough communication.
So we still want the most basic opeartions like get, set, watch of etcdctl2 work
with etcd 0.4. This patches solve the incompability issue.
2015-12-21 11:59:13 -08:00
5587c4aa9a
client: support reset Endpoints.
...
ResetEndpoints is useful when the there is a scheduled cluster
changes or when manually manage the cluster without auto-sync
enabled.
2015-12-21 11:59:13 -08:00
7e26fe9c16
Merge pull request #4032 from gyuho/one_mutex_for_storage
...
storage: use only one mutex for store struct
2015-12-21 11:58:44 -08:00
84d777305d
storage: use only one mutex for store struct
...
Mutex is a variable, which means there needs to be only one mutex
value per scope. We don't need a separate mutex inside store struct,
**if we assume that `TxnPut` and `TxnRange` are called ONLY ONCE
per transaction (between `TxnBegin` and `TxnEnd`)**, as documented.
2015-12-21 11:42:40 -08:00
2a351e62f1
Merge pull request #4024 from heyitsanthony/add-command-argusage
...
etcdctl: member add command argusage to help
2015-12-21 10:59:07 -08:00
c597d591b5
scripts: rewrote build-aci to use acbuild
2015-12-21 10:15:08 -08:00
2974c4ec27
etcdctl: fill out ArgsUsage fields for help
...
USAGE in help now names positional arguments (e.g., "member remove <memberID>"
instead of "member remove [arguments...]")
Fixes #4021
2015-12-21 09:05:37 -08:00
c4732eb6e1
Merge pull request #4028 from gyuho/storage_test_variable
...
storage: remove unnecessary test variable assignment
2015-12-20 15:33:52 -08:00
2377ef870a
storage: remove unnecessary test variable assignment
...
There is no need to assign a separate variable since 'base' is already defined
as a local variable within the loop.
2015-12-20 14:23:27 -08:00
98c1745278
Merge pull request #4026 from jonboulle/master
...
tests: update + enable check for leaked goroutines
2015-12-20 20:31:15 +01:00
b126ff77fb
tests: only check for go1.5+ once
2015-12-20 19:51:53 +01:00
d50fbe384a
tests: ignore leaked readLoop on go <1.5
2015-12-20 19:51:06 +01:00
e1fe7350a2
tests: update + enable check for leaked goroutines
...
Go 1.4 landed a new testing.M type [1][1] which allows for start-up and
shutdown hooks when running tests. The standard library now uses this
for checking for leaked goroutines in net/http [2][2].
This patch essentially re-ports the updated code from the net/http test
(we were using an older version of it) - in detail:
- updates the test to use `TestMain` instead of relying on
`TestGoroutinesRunning` to be implicitly run after all other tests
- adds a few new goroutines to the list of exceptions (the test itself,
as well as the golang/glog package and pkg/log.MergeLogger, both of
which spin off goroutines to handle log flushing/merging respectively)
- removes a couple of TODOs in the test for extra goroutines that's run
after individual tests (one of these re-enables the http package's
`.readLoop` and the other was an out-of-date TODO)
- re-enables the test
[1]: https://golang.org/pkg/testing/#M
[2]: https://github.com/golang/go/blob/release-branch.go1.4/src/net/http/main_test.go#L18
2015-12-20 19:51:06 +01:00
dd76ee5801
Merge pull request #4027 from jcderr/patch-1
...
Radius Intelligence Use Case
2015-12-20 10:48:04 -08:00
a5f9403f8f
Update production-users.md
...
Adding use case for Radius Intelligence.
2015-12-20 10:12:48 -08:00
2e736b51cc
Merge pull request #4025 from jonboulle/sjpotter-api-nits
...
docs/api: add version & health, split out members
2015-12-19 17:42:32 +01:00
c18549261f
docs: split out members API into own document
...
Also changes a few references to settle consistently on "members API"
instead of "member API" or "member APIs".
2015-12-19 15:57:15 +01:00
899dc4a6a6
docs: move /version to other_apis and add /health
...
moved /version http endpoint to other_api document and added health with
an example
2015-12-19 15:57:01 +01:00
cfd030fabf
Merge pull request #4014 from ppalucki/functional
...
tools: add functional tester with Docker
2015-12-19 15:17:13 +01:00
9ee9e552e6
Godep: update codegangsta/cli dependency
...
Update codegangsta/cli dependency to the newer version for ArgsUsage
2015-12-18 17:48:04 -08:00
4f5f999847
tools/functional-test: add docker support
...
Commit adds docker bits to run functional tester within containers.
requires:
- docker 1.9 (networking)
- docker-compose
2015-12-18 15:56:18 +01:00
bff857dc28
Merge pull request #4011 from heyitsanthony/raftexample
...
contrib: example key-value store using raft
2015-12-17 15:05:59 -08:00
1f858e10c8
contrib: example key-value store using raft
2015-12-17 14:41:37 -08:00
afee51eeda
Merge pull request #4013 from mickep76/update-libraries-and-tools
...
libraries-and-tools: name change for etcd-export to etcdtool
2015-12-17 14:34:36 +01:00
e4e2a7933f
libraries-and-tools: name change for etcd-export to etcdtool
2015-12-17 13:52:14 +01:00
9b0b15c9be
Merge pull request #4006 from mitake/kvtest-deadlock
...
storage, test: unlock transaction in the retry loop
2015-12-16 18:06:14 -08:00
af2569c2d8
storage, test: unlock transaction in the retry loop
2015-12-17 10:35:03 +09:00
ea50389060
Merge pull request #4010 from gyuho/window_compile
...
storage/backend: fixes Windows compile error
2015-12-16 11:12:39 -08:00
928c0d3601
storage/backend: fixes Windows compile error
...
The type is "Options," not "Option" -- at least, in the vendored version of boltdb in the repository.
2015-12-16 11:10:46 -08:00
a907ca5e62
Merge pull request #4004 from mitake/go-vet-fix
...
raft: remove go vet compliants
2015-12-15 20:37:08 -08:00
9b2da76796
raft: remove go vet compliants
2015-12-16 13:29:23 +09:00
ee02b50c05
Merge pull request #4000 from xiang90/production_users
...
README: link to production users
2015-12-15 15:56:44 -08:00
7b90099526
README: link to production users
2015-12-15 15:54:59 -08:00
923d5cec5e
production-users.md: add cycoresys.com
2015-12-15 15:50:45 -08:00
0c6d5c7c03
Merge pull request #3997 from stevenschlansker/opentable-prod
...
Add OpenTable to production-users.md
2015-12-15 15:47:40 -08:00
73c8e3f0ab
Add OpenTable to production-users.md
2015-12-15 12:38:12 -08:00
1c559bdb33
store: refactor
...
use defer statement to update `Stats` and report R/W Sucess/Failure, so
that the logic of Store's CURD operation and `Stats` update logic can be
separated.
2015-12-15 16:50:02 +08:00
6f59a15e55
Merge pull request #3992 from xiang90/fix_rafthttp_test
...
rafhttp: make TestStreamWriterAttachOutgoingConn more robust
2015-12-14 21:00:33 -08:00
80541d74d0
rafhttp: make TestStreamWriterAttachOutgoingConn more robust
2015-12-14 17:06:38 -08:00
96731f4525
Merge pull request #3991 from xiang90/fix_lock
...
pkg/fileutil: make TestLockAndUnlock less flaky on CI
2015-12-14 11:58:14 -08:00
be3e87b238
pkg/fileutil: make TestLockAndUnlock less flaky on CI
...
CI is slow sometime. To make the test less flaky, we increases the
timeout. This does not affect the correctness, but the test might
take longer to finish or to fail.
2015-12-14 11:38:07 -08:00
607ec83f81
Merge pull request #3988 from philips/add-production-users-doc
...
Documentation: add production users doc
2015-12-14 07:41:29 -08:00
e39ad84440
Documentation: add production users doc
...
Add the first production user: discovery.etcd.io. We should encourage
the commnuity to start adding their stories to this doc.
2015-12-14 00:00:23 -08:00
0eb46eb145
Merge pull request #3987 from gyuho/storage_test
...
storage: newFakeStore to return only 1
2015-12-13 17:58:24 -08:00
891cdd56b4
storage: newFakeStore to return only 1
...
This changes newFakeStore function to return only 1 because two other arguments
are already in the first return storage struct.
2015-12-13 17:46:47 -08:00
0225644d04
Merge pull request #3981 from gyuho/govet
...
*: fix shadowed variables
2015-12-13 00:00:12 -08:00
d55ab7798b
storage: change var names from 'index'
...
Having the same variable name as 'index' type
can be confusing and shadowing other variables.
This gives different variable names to 'index' variables.
2015-12-12 16:37:24 -08:00
8696a1509c
raft/rafttest: fix shadowed variable
2015-12-12 09:38:26 -08:00
4e06510280
pkg/fileutil: fix shadowed variables
2015-12-12 09:38:26 -08:00
c48b0a5e18
etcdmain: fix shadowed variables
...
Fix for https://github.com/coreos/etcd/issues/3954 .
2015-12-12 09:38:26 -08:00