Commit graph

247 commits

Author SHA1 Message Date
Yuce Tekol
c4fea5ecc7
Merge pull request #1140 from yuce/cluster-resize-handler-validation
Cluster resize handler validation
2018-02-23 18:35:49 +03:00
Yuce Tekol
82d2b31d52
Merged query arg validator 2018-02-23 15:21:05 +03:00
Yuce Tekol
fcfc54eeeb
Merge pull request #1121 from yuce/652-validate-query-arguments
Validate /fragment/nodes arguments. Fixes #652
2018-02-22 23:01:34 +03:00
Travis Turner
52edeb72b4
add validation around node-remove conditions 2018-02-22 12:15:27 -06:00
Yuce Tekol
25e244ebdf
Updates 2018-02-22 17:33:41 +03:00
Travis Turner
c4f6a6beda
Merge branch 'master' into cluster-resize 2018-02-21 16:23:53 -06:00
Travis Turner
da125e323c
broadcast.SendSync field creation and deletion to all nodes 2018-02-21 14:56:38 -06:00
Yuce Tekol
0417439afa
Validate all relevant endpoints; Changed how validation key is composed 2018-02-21 18:03:05 +03:00
Yuce Tekol
c1f9dd4e59
Added query arg validator middleware; updated Gorilla/mux 2018-02-20 15:38:58 +03:00
Yuce Tekol
8e6041d0fe
Validate /fragment/nodes arguments. Fixes #652 2018-02-19 13:55:19 +03:00
Yuce Tekol
8db3a9b64d
Merge pull request #1109 from yuce/1069-all-recalculate-caches
Spread recalculate caches to all nodes. Fixes #1069
2018-02-12 22:00:37 +03:00
Cody Soyland
b08d1ce3d3
Merge pull request #1102 from codysoyland/cluster-resize-validate-set-coordinator
Fix node id validation on set-coordinator
2018-02-12 11:25:30 -06:00
Yuce Tekol
c2d16f44e3
Spread recalculate caches to all nodes. Fixes #1069 2018-02-12 04:12:35 +03:00
Cody Soyland
b3532a617f Fix error message (panics since err == nil) 2018-02-08 16:50:44 -06:00
Cody Soyland
01c2ced8ae Add back missing WebUI handler 2018-02-08 13:09:00 -06:00
Travis Turner
86dbbbf393
don't require oldNode in SetCoordinator() 2018-02-02 15:58:51 -06:00
Travis Turner
216ba7a41e
Use NodeID instead of URI for node identification 2018-02-02 15:58:46 -06:00
Travis Turner
2fdc8048c5
Merge branch 'master' into cluster-resize 2018-01-23 12:17:40 -06:00
Travis Turner
5fa7dfd63d
allow for QueryResultTypeNil 2018-01-22 18:04:41 -06:00
Travis Turner
56ad70e149
Add QueryResult.Type to protobuf message to distiguish results at the client 2018-01-22 15:27:49 -06:00
Travis Turner
c0fab2bcee
Merge branch 'master' into cluster-resize 2018-01-17 12:55:12 -06:00
Yuce Tekol
bc49d1e6fd
Makes /version endpoint semver-compatible 2018-01-09 21:15:36 +03:00
Travis Turner
6b3f4d1a64
Merge branch 'master' into cluster-resize
Refactored LocalID/ClusterID for use with Topology and Coordinator.
2017-12-18 15:39:50 -06:00
Yuce Tekol
1448171a2c
Adds local and cluster IDs 2017-12-15 18:12:28 +03:00
Travis Turner
0342da92bb
WIP: add tests for cluster resize
This commit adds support for allocating a gossip transport
and a server listener prior to opening server (and cluster).
Doing that allows tests to use a dynamically allocated port
by supplying bind port: 0.
2017-12-12 16:27:47 -06:00
Travis Turner
9667a04cad
Merge branch 'master' into cluster-resize 2017-12-08 17:56:31 -06:00
Travis Turner
637111a76c
Change Broadcaster.SyndSync to send direct via http
as opposed to using memberlist's gossip broadcast.
Introduce a Gossiper interface for SendAsync gossip messages.
2017-12-08 09:00:47 -06:00
Michael Baird
814bc40a16
return the error from /cluster/message 2017-12-08 08:22:59 -06:00
Michael Baird
013d32099e
New /cluster/message endpoint handles all SendSync Messages 2017-12-08 08:22:59 -06:00
Travis Turner
c9886b049b
Merge branch 'master' into cluster-resize working branch. 2017-12-04 22:18:57 -06:00
Todd Gruben
f051f7ccea refactored httpclient handling 2017-12-01 16:00:12 -06:00
Travis Turner
91c7abfa9a
remove outdated TODO 2017-11-28 16:47:40 -06:00
Travis Turner
a13db570cc
WIP: Wait for nodeState on Holder.Open().
Implement prefect in Cluster so a node can start http listener in a
restricted mode.
Adjust tests; particularly start test.Holder in state Normal.

TODO:
- [ ] fix test TestMain_SendReceiveMessage
- [ ] add additional tests for `nodeState`
2017-11-27 11:06:03 -06:00
Travis Turner
a98b862fca
add /cluster/resize/remove-node endpoint 2017-11-27 11:06:02 -06:00
Travis Turner
426992bc59
add set-coordinator endpoint 2017-11-15 09:13:52 -06:00
Yuce Tekol
f756e9eee6
Updates 2017-11-14 19:15:17 +03:00
Yuce Tekol
83be24f4d2
Removes column/row labels for input definition. Resolves #810 2017-11-10 18:00:45 +03:00
Travis Turner
e641aa1d8a
Merge branch 'master' into 'cluster-resize' 2017-11-07 15:00:11 -06:00
Travis Turner
ec5ac629cd
porting the remaining changes from PR #897 2017-11-06 14:48:35 -06:00
Travis Turner
da0184f728
Adjust comments. Change DefaultSecurityManager to NopSecurityManager. 2017-10-31 13:56:58 -05:00
Todd Gruben
fc829b08e8 made endpoint available for resize 2017-10-31 12:12:20 -05:00
Todd Gruben
9b7adde692 added endpoint protection for cluster resize 2017-10-31 11:32:08 -05:00
Travis Turner
fb08fd3902
endpoint to abort a cluster resize that is in progress 2017-10-30 15:50:22 -05:00
Travis Turner
f4b0729458
Rename structs and funcs.
NodeSet -> MemberSet
URISet -> NodeSet
AddNode -> AddNodeBasicSorted
AddHost -> AddNode
2017-10-30 13:03:55 -05:00
Travis Turner
ed1b4fcc2e
Copy fragment data from source nodes in resize instruction. 2017-10-30 13:01:57 -05:00
Travis Turner
f49b2f9b99
Adjust /status and /schema endpoints. Tried/failed to deprecate /slices/max (client is using it for backups). 2017-10-30 09:05:59 -05:00
Travis Turner
2bd0677df9
Remove MaxSlice polling.
Add Schema to proto.
Update MaxSlices in proto to include both standard and inverse.
Update LocalStatus (shared in gossip) to include MaxSlices and Schema.
Encode InputDefinitions with Index.

TODO:
- make sure InputDefinitions are considered in LocalStatus merge.
- decide what to do about `/slices/max` endpoint. client.backup is using
  it.
2017-10-26 23:48:40 -05:00
Travis Turner
cd8542ca30
Remove FrameSchema. Move Fields to the Frame struct. 2017-10-26 11:11:05 -05:00
Travis Turner
a8871ada6a
Convert Host to URI.
Fix all compile errors.
2017-10-25 11:52:55 -05:00
Yuce Tekol
642bf3180f
Rename NewClientFromURI to NewInternalHTTPClientFromURI 2017-10-18 21:17:25 +03:00