91 Commits

Author SHA1 Message Date
Brandon Philips
04711ecde5 fix(etcd): fixup the name and data dir guessing
- Only generate the name from a hostname if the data dir is not
  specified and the name is not specified

- Only guess the data dir from Name if the data dir wasn't already
  specified
2013-11-27 12:20:26 -08:00
Xiang Li
b4f3d02c1c Merge pull request #322 from xiangli-cmu/master
bump deps
2013-11-22 14:18:17 -08:00
Xiang Li
a607c9eace fix dep issue 2013-11-22 13:27:04 -08:00
Xiang Li
8a0496cfae bump deps 2013-11-22 08:59:24 -08:00
Brandon Philips
a1ec895b91 feat(server): introduce a cors handler
Introduce a handler that lives under the gorilla mux and adds the
correct headers based on the request and always returns 200 OK when
there OPTIONS is called on a URL.

This fixes the ability to DELETE from the dashboard on peer X when peer
Y is the leader. As a side effect it reveals some bugs in the dashboard
though notably:

- Due to the RTT immediatly refreshing the dashboard doesn't work and
  deleted keys are still there

- For some reason PUTS from peer X are creating directories and not
  keys.
2013-11-21 09:25:21 -08:00
Ben Johnson
ea6b11bbf6 Config clean up and usage messaging. 2013-11-20 10:52:01 -07:00
Ben Johnson
15eee885d7 Merge branch 'master' of https://github.com/coreos/etcd into clean-up-config 2013-11-19 10:13:39 -07:00
Ben Johnson
a414b15f9a Config fixes. 2013-11-19 09:20:20 -07:00
Xiang Li
1d34c82643 fix set content-type to application/json 2013-11-16 20:48:44 -08:00
Ben Johnson
cba2611c68 Renamed configuration parameters. 2013-11-15 00:13:32 -05:00
Brandon Philips
a5402435b9 Merge pull request #301 from philips/use-directory-based-on-machine-name
feat(etcd): create unique directory on no-flag case
2013-11-13 11:23:19 -08:00
Brandon Philips
eecd9f7e35 feat(etcd): create unique directory on no-flag case
Tell etcd to store the log and configuration into directory in the
pattern of `${machineName}.etcd` if no directory is specified.
2013-11-13 10:16:02 -08:00
Brandon Philips
ca7e61052d refactor(mod): remove the /etcd/ prefix
Originally we were going to move all of the API endpoints to /etcd/ so
that you could move etcd traffic over a multiplexed HTTP proxy with
other service but since we don't have a strong use case for this just
remove this for now.
2013-11-13 06:15:35 -08:00
Xiang Li
5abbaf59e3 Merge pull request #292 from xiangli-cmu/fix-ttl
WIP: fix ttl
2013-11-11 21:30:32 -08:00
Xiang Li
06f1b7f2e8 refactor change Index to modifiedIndex 2013-11-09 20:49:19 -08:00
Xiang Li
d8e5994c35 feat attach etcd-index,raft-index,raft-term to header 2013-11-09 20:20:47 -08:00
Xiang Li
6156d5c790 refactor separate etcd index from raft index 2013-11-09 17:55:54 -08:00
Brandon Philips
5620f88635 feat(server): insert the mod path 2013-11-08 16:59:30 -08:00
Xiang Li
0372cdea23 refactor move sync command into etcd 2013-11-08 16:00:58 -08:00
Brandon Philips
6a074d4f6f chore(*.go): add copyright notice 2013-11-08 14:04:15 -08:00
Xiang Li
5a4e764d7a refactor add comments for receiving expire commands 2013-11-08 13:24:23 -08:00
Xiang Li
b4f4528ef4 feat upgrade get_handler 2013-11-07 22:29:15 -08:00
Xiang Li
28ac516f68 fix sinceIndex 2013-11-07 20:55:26 -08:00
Xiang Li
51f57629f9 Merge pull request #281 from xiangli-cmu/fix-snapshot
fix snapshot
2013-11-03 21:10:53 -08:00
Xiang Li
235ffc234d refactor change cmd argument snapCount to snapshotCount 2013-11-03 21:06:51 -08:00
Xiang Li
f3ce75f2b4 feat add a simple speed test 2013-11-02 22:05:44 -07:00
Xiang Li
eb2fbcb575 feat use-raft-protobuf 2013-11-02 21:50:35 -07:00
Xiang Li
9d0de611a7 feat add snapCount parameter 2013-10-30 17:36:15 -07:00
Xiang Li
0e15962cef Merge pull request #276 from xiangli-cmu/feat-kvpair-ttl
feat kvpair include ttl
2013-10-30 15:56:28 -07:00
Xiang Li
f723651a6d fix test: should wait for watch response 2013-10-30 15:46:01 -07:00
Xiang Li
bd651edf80 test add integration test 2013-10-30 15:27:16 -07:00
Xiang Li
107762e82a fix snapshot 2013-10-30 15:14:34 -07:00
Ben Johnson
ddf527e092 Add version upgrade endpoint. 2013-10-29 15:49:10 -06:00
Ben Johnson
23dc0b9317 Merge branch '0.2' of https://github.com/coreos/etcd into versioning
Conflicts:
	server/v2/put_handler.go
2013-10-28 06:39:56 -06:00
Ben Johnson
aa9ae32998 Internal versioning. 2013-10-27 14:09:40 -06:00
Ben Johnson
bd0d2e8494 Merge pull request #275 from xiangli-cmu/fix-put-ttl
Fix put ttl
2013-10-27 10:09:26 -07:00
Ben Johnson
a70aa3e0da Merge pull request #266 from benbjohnson/config
Tiered Configuration
2013-10-27 09:52:10 -07:00
Xiang Li
1fb3799118 fix put ttl 2013-10-26 21:04:44 -07:00
Ben Johnson
e40bb2e8d8 Merge pull request #267 from xiangli-cmu/fix-wait-handler
fix wait handler should close connection if client leaves
2013-10-23 13:33:11 -07:00
Ben Johnson
41e7266ff7 Merge branch '0.2' into config
Conflicts:
	Documentation/external-documentation.md
	server/config.go
	server/config_test.go
	server/tls_info.go
	server/util.go
2013-10-23 13:59:28 -06:00
Ben Johnson
f99d24310f Fix conf extension and documentation. 2013-10-23 13:44:53 -06:00
Ben Johnson
65663b2dae Merge branch '0.2' of https://github.com/coreos/etcd into 0.2 2013-10-22 13:09:26 -06:00
Xiang Li
63456b5c4b fix close connection when client leaves 2013-10-22 00:17:58 -07:00
Ben Johnson
7d4908a6c3 Merge branch '0.2' of https://github.com/coreos/etcd into config 2013-10-21 21:38:58 -06:00
Ben Johnson
bc0e07bca2 Add tiered configuration. 2013-10-21 21:37:25 -06:00
Xiang Li
91cad59ada refactor use transtiemout 2013-10-21 17:53:24 -07:00
Xiang Li
a659dec00b fix headerTimeout should be longer and body should be shorter 2013-10-21 17:33:23 -07:00
Ben Johnson
48b3e7f2ab Add basic config. 2013-10-21 16:00:20 -06:00
Xiang Li
94accfcb23 refactor remove extra print parameter 2013-10-21 12:35:02 -07:00
Xiang Li
2cafdcd657 fix do not need to parse the original url 2013-10-20 11:27:40 -07:00