Matt Jaffee
bcb6942c80
continue simplifying memberset and pilosa setup
...
since the gossip MemberSet has access to Server, it wasn't really necessary to
pass it a Node object when calling Open on it from Cluster. The end goal is to
have it be removed from Cluster entirely, and have it be Opened externally, and
this is a step toward that.
Exposing Node method on Server doesn't really expose any more than was already
there as the same info can be gotten from LocalStatus with a bit of type
casting. I figured adding the method was a little cleaner, and we could collapse
all the functionality when the dust has settled.
The Cluster.open method has been broken into two parts - one of which happens
earlier (at NewServer time), and the other will eventually just be "waiting to
make sure we've joined the cluster". Right now it's calling Memberset.Open, and
then waiting to make sure the cluster has been joined.
2018-06-26 14:36:05 -05:00
Matt Jaffee
3314a0372c
Merge branch 'develop' into simplify-event-receiver
2018-06-26 11:45:14 -05:00
Cody Soyland
533de70cbd
Allow passing slice of CommandOptions to MustRunMainWithCluster, each slice going to one Command
2018-06-26 11:22:48 -05:00
Cody Soyland
e448d47004
Store commandOptions on test.Main for use in Reopen(); unexport serverOptions
2018-06-26 08:47:31 -05:00
Matt Jaffee
ee37152cd5
consolidate gossipEventReceiver into gossip member set
...
pilosa.Server now implements StatusHandler and EventReceiver and needs only
start a gossip memberset. A gossip member set now takes a server as an argument
explicitly and the maze of handlers and receivers and the starting sequence is
somewhat simplified.
Server now trivially implements EventHandler by passing the call along to its
Cluster object which has the actual implementation. This means that less things
will need to refer to cluster.
2018-06-26 07:50:33 -05:00
Cody Soyland
9f68ea4663
Use OptCommandServerOptions to inject mock TranslateStore
2018-06-25 17:22:34 -05:00
Matt Jaffee
8878b02345
cleanup - address review feedback
2018-06-25 11:08:00 -05:00
Matt Jaffee
3c4ba82a4a
finish conversion of handler tests
2018-06-22 08:08:53 -05:00
Matt Jaffee
c9479afe8c
start handler before server.Open to avoid stall in cluster.open
...
cluster.open waits for node to join cluster if it is not the coordinator, and
currently this relies on having the http handler able to receive messages, so
handler needs to be started first.
2018-06-21 13:56:46 -05:00
Cody Soyland
c6db3974bc
WIP API refactor
2018-06-21 13:51:31 -05:00
Todd Gruben
289bec9d81
repace panic with fatal for consistancy
2018-06-20 15:12:26 -05:00
Todd Gruben
ff81322d69
Merge remote-tracking branch 'upstream/develop' into accept-json
2018-06-20 13:14:37 -05:00
Todd Gruben
aac2397949
enforced Accept for json response endpoints
2018-06-20 13:13:46 -05:00
Matt Jaffee
44d3e87d4e
remove remaining external ref to Server.Holder and unexport holder
2018-06-20 11:21:03 -05:00
Matt Jaffee
7a05f32a17
remove NewAttrStore field on Server - unused
2018-06-20 11:14:09 -05:00
Travis Turner
c77b7d5ca5
remove view argument from Field.SetBit and Field.ClearBit
2018-06-19 18:15:38 -05:00
Travis Turner
8c35cb89bb
rename test/frame.go to test/field.go
2018-06-19 17:54:16 -05:00
Matt Jaffee
60dee04ed1
move pilosa/test/attr.go into pilosa/attr_test.go
2018-06-18 12:52:58 -05:00
Matt Jaffee
9a74763156
move pilosa/test/client.go helpers into pilosa/client_test.go
2018-06-18 12:40:59 -05:00
Ben Johnson
060254e0d6
Key-to-ID Translation
...
This commit adds id-to-key translation to make it easier for users
to provide non-integer identifiers for rows & columns.
2018-06-15 16:45:05 -06:00
Travis Turner
8021fc389b
un-export (some) Cluster methods
2018-06-13 15:42:35 -05:00
Cody Soyland
ecbbd31b4e
Improve naming
2018-06-13 09:18:50 -05:00
Cody Soyland
daffa3b125
Rename InternalHTTPClient -> InternalClient
2018-06-13 09:04:04 -05:00
Cody Soyland
0b16a3afb9
Merge branch 'develop' into http-inversion
2018-06-12 14:49:54 -05:00
Cody Soyland
f2c104dfef
Migrate HTTP handler and client into http subpackage.
2018-06-12 13:22:40 -05:00
Travis Turner
e58d407182
unexport (most) View methods
2018-06-07 22:50:49 -05:00
Travis Turner
173939813f
remove slice argment from Field.Row() method
2018-06-07 17:14:46 -05:00
Travis Turner
3c3c98371b
unexport Fragment.Row(). This required creating Field.Row() and View.row()
2018-06-07 15:09:58 -05:00
Travis Turner
468ad57b6d
un-export Fragment.SetBit and Fragment.ClearBit.
...
adds methods to test.Holder to set/clear bits on a field.
2018-06-07 13:43:20 -05:00
Travis Turner
6f4c50a4b5
move fragment_test into the pilosa package (internal)
2018-06-06 16:06:11 -05:00
Travis Turner
2a9b1e9e5b
final Frame to Field rename
2018-06-06 01:27:12 -05:00
Travis Turner
0f8bd62e33
more Frame to Field in tests. move frame*.go files to field*.go
2018-06-05 23:58:46 -05:00
Travis Turner
4c44c5f33a
fix Frame to Field in tests
2018-06-05 23:33:00 -05:00
Travis Turner
7bb6d2b789
GoRename Frame to Field in fragment.go
2018-06-05 22:45:15 -05:00
Travis Turner
9db359d34a
GoRename Frame to Field in holder.go
2018-06-05 22:36:19 -05:00
Travis Turner
3531c128c4
GoRename Frame to Field in index.go
2018-06-05 22:33:48 -05:00
Travis Turner
1d3c4d6fcb
first pass at GoRename Frame to Field in frame.go
2018-06-05 17:52:22 -05:00
Travis Turner
dd6b80f90d
rename fragment.SetFieldValue() to fragment.SetValue(). Still exported for tests
2018-06-04 15:08:49 -05:00
Travis Turner
90a4d957bd
remove frame argument from Frame.SetFieldValue(). Rename it to Frame.SetValue()
2018-06-04 15:08:48 -05:00
Travis Turner
dbb4cdf390
adjust the tests to match the new unexported Field and FrameOptions
2018-06-04 14:45:28 -05:00
Cody Soyland
77a5c6f811
Merge branch 'master' into cors-support
2018-05-29 08:18:26 -05:00
Matt Jaffee
1317d5e989
more bit/column comment tweaks
2018-05-25 11:02:14 -05:00
Todd Gruben
e3da6efe3c
revert to old labels on BSI; revert MustSetColumns
2018-05-24 12:48:24 -05:00
Cody Soyland
1a9beb0916
Add CORS support to handler.
2018-05-24 08:42:34 -05:00
Todd Gruben
fb7bf11825
Bit -> Column migration
2018-05-23 15:05:22 -05:00
Matt Jaffee
616545cd5c
remove input definition, add install-stringer to Makefile
...
also removes one line of unreachable code in cluster.go (unrelated)
2018-05-14 17:14:20 -05:00
Travis Turner
43ec69d08b
API.URI was not being used. removed it.
2018-05-09 09:32:18 -05:00
Matthew Jaffee
992c3e8bdd
WIP - adding more locking to Cluster
2018-05-04 10:48:57 -07:00
Matthew Jaffee
57ac2f40aa
fix nil client bug in monitorAntiEntropy (and test)
...
also fix bug where broadcast_test tried to listen on localhost:10101
2018-04-28 09:12:59 -05:00
Matthew Jaffee
f99479932d
rename server Run to Start to better reflect functionality
2018-04-23 16:28:24 -05:00