Brandon Philips
27cb38f38c
fix(Documentation): add etcd-dump to libraries and tools
...
Fixes #325
2014-02-07 11:35:19 -08:00
Brandon Philips
e8be43d4c6
Merge pull request #528 from coreos/restructure-dashboard
...
Restructure dashboard & bug fixes
2014-02-07 11:26:18 -08:00
Brandon Philips
b4635b0b80
Merge pull request #542 from philips/fix-the-build
...
Fix the tests
2014-02-07 07:01:00 -08:00
Brandon Philips
147235f8f5
fix(test.sh): re-add the config tests
...
These tests were left behind in the move to put config in its own
package.
2014-02-06 22:52:50 -08:00
Brandon Philips
aa5c8b8ffd
test(config): unexport ETCD_DISCOVERY
...
if this is exported the next tests will try and use it and fail.
2014-02-06 22:52:18 -08:00
Brandon Philips
1b3481fe25
fix(server/peer_server): stop the raftServer in Stop()
...
Stop() the raftServer if we stop the peerServer so that tests that start
and stop PeerServers exit cleanly.
2014-02-06 22:10:10 -08:00
Brandon Philips
21d7d14178
chore(tests/discovery): remove errant debug statement
2014-02-06 22:10:10 -08:00
Brandon Philips
14f15c33fe
fix(tests/server_utils): use a WaitGroup for RunServer
...
Make sure that all of the servers exit before we return by using a
WaitGroup in each handler. This was used to help track down the issue
with the TestDiscoverySecondPeerUp test and the hung go-etcd watcher.
2014-02-06 22:10:10 -08:00
Brandon Philips
bfbc539321
hack(tests/discovery): don't use go-etcd for watch
...
go-etcd has a bug in the watcher that holds open a goroutine. Avoid
goetcd for this operation until it is fixed.
2014-02-06 22:10:10 -08:00
Brandon Philips
5f124166eb
feat(tests/discovery): use low retry interval
...
In TestDiscoverySecondPeerFirstNoResponse use a low retryinterval so the
test doesn't take forever.
2014-02-06 22:10:10 -08:00
Brandon Philips
468a68c96c
feat(server): make the RetryInterval of PeerServer tunable
...
For tests and other environments it would be nice to be able to tune how
long to sleep between retries.
2014-02-06 22:10:09 -08:00
Brandon Philips
da3fe920cb
fix(tests/v1_migration): add a -name flag
...
The info flag is ignored as of 1c91c167fc98608ef850a7539550bfc15dedbb46
so in order for this test to work we need to add `-name` flag.
2014-02-06 21:23:00 -08:00
Brandon Philips
3d9fc3846c
fix(scripts/test-cluster): fix backwards logic on peers add
2014-02-06 21:15:38 -08:00
Brian Waldon
63fa35c99f
refactor(tls): clarify & simplify tls configuration
2014-02-06 21:15:38 -08:00
Xiang Li
68305181f9
Merge pull request #538 from xiangli-cmu/fix_hidden_watch
...
fix(watcher_hub)
2014-02-06 12:39:18 -05:00
Xiang Li
c844fccf2a
fix(watcher_hub) isHidden checks the length of the watchPath before getting subString of keyPath
2014-02-06 11:09:47 -05:00
Ed Rooth
f2452a4a3c
fix(build): Use ngmin. Fix all introduced erros in previous commits.
2014-02-05 22:41:10 -08:00
Ed Rooth
4e21405647
fix(dashboard): bugs in key browser and stats page.
...
Fixed key add, key delete bugs. More refactoring.
2014-02-05 22:40:04 -08:00
Ed Rooth
06f990236c
refactor(dashboard): Restructured front-end dashboard code.
2014-02-05 22:39:46 -08:00
Xiang Li
8a172322ff
Merge pull request #537 from xiangli-cmu/fix_hidden_watch
...
fix(watch hidden key)
2014-02-05 23:43:41 -05:00
Xiang Li
1b5f9eb013
test (isHidden) add unit test for isHidden function
2014-02-05 23:32:12 -05:00
Xiang Li
5851cb5b8d
chrod(watcher_hub) add comment to isHidden function
2014-02-05 23:31:38 -05:00
Xiang Li
ba98de6ef0
fix(watch hidden key) Fix hidden keys preventing deeper recursive watches from receiving events
...
If a watcher has given the correct hidden directory, we should allow it to watch the non-hidden events under that hidden directory. This pull request achieves this by checking if the path after the watching prefix has a "/_" which indicates a hidden key.
2014-02-05 22:34:41 -05:00
coreosbot
d2a0f8f2fd
Merge pull request #535 from robszumski/master
...
fix(docs): explicitly create links instead of using the markdown parser
2014-02-05 16:53:56 -08:00
Rob Szumski
445b584333
fix(docs): explicitly create links instead of using the markdown parser
2014-02-05 16:52:31 -08:00
Brandon Philips
f7dae0de02
Merge pull request #533 from robszumski/master
...
fix(docs): add full command example and link to discovery spec
2014-02-05 16:29:43 -08:00
Brandon Philips
1c6a41dda4
Merge pull request #532 from philips/remove-info-file
...
feat(config): remove the info file
2014-02-05 16:21:27 -08:00
Brandon Philips
1c91c167fc
feat(config): remove the info file
...
The info file was meant to help the user from accidently making a
mistake but often times it just confuses people:
https://github.com/coreos/etcd/issues/356
https://github.com/coreos/etcd/issues/531
https://github.com/coreos/etcd/issues/318
Lets remove the info file for this next release.
2014-02-05 16:20:50 -08:00
Brandon Philips
39518b463a
Merge pull request #534 from philips/discovery-protocol-fix
...
fix(discovery): use prevExist instead of prevValue=init
2014-02-05 15:15:08 -08:00
Brandon Philips
cbdf4a738c
fix(discovery): use prevExist instead of prevValue=init
...
Use PUT /_state?prevExist=true in the protocol instead of PUT
/_state?prevValue=init. This lets people point one vanilla etcd at the
key prefix of another vanilla etcd and have it just work.
2014-02-05 15:14:57 -08:00
Rob Szumski
1d4912b22f
fix merge conflicts
2014-02-05 14:39:48 -08:00
Rob Szumski
bc7297c2d0
feat(docs): add cluster discovery documentation
2014-02-05 14:37:40 -08:00
Brandon Philips
39ddb29e63
Merge pull request #515 from robszumski/master
...
feat(docs): add cluster discovery documentation
2014-02-05 11:53:31 -08:00
Rob Szumski
fe35839a77
feat(docs): add cluster discovery documentation
2014-02-05 10:54:28 -08:00
Brandon Philips
297832ff91
Merge pull request #512 from philips/bootstrap-protocol
...
feat(discovery): initial working code
2014-02-05 09:27:52 -08:00
Brandon Philips
2d75ef0c7a
feat(Documentation/discovery-protocol): explain heartbeating
...
Explain more information about how the TTL works and etcds role.
2014-02-05 09:27:40 -08:00
Brandon Philips
2822b9c579
tests(tests/functional): add tests for Discovery
...
This tests a variety of failure cases for the Discovery service
including:
- Initial leader failures
- Discovery service failures
- Positive tests for discovery working flawlessly
2014-02-05 09:27:39 -08:00
Brandon Philips
ff6090836c
fix(tests/server_utils): add a metrics bucket
...
This is required to avoid getting nil pointer exceptions if a peer joins
this test server.
2014-02-05 09:27:39 -08:00
Brandon Philips
a8b07b1b48
chore(config): go fmt
2014-02-05 09:27:39 -08:00
Brandon Philips
8687dd3802
feat(discovery): fully working discovery now
2014-02-05 09:27:39 -08:00
Brandon Philips
40021ab72e
bump(github.com/coreos/go-etcd): 526d936ffe75284ca80290ea6386f883f573c232
2014-02-05 09:27:39 -08:00
Brandon Philips
72514f8ab2
feat(bootstrap): initial working code
...
This is an initial version of the bootstrap code that seems to work
under the normal circumstances. I need to mock out a server that will
test out all of the error cases now.
2014-02-05 09:27:39 -08:00
Brandon Philips
40a8542c22
feat(bootstrap): wire up the flag
...
This wires up `-bootstrap-url` to some code (which crashes) :)
2014-02-05 09:27:39 -08:00
Brandon Philips
f56965b1c0
refactor(config): make config its own package
...
Refactor config into its own package. Trying to tease the config from
the server so that all of the control surfaces are exposed in the Server
for easier testing.
2014-02-05 09:27:39 -08:00
Brandon Philips
69922340f6
refactor(server): move utilities into pkg
...
like camlistore lets move these utilities into a `pkg` prefix.
2014-02-05 09:27:39 -08:00
Brandon Philips
0e50d9787a
feat(*): bootstrap initial commit
...
Setup the flags, and checkin the docs. Lets do this!
2014-02-05 09:27:39 -08:00
Brandon Philips
9e43e726a9
Merge pull request #507 from philips/turn-snapshots-on-by-default
...
feat(*): enable snapshots by default
2014-02-05 09:08:43 -08:00
Xiang Li
03cadc543f
Merge pull request #525 from yifan-gu/fix_comments
...
fix some typos in comments in store.go
2014-02-04 11:46:29 -08:00
evan-gu
b61cf9cb8e
fix a format error in libraries-and-tools.md
2014-02-04 14:30:40 -05:00
evan-gu
8d2a8e1c7a
fix some typos in comments in store.go
2014-02-04 14:17:44 -05:00