Brian Waldon
48e36422b5
chore(gofmt): Run gofmt on server/config.go
2014-01-14 09:18:09 -08:00
Brian Waldon
32df6f92fc
fix(peer): Pass peer server timeouts through factory
...
The peer's heartbeat and election timeouts are needed to build
the transporter in the factory method.
2014-01-14 09:18:03 -08:00
Brian Waldon
ae2130952b
fix(config): Set VeryVerbose properly
2014-01-10 11:45:04 -08:00
Brian Waldon
b0cdf73565
feat(logging): Add VeryVeryVerbose opt to control raft trace info
...
Set very_very_verbose=true in a config file or use the -vvv CLI
option to get raft trace logs in addition to etcd debug logs.
2014-01-10 11:45:04 -08:00
Ben Johnson
c64c739fab
Merge pull request #461 from xiangli-cmu/stream_watcher
...
feat(stream watchers) add stream watcher support
2014-01-10 08:42:31 -08:00
Cenk Alti
5b924dfd4e
feat(stream watchers) disable double chunking
2014-01-10 15:09:35 +02:00
Xiang Li
f250649a5e
fix(snapshot) count num of log entries rather than etcd transcations
2014-01-09 21:28:09 +08:00
Cenk Alti
c247d807af
feat(stream watchers) end streaming if too many notifications
2014-01-09 14:15:36 +02:00
Xiang Li
22a25a18b3
feat(stream watchers) add stream watcher support
2014-01-09 15:28:33 +08:00
Xiang Li
6b77b94127
Merge pull request #420 from benbjohnson/logging
...
Logging
2014-01-08 21:36:52 -08:00
Xiang Li
2bfb8f5e4f
Merge pull request #418 from xiangli-cmu/cancel_watcher
...
cancel watcher
2014-01-08 21:34:32 -08:00
Xiang Li
fa3b4a7941
refactor(watcher) change newWatcher to Watch
2014-01-09 13:29:04 +08:00
Ben Johnson
53477af1eb
Merge branch 'master' of https://github.com/coreos/etcd into logging
2014-01-08 16:50:51 -07:00
Ben Johnson
b47042634a
Add ThresholdMonitorTimeout.
2014-01-08 15:51:13 -07:00
Ben Johnson
88e0263d08
Add heartbeat and timeout threshold loggers.
2014-01-07 16:17:48 -07:00
Xiang Li
60c2680bfd
fix(peer_server.go) init name field and update leader field
2014-01-07 12:30:20 +08:00
Brandon Philips
ecc96df699
chore(server): remove web url
...
web URL is not longer used so remove it from tests and configuration
documents.
2014-01-05 20:39:39 -08:00
Ben Johnson
d7087ed61a
Merge branch 'master' of https://github.com/coreos/etcd into logging
2014-01-02 16:30:09 -07:00
Andy Bakun
5b105ed156
fix deprecated option tests
2014-01-02 11:11:27 -06:00
Andy Bakun
af3240fa18
docs(server/config.go): minor formatting changes
...
When -version or -help are given, don't warn about having to derive
the data directory name.
Print warnings about deprecated options on separate lines so the log
isn't screwy.
2014-01-02 04:30:38 -06:00
Xiang Li
fd0d0813ce
Merge pull request #432 from btipling/fix_trimsplit
...
Trimsplit Wasn't using separator, more efficient.
2014-01-01 13:46:08 -08:00
Bjorn Tipling
5a4c41be37
Don't copy strings.
2014-01-01 13:44:04 -08:00
Xiang Li
f46fdbf078
feat(node_extern.go) add prevNode field
2014-01-01 19:50:07 +08:00
Bjorn Tipling
ed2d7d64cd
Trimsplit Wasn't using separator, more efficient.
2013-12-31 09:13:41 -08:00
Ben Johnson
cc10b1084d
Merge branch 'master' of https://github.com/coreos/etcd into logging
...
Conflicts:
tests/functional/simple_snapshot_test.go
2013-12-30 16:19:57 -07:00
Ben Johnson
a9e20aecc6
Raft fixes, integrate logging.
2013-12-29 10:40:10 -07:00
Xiang Li
5e499456f0
init cancel watcher
2013-12-26 22:06:15 +08:00
Xiang Li
715b4d7bfc
Merge pull request #408 from xiangli-cmu/compareAndDelete
...
Compare and delete
2013-12-25 13:16:27 -08:00
Xiang Li
c36f306a1d
test(delete_handler_test.go) fix inconsistent between test case and comments
2013-12-25 19:05:40 +08:00
Ben Johnson
4acfc26c5e
Add event-based debugging output.
2013-12-23 16:01:05 -07:00
Xiang Li
ef988020b7
fix(event_history) fix a bug in event queue
2013-12-22 15:42:10 -08:00
Chris Shoemaker
d89fa131ab
feat(v2/errors): Use more appropriate HTTP status codes for error cases.
...
This commits adds test coverage for all the error and non-error cases
described below, but only the behavior of the 403, 404 and 412 cases
are changing in this commit.
When setting a key results in a new resource, we asset an HTTP status
code of 201 (aka "Created").
When attempting to get a resource that doesn't exist, we assert an
HTTP status code of 404 (aka "Not Found").
When attempting to delete a directory without dir=true, or a non-empty
directory without recursive=true, but the request is otherwise valid,
we assert an HTTP status code of 403 (aka "Forbidden").
When a precondition (e.g. specified by prevIndex, or prevValue) is not
met, but the request is otherwise syntactically valid, we assert an
HTTP status code of 412 (aka "Precondition Failed"). However,
prevExist is handled slightly differently. If prevExist=false fails,
then this is treated like a failed precondition, so it should use
PreconditionFailed. But, if prevExist=true fails, then this is
treated like other requests that require the existence of the
resource, and uses NotFound if the resource doesn't exist.
We continue to assert an HTTP status code of 400 when the request is
syntactically invalid (e.g. when prevIndex=bad_index).
2013-12-21 21:39:19 -05:00
Chris Shoemaker
3f85829e87
fix(v2/tests): make comments and tests agree about what's being tested
...
In cases where the comments were incorrect, this changes them to agree
with the tests. In cases where the comments were correct, this extends
the tests to cover the behavior described in the comment.
2013-12-21 21:39:19 -05:00
Chris Shoemaker
3cde996d21
refactor(v2/tests): don't repeat construction of full test URL
2013-12-21 21:39:19 -05:00
Xiang Li
c4179829d6
tests(get_handler) loosen the time assumption for the un
2013-12-20 08:23:50 +08:00
Xiang Li
9cf1fcc987
refactor(compareAndDelete)
2013-12-20 05:10:22 +08:00
Xiang Li
e2fa89d554
merge compareAndDelete
2013-12-19 22:19:49 +08:00
Ben Johnson
c7536ff5e1
Add Tuning section to README.
2013-12-18 16:40:29 -07:00
Brandon Philips
7e5aa3137d
fix(server/registry): use url.Value.Encode()
...
Instead of open coding url encoding which lead to error, make it real
and use the library.
2013-12-13 12:43:01 -08:00
Cong Ding
468bfedf34
gofmt
2013-12-12 14:53:22 -08:00
Xiang Li
36dda352d9
fix(dispatch) should call e.Index()
2013-12-12 09:56:28 -08:00
Xiang Li
a5bca025b1
fix index inconsistence in v1 api
2013-12-11 11:12:39 -08:00
Xiang Li
3e4f8a382e
fix TestV2WatchKeyInDir test
2013-12-11 10:19:16 -08:00
Brandon Philips
74bd0d95b8
fix(server): try and add a expire dir test
...
This doesn't actually work yet.
2013-12-10 16:32:37 -08:00
Brandon Philips
cb9f677cf6
chore(server): cleanup some whitespace
2013-12-10 11:13:37 -08:00
Xiang Li
dd354c9e22
Merge pull request #376 from xiangli-cmu/dir_flag
...
feat add dir_flag
2013-12-09 08:34:57 -08:00
Ben Johnson
8442e7a0dc
Timeout refactor.
2013-12-07 14:35:31 -07:00
Ben Johnson
aabd0faebe
Merge branch 'feature-parametric-timeout' of https://github.com/neildunbar/etcd into neildunbar-feature-parametric-timeout
2013-12-07 14:07:53 -07:00
Brian Waldon
0fb8fc0b8d
fix(v2): Drop prevValue from exported fields
2013-12-06 11:46:23 -08:00
Neil Dunbar
a06f5e74af
Merge remote-tracking branch 'upstream/master' into feature-parametric-timeout
...
Conflicts:
Dockerfile
server/usage.go
tests/server_utils.go
2013-12-06 10:13:33 +00:00