2769 Commits

Author SHA1 Message Date
Yicheng Qin
4203569da2 etcdserver: use ConfigType in protobuf 2014-09-22 15:44:46 -07:00
Yicheng Qin
b82d70871f raft: use EntryType in protobuf 2014-09-22 15:44:46 -07:00
Yicheng Qin
b801f1affe raft: refine comment for raft.pendingConf 2014-09-22 15:44:46 -07:00
Yicheng Qin
abdb2cad15 etcdserver: Config.Id -> Config.ID 2014-09-22 15:44:46 -07:00
Yicheng Qin
aaffb9eb78 etcdserver: add AddNode, RemoveNode
AddNode and RemoveNode is used to propose config change to the cluster.
If succeeds, it will add/remove node from the cluster.
2014-09-22 15:44:46 -07:00
Yicheng Qin
ff6705b94b raft: add Configure, AddNode, RemoveNode
Configure is used to propose config change. AddNode and RemoveNode is
used to apply cluster change to raft state machine. They are the
basics for dynamic configuration.
2014-09-22 15:43:13 -07:00
Brian Waldon
ceab948831 Merge pull request #1131 from bcwaldon/1129
etcdserver: init time.Time only if Expiration > 0
2014-09-22 15:39:32 -07:00
Brian Waldon
7d1126fb35 etcdserver: init time.Time only if Expiration > 0
golang's concept of "zero" time does not align with the zero value of
a unix timestamp. Initializing time.Time with a unix timestamp of 0
makes time.Time.IsZero fail. Solve this by initializing time.Time only
if we care about the time.
2014-09-22 15:31:31 -07:00
Jonathan Boulle
9711e70980 Merge pull request #1132 from jonboulle/fix_store
store: fix recursive/dir arguments
2014-09-22 14:54:37 -07:00
Jonathan Boulle
e08df4c8d2 store: fix recursive/dir arguments 2014-09-22 14:44:01 -07:00
Jonathan Boulle
34380ab096 Merge pull request #1013 from jonboulle/1013_cors
Add CORS support
2014-09-22 11:50:03 -07:00
Brian Waldon
e27b80643d Merge pull request #1109 from coreos/client
min client for discovery
2014-09-21 10:31:52 -07:00
Brian Waldon
49cc76d33b client: min client for discovery 2014-09-21 10:29:52 -07:00
Yicheng Qin
0335422e81 Merge pull request #1098 from unihorn/131
fix sync tests
2014-09-20 17:47:31 -07:00
Yicheng Qin
8ba801ec06 etcdserver: fix sync tests
This is to fix possible testing failures caused by sync tests.

Changes:
1. Get rid of time sleep operations, which introduces uncertainty.
2. Use fake Store.
2014-09-20 17:41:30 -07:00
Yicheng Qin
ddfcb67ce3 Merge pull request #1118 from unihorn/133
etcdserver: add TestRecvSnapshot
2014-09-20 17:10:01 -07:00
Yicheng Qin
fac38aad33 etcdserver: add TestRecvSlowSnapshot 2014-09-19 15:09:04 -07:00
Jonathan Boulle
1a36b53f14 main: add CORS support 2014-09-19 14:58:35 -07:00
Yicheng Qin
b8e59a3c6a etcdserver: not push ready to readyNode automatically 2014-09-19 14:40:11 -07:00
Yicheng Qin
f2ebd64a1b *: add testutil pkg 2014-09-19 14:32:38 -07:00
Yicheng Qin
4eb156a324 Merge pull request #1104 from unihorn/132
etcdserver: add TestDoBadLocalAction
2014-09-19 09:30:34 -07:00
Yicheng Qin
d5988c3ec2 etcdserver: add TestDoBadLocalAction 2014-09-19 09:22:26 -07:00
Yicheng Qin
44ab66d858 etcdserver: add TestRecvSnapshot 2014-09-18 23:19:00 -07:00
Brandon Philips
da9956df11 Merge pull request #1107 from bcwaldon/Procfile
Isolate ./build from environment
2014-09-18 22:12:28 -07:00
Brian Waldon
24aa4d9bd9 Merge pull request #1117 from bcwaldon/prevExist
*: s/prevExists/prevExist/
2014-09-18 21:45:37 -07:00
Brian Waldon
91003cb994 *: s/prevExists/prevExist/ 2014-09-18 21:25:08 -07:00
Jonathan Boulle
517e4271e1 Merge pull request #1113 from jonboulle/unix
main: add address validation
2014-09-18 16:38:42 -07:00
Jonathan Boulle
f0789e7349 main: add address validation for bind-addr flag 2014-09-18 16:38:14 -07:00
Brian Waldon
6449387ccb Merge pull request #1110 from bcwaldon/proxy-readonly
Readonly proxy mode
2014-09-18 15:08:46 -07:00
Brian Waldon
98221cf6c0 Merge pull request #1112 from bcwaldon/update-link
CONTRIBUTING: update link to style guide
2014-09-18 15:06:59 -07:00
Brian Waldon
6e782b0e63 etcd: add -proxy=readonly 2014-09-18 15:05:33 -07:00
Brian Waldon
fd1f46313a proxy: add readonly handler 2014-09-18 15:05:30 -07:00
Brian Waldon
5b4fe8a558 CONTRIBUTING: update link to style guide 2014-09-18 15:03:55 -07:00
Brian Waldon
ec0e9c6e6a Procfile: run etcd from bin/etcd 2014-09-18 14:36:29 -07:00
Brian Waldon
81585716dc build: ignore calling environment 2014-09-18 14:36:26 -07:00
Brian Waldon
9cc114df36 Merge pull request #1106 from bcwaldon/proxy-flag
Replace -proxy-mode=<bool> with -proxy=<enum>
2014-09-18 14:31:00 -07:00
Brian Waldon
afce2948d2 etcd: replace -proxy-mode with -proxy 2014-09-18 14:30:22 -07:00
Brian Waldon
fcf50e756d test: actually test main pkg 2014-09-18 11:01:00 -07:00
Yicheng Qin
df70f653a4 Merge pull request #1099 from unihorn/128
wal: OpenFromIndex fails if it cannot find previous index
2014-09-17 16:00:51 -07:00
Jonathan Boulle
655efca308 Merge pull request #1092 from jonboulle/dumb_gen_id
GenID: use a fast prnd
2014-09-17 16:00:25 -07:00
Yicheng Qin
29f6d8a9e6 wal: add ErrFileNotFound and ErrIndexNotFound 2014-09-17 15:58:06 -07:00
Jonathan Boulle
a42d52482c etcdserver: use simple PRNG for GenID 2014-09-17 15:29:14 -07:00
Jonathan Boulle
1c544667ff Merge pull request #1040 from jonboulle/1040_config_env_vars
etcd needs to be configurable through env vars
2014-09-17 15:28:02 -07:00
Yicheng Qin
7160b5ae26 wal: OpenFromIndex fails if it cannot find previous index
Example:
We save entry 1, 2, 3 to WAL.
If we try to open 100, it should fail.
2014-09-17 15:07:07 -07:00
Xiang Li
f2e92d9140 Merge pull request #1097 from unihorn/130
etcdserver: use Action to fix possible data race
2014-09-17 14:28:37 -07:00
Jonathan Boulle
6b03135527 Merge pull request #1093 from jonboulle/node_interface
Create Node Interface
2014-09-17 14:20:42 -07:00
Jonathan Boulle
b66a40495d raft: introduce Node interface 2014-09-17 14:18:56 -07:00
Jonathan Boulle
844897360c main: add test for setting flags 2014-09-17 14:12:04 -07:00
Xiang Li
ba851b2eca Merge pull request #1095 from coreos/nsnap
WIP *: init for on disk snap support
2014-09-17 14:02:48 -07:00
Xiang Li
ab61a8aa9a *: init for on disk snap support 2014-09-17 13:56:12 -07:00