1631 Commits

Author SHA1 Message Date
Yicheng Qin
f0dee63716 chore(build): update gofmt target 2014-04-03 17:03:50 -07:00
Yicheng Qin
41ad9ebb48 Merge pull request #665 from unihorn/52
feat(test): check format conditions in test
2014-04-02 17:58:28 -07:00
Yicheng Qin
3fece6a716 feat(test): check format conditions in test
And add option '--fmt' in build script to gofmt files automatically.
2014-04-02 17:57:53 -07:00
Yicheng Qin
1f12e163de Merge pull request #650 from cenkalti/main
refactor(main): move main logic to separate package
2014-04-01 15:19:54 -07:00
Cenk Alti
7c1b7d764a fix(main): remove duplicate line in etcd.go 2014-04-01 14:22:07 -07:00
Cenk Alti
58e1e02688 refactor(main): return only receiving channel from Etcd.ReadyNotify() 2014-04-01 12:54:38 -07:00
Cenk Alti
d000ba3ed3 chore(main): add a space line between the two if statements 2014-04-01 12:54:38 -07:00
Cenk Alti
1b59eacb72 refactor(main): rename etcd.go to main.go 2014-04-01 12:54:38 -07:00
Cenk Alti
3eb74fc32c chore(main): add todo item and update comments 2014-04-01 12:54:37 -07:00
Cenk Alti
a9e77c022c refactor(main): reorder code 2014-04-01 12:54:37 -07:00
Cenk Alti
dfbabc5a77 refactor(main): remove Etcd.StopNotify() method 2014-04-01 12:50:44 -07:00
Cenk Alti
c5632b039a fix(main): stop PeerServer on Etcd.Stop() 2014-04-01 12:50:43 -07:00
Cenk Alti
46623c00a8 fix(main): fix ready notifier 2014-04-01 12:50:43 -07:00
Cenk Alti
ccb960f47f refactor(main): close peer server first 2014-04-01 12:41:33 -07:00
Cenk Alti
561ad16757 refactor(main): rename Etcd.Close() to Etcd.Stop() 2014-04-01 12:41:33 -07:00
Cenk Alti
399f491fd7 feat(main): add close and ready notifiers for etcd instance 2014-04-01 12:41:33 -07:00
Cenk Alti
c463293d39 feature(main): add Etcd.Close() method 2014-04-01 12:41:33 -07:00
Cenk Alti
094cc6347d refactor(main): move main logic to separate package
The use case is to make it easy to embed etcd into another programs.
Currently, the only way of doing this to copy and paste the contents
of the `main()` in etcd.go.
With this commit, contents of the `main()` is moved into `Etcd.Run()`.
2014-04-01 12:41:33 -07:00
Brandon Philips
022908f1fa Merge pull request #670 from daniel-garcia/patch-1
Update clients-matrix.md
2014-04-01 11:09:03 -07:00
Daniel Garcia
2ad9ea8c57 Update clients-matrix.md
go-etcd does not currently support Lock or Leader modules.
2014-04-01 09:24:00 -05:00
Yicheng Qin
b2f787a2fd Merge pull request #653 from unihorn/49
chore(etcd): print out go-etcd log in VeryVeryVerbose Mode
2014-03-31 16:55:20 -07:00
Yicheng Qin
ea701b3adb chore(etcd): print out go-etcd log in VeryVeryVerbose Mode 2014-03-31 16:53:48 -07:00
Brandon Philips
eb21381ddd fix(Documentation/cluster-discovery): link to optimal cluster size 2014-03-31 14:48:25 -07:00
Brandon Philips
534b5feca6 Merge pull request #668 from darron/patch-1
2 nodes isn't durable - to be somewhat expected.
2014-03-31 14:46:33 -07:00
darron froese
754159b60f Update cluster-discovery.md 2014-03-31 15:45:23 -06:00
darron froese
fa7c77a6e0 2 nodes isn't durable - to be somewhat expected.
So maybe we add this small documentation patch to show minimum 3 nodes.
2014-03-31 15:07:18 -06:00
Xiang Li
5b4a473f14 Merge pull request #667 from unihorn/53
chore(tests): test TestTLSMultiNodeKillAllAndRecovery now
2014-03-27 22:40:09 -04:00
Brandon Philips
eeca12a4c0 Merge pull request #663 from tsenart/master
Making code formatting consistent.
2014-03-27 17:08:12 -07:00
Yicheng Qin
4e747d24dd chore(tests): test TestTLSMultiNodeKillAllAndRecovery now
It is fixed.
2014-03-27 17:06:18 -07:00
Yicheng Qin
4f1607b775 Merge pull request #651 from unihorn/48
fix(tests): pass all tests using latest raft
2014-03-27 16:19:59 -07:00
Brandon Philips
140329d927 Merge pull request #654 from robszumski/timeout-docs
feat(docs): document peer timeout flag and env var
2014-03-27 07:27:52 -07:00
Tomás Senart
b6053d6a86 Making code formatting consistent.
$ gofmt -s -w  && goimports -w
2014-03-27 14:19:08 +01:00
Blake Mizerany
1f10c4d352 Merge pull request #662 from bmizerany/skip
test(tests/functional): skip TestTLSMultiNodeKillAllAndRecovery until fi...
2014-03-26 19:24:43 -07:00
Blake Mizerany
4bce3e4810 test(tests/functional): skip TestTLSMultiNodeKillAllAndRecovery until fixed 2014-03-26 19:22:59 -07:00
Blake Mizerany
99c8b097d1 ignore .etcd dirs 2014-03-26 12:19:20 -07:00
Ben Johnson
f4aaef5955 Merge branch 'master' of https://github.com/coreos/etcd 2014-03-26 10:43:37 -06:00
Ulexus
85301dbc4e Add mod/lock timeout.
Added timeout goroutine to stop waiting on lock after timeout
expiration.

This necessitated reworking the flow of the acquire handler.  createNode
now _only_ creates the node; it no longer waits on the lock itself.
getLockIndex (perhaps this is poorly named) extracts out the lock
checking routine so that it can be used by "get" and "watch", both.
get() was added to instantaneously attempt to acquire a lock with no
waiting.

If a lock fails to acquire, for whatever reason, an error is returned,
resulting in a code 500 to the client.
2014-03-26 10:39:48 -06:00
Yicheng Qin
8afa93ed59 chore(server/listener): improve comment 2014-03-25 22:51:52 -07:00
Xiang Li
2bba9a984e Merge pull request #657 from cenkalti/errors
refactor(errors): use map literal syntax
2014-03-26 00:19:18 -04:00
Cenk Alti
303a3096d4 refactor(errors): use map literal syntax
Error strings align better this way.
2014-03-25 20:17:21 -07:00
Rob Szumski
e86fe8e749 feat(docs): document peer timeout flag and env var 2014-03-25 13:07:22 -07:00
Yicheng Qin
a3cbf02597 fix(tests): pass all tests using latest raft 2014-03-24 17:35:45 -07:00
Ben Johnson
802aaf59db Merge pull request #582 from benbjohnson/proxy
Proxies & Config API
2014-03-24 16:30:47 -06:00
Ben Johnson
62b89a128a Merge branch 'master' of https://github.com/coreos/etcd into proxy
Conflicts:
	config/config.go
	server/peer_server.go
	server/transporter.go
	tests/server_utils.go
2014-03-24 15:30:14 -07:00
Ben Johnson
174b9ff343 bump(github.com/goraft/raft): 6bf34b9
Move from coreos/raft to goraft/raft and update to latest.
2014-03-24 15:09:47 -07:00
Brandon Philips
aeb9e0633a Merge pull request #641 from mdlayher/patch-1
docs(Documentation/api): fix JSON spacing, syntax highlighting
2014-03-22 09:30:21 -07:00
Matt Layher
38631395b6 docs(Documentation/api): fix JSON spacing, syntax highlighting 2014-03-20 02:36:35 -04:00
Ben Johnson
7d4fda550d Machine join/remove v2 API. 2014-03-18 16:25:21 -06:00
Yicheng Qin
4b5765e2c7 Merge pull request #634 from unihorn/42
fix(test/server): minimize the process of getting watch result
2014-03-18 11:44:31 -07:00
Yicheng Qin
df2b565397 fix(test/server): avoid watch test timeout by moving json decode
These tests were timing out because the combination of the GET and JSON
decode was taking longer than the timeout. Pull the JSON decode out of
the go routine that is being timed.
2014-03-18 08:49:14 -07:00