7cebc3999a
api(delete) now you get an error trying to delete files a directory (http.StatusForbidden)
2014-04-21 19:50:57 +07:00
ece25833aa
Merge pull request #738 from unihorn/68
...
feat(peer_server): forbid rejoining with different name
2014-04-18 11:49:36 -07:00
9f228550a2
Merge pull request #730 from unihorn/65
...
chore(server): deprecate mod temporarily
2014-04-18 10:46:09 -07:00
e0fbe27c99
fix(join_command): use RaftURL as peer address
2014-04-18 10:28:24 -07:00
0c95e1eabb
feat(peer_server): forbid rejoining with different name
...
Or it will confuse the cluster, especially the heartbeat between nodes.
2014-04-17 15:46:33 -07:00
b0ac8a4b4b
Merge pull request #624 from unihorn/36
...
chore(server/transporter): set RequestTimout reasonable
2014-04-17 15:19:10 -07:00
273c293645
fix(server): rejoin cluster with different ip
2014-04-17 10:16:30 -07:00
82dee82bfd
chore: gofmt go files
2014-04-17 08:47:48 -07:00
67600603c5
chore: rename proxy mode to standby mode
...
It makes the name more reasonable.
2014-04-17 08:04:42 -07:00
a1a91ab75a
chore(server): deprecate mod temporarily
2014-04-15 12:50:36 -07:00
9caa801469
chore(server/transporter): remove unnecessary timeout
2014-04-15 12:08:58 -07:00
65b872c8b5
Merge pull request #725 from dougm/server-lifecycle-fixes
...
fix(server): avoid race conditions in Run/Stop
2014-04-15 11:54:35 -07:00
68afedbd16
chore(server/transporter): set RequestTimout reasonable
2014-04-15 11:13:43 -07:00
adf4acf947
chore: gofmt go files
2014-04-15 09:42:25 -07:00
d73390a674
fix(server): avoid race conditions in Run/Stop
...
- don't close ready channel until PeerServer is listening.
avoids possible panic in Stop() if PeerServer is nil.
- avoid data race in Run() (err variable was shared between 2 goroutines)
- avoid data race in PeerServer Start/Stop (PeerServer.closeChan)
2014-04-15 09:24:54 -07:00
8bcfb2ecaf
Merge pull request #707 from unihorn/62
...
fix(peer_server): recover from outage with discovery
2014-04-14 13:58:43 -07:00
03839ca806
fix(peer_server): recover from outage with discovery
...
This patch also contains the refactor of find cluster process.
It is changed based on @xiangli-cmu 's commits in 627 issue.
2014-04-14 13:56:47 -07:00
0b790abd46
Merge pull request #705 from unihorn/61
...
feat: set NOCOW for log directory when in btrfs
2014-04-14 16:40:38 -04:00
2dc182189a
Merge pull request #710 from xiangli-cmu/fix_race
...
Fix race
2014-04-14 15:53:04 -04:00
d266f9dec7
Merge pull request #713 from unihorn/63
...
fix(server/key): unable to update unexpired ttl
2014-04-14 11:06:31 -07:00
c8de5eee85
fix(server/key): unable to update unexpired ttl
2014-04-14 11:03:46 -07:00
4fd9e627c0
fix(peer join) fix wrong join command redirection
...
1. We use PUT request to do a V2 join. So we should redirect a PUT request rather than a POST.
2. /admin only accept V2Join request. Send out V2Join instead of V1Join.
2014-04-13 21:33:02 -04:00
56ef6fbcae
make necessary changes
2014-04-11 17:00:14 -07:00
79a89dcb82
Revert "Revert "fix(server): only set NOCOW for log file""
...
This reverts commit 9540575690
.
Conflicts:
etcd/etcd.go
2014-04-11 16:33:50 -07:00
af87fa40c2
fix(registry.go) protect the peer and proxy map in the registry by lock
2014-04-10 23:24:09 -04:00
6d08976cbe
fix(raft_server_stats.go) protect raft stats by a lock
2014-04-10 22:50:44 -04:00
9540575690
Revert "fix(server): only set NOCOW for log file"
...
This reverts commit 1eff547af6
.
2014-04-09 14:39:16 -07:00
1eff547af6
fix(server): only set NOCOW for log file
2014-04-09 12:35:32 -07:00
76ac1da7ea
feat(server): add HEAD for v1/watch
2014-04-08 17:37:05 -07:00
89d3df242c
chore(server): handle HEAD for key space efficiently
...
Implement HEAD in server/v1 and server/v2 functions to avoid
time wasting on JSON marhsal.
2014-04-07 18:55:07 -07:00
28f19dec60
feat(server): make header-only requests work
2014-04-07 13:51:33 -07:00
eeca12a4c0
Merge pull request #663 from tsenart/master
...
Making code formatting consistent.
2014-03-27 17:08:12 -07:00
b6053d6a86
Making code formatting consistent.
...
$ gofmt -s -w && goimports -w
2014-03-27 14:19:08 +01:00
8afa93ed59
chore(server/listener): improve comment
2014-03-25 22:51:52 -07:00
a3cbf02597
fix(tests): pass all tests using latest raft
2014-03-24 17:35:45 -07:00
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
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
7d4fda550d
Machine join/remove v2 API.
2014-03-18 16:25:21 -06:00
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
3ae792b159
refactor(listener) refactor listener related code
...
Remove duplicate code around creating http listener.
Start to listen incoming http requests just before serving them.
2014-03-13 15:47:27 -07:00
c8e65c1315
Merge pull request #616 from xiangli-cmu/add_snapshot_post
...
fix(server/transporter.go) fix the short timeout problem of sending snapshot
2014-03-11 18:51:47 -07:00
e9a1ac15d9
Allow partial cluster config updates.
2014-03-10 16:05:03 -07:00
c0a59b3a27
Add minimum active size and promote delay.
2014-03-10 14:44:04 -06:00
074c78d725
fix(store): corrected CAS and CAD fail cause in response
...
specifically when both prevIndex and prevValue are provided
2014-03-08 14:50:34 +07:00
312ac5d066
fix(server/transporter.go) fix the short timeout problem of sending snapshot
...
Snapshot can be tens of MB. We need to have a minute level timeout for sending snapshot.
We add a separate snapshot http client for snapshot request, which has 120s timeout.
2014-03-08 00:15:47 -05:00
c91688315a
Minor fixes to proxies.
2014-03-07 07:38:40 -07:00
3fff1a8dcd
Add /machines and /machines/:name endpoints.
2014-03-06 15:11:31 -07:00
3cd83c61c4
Fix PUT /config response and log errors.
2014-03-06 13:35:46 -07:00
fe4dee03ab
Minor fixes.
2014-03-04 09:29:44 -07:00
c3b4afc139
Fix JoinCommand comment.
2014-03-04 08:56:10 -07:00