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
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
063f3b574c
Check for peer before demotion.
2014-03-04 08:53:13 -07:00
c8d6b26dfd
Add auto-demotion after peer inactivity.
2014-03-03 11:15:05 -07:00
349a802a82
chore(server): remove useless CancelWhenTimeout
...
Setting request timeout is covered by go-httpclient now.
2014-02-28 21:52:56 -08:00
69adb78433
fix(transporter): CancelRequest doesn't work on HTTPS connections blocked
...
Currently this is a workaround. And it should be fixed in Go1.3.
2014-02-27 14:31:46 -08:00
df49265674
fix(discovery): remove its own address from peer list to join
2014-02-27 14:31:28 -08:00
fddbf35df2
Add automatic node promotion / demotion.
2014-02-25 10:02:01 -07:00
f5698d3566
Proxy promotion.
2014-02-24 17:01:04 -07:00
1d961b8e56
Add proxy mode.
2014-02-22 15:02:20 -07:00
46d817f91b
Merge pull request #577 from unihorn/6
...
chore: rename 'heartbeat timeout' to 'heartbeat interval'
2014-02-18 17:11:31 -08:00
f434177a9a
chore: rename 'heartbeat timeout' to 'heartbeat interval'
...
Heartbeat timeout means the period length that indicates heartbeat is
out of service, which is different from heartbeat interval.
So we should use '-peer-heartbeat-interval' instead of
'-peer-heartbeat-timeout' in etcd.
'-peer-heartbeat-timeout' is deprecated but still could be used.
2014-02-18 16:37:20 -08:00
8485987b74
Merge pull request #524 from yifan-gu/remove_omitempty_on_value
...
remove omitempty on value
2014-02-18 07:08:00 -08:00
9cfd8c5f0b
fix(store): make NodeExtern.Value a *string
...
Before this change if the value of a Node was "" it would get dropped from the json
encoding and the Node.Value field would be missing. Fix this problem by making
NodeExtern.Value a *string so that an empty string will be encoded but a nil value
will drop the field.
2014-02-18 00:50:44 -05:00