Matt Jaffee
c2c1910671
fix comment typos
2018-07-10 16:38:55 -05:00
Matt Jaffee
b7e5f8842e
add a configurable timeout to http handler closing
...
refactor handler Close func to use errgroup to be a bit less messy.
refactor pilosa.Server closing to actually return an underlying error if one occurs
add option to pilosa/test.Cluster and pilosa/server.Command to control close
timeout. currently is only used by the http handler, but conceivably could be
passed as a parameter to other subsystems of pilosa/server.Command
2018-07-10 15:16:35 -05:00
Cody Soyland
c004ffba3e
Unexport test.NewIndex
2018-07-05 23:11:56 -05:00
Cody Soyland
17d212444c
Unexport test.NewField
2018-07-05 23:11:56 -05:00
Cody Soyland
8e026493a4
Unexport test.NewCommand
2018-07-05 23:11:56 -05:00
Cody Soyland
66771b6ccd
Unexport test.MustOpenField
2018-07-05 23:11:56 -05:00
Cody Soyland
48730e722f
Unexport test.Field.Reopen
2018-07-05 23:11:56 -05:00
Cody Soyland
9ddb881bed
Unexport test.Field.Close
2018-07-05 23:11:56 -05:00
Cody Soyland
39504f8ded
Unexport test.Command.Stderr
2018-07-05 23:11:56 -05:00
Cody Soyland
44e0659934
Unexport test.Command.Stdout
2018-07-05 23:11:56 -05:00
Cody Soyland
3aa759bff7
Unexport test.Command.Stdin
2018-07-05 23:11:56 -05:00
Cody Soyland
66df2cf126
Unexport test.BufferLogger
2018-07-05 23:11:56 -05:00
Cody Soyland
a0e23fa6be
Merge branch 'develop' into dead-code-removal
2018-07-05 16:59:31 -05:00
Cody Soyland
2b7d937df2
Merge branch 'develop' into remove-setupserver-calls
2018-07-05 15:36:38 -05:00
Cody Soyland
da4cd84820
Remove some dead code
2018-07-05 15:31:07 -05:00
Travis Turner
44f0b992f6
change all CreateField() methods to take functional options instead of FieldOptions
2018-07-04 21:22:35 -05:00
Matt Jaffee
7900e47f8a
Merge branch 'develop' into remove-setupserver-calls
2018-07-03 16:33:32 -05:00
Matt Jaffee
5ff77c816a
get rid of unecessary server stuff and export node and uri
2018-07-03 13:26:51 -05:00
Matt Jaffee
3781b6e7eb
remove redundant calls to SetupServer
2018-07-03 11:05:33 -05:00
Matt Jaffee
bc0fce99d5
fix MustSetBit and cleanup dead code
2018-07-03 08:53:16 -05:00
Matt Jaffee
5a9802c3b7
get rid of test.Holder.ViewRow, replace with more restricted RowTime
2018-07-02 17:08:33 -05:00
Matt Jaffee
cff01f46c2
unexport fragment.go stuff
2018-07-02 14:50:33 -05:00
Matt Jaffee
4182678d5a
work on unexporting View stuff
2018-07-02 10:11:56 -05:00
Matt Jaffee
95547a9a27
remove the last usages of test.NewExecutor and cleanup unused in test package
2018-07-01 07:31:31 -05:00
Matt Jaffee
29ad1287d4
refactor executor_test.go
2018-06-30 08:41:19 -05:00
Matt Jaffee
5766f572b1
fix skipped client TopN test
...
had to remove the first check which was for the wrong result - because maxShard
is no longer wrong since the broadcaster is actually working.
2018-06-29 12:21:33 -05:00
Cody Soyland
86b24e3824
Remove API.Broadcaster
2018-06-28 15:51:51 -05:00
Travis Turner
e17096328d
Merge branch 'develop' into slice-to-shard
2018-06-28 15:38:40 -05:00
tgruben
a81e01b019
Merge branch 'develop' into clearbit-notime
2018-06-28 14:12:29 -05:00
Travis Turner
5dd7a9556a
rename slice to shard
2018-06-28 14:07:07 -05:00
Cody Soyland
4f3cf9af30
Use GossipAddress() helper
2018-06-28 13:34:58 -05:00
Cody Soyland
824474160e
Enhance test utilities (introduce Cluster type, improve naming)
2018-06-28 13:34:58 -05:00
Travis Turner
22661f3571
Merge branch 'develop' into field-options
2018-06-28 10:20:17 -05:00
tgruben
a8418b6c49
Merge branch 'develop' into clearbit-notime
2018-06-27 18:21:27 -05:00
Todd Gruben
4970083d4d
refactored strategy for time based clearbit
2018-06-27 18:15:44 -05:00
Matt Jaffee
9998eda3d4
remove Server.Addr - use URI instead
2018-06-27 13:37:08 -05:00
Matt Jaffee
ea448fee9c
remove remaining external references to Server.Cluster
2018-06-27 13:37:07 -05:00
Matt Jaffee
fbe035ef25
simplify test cluster setup by exposing gossip transport on server.Command
2018-06-27 10:46:37 -05:00
Travis Turner
6ab2729f0c
Merge branch 'develop' into field-options
2018-06-26 23:39:42 -05:00
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
Todd Gruben
f16426b50a
Merge remote-tracking branch 'upstream/develop' into clearbit-notime
2018-06-26 13:24:06 -05:00
Todd Gruben
ddf1ffc797
Merge branch 'develop' into clearbit-notime
2018-06-26 12:35:30 -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
Todd Gruben
35af580183
expanded views to contain viewType for special handling
2018-06-26 10:54:06 -05:00
Travis Turner
028e95d914
Allow a single functional option for field options.
...
Move field type specific validation to functional options.
2018-06-26 10:37:56 -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
Travis Turner
50794bf63b
move fieldOptions unmarshal to the handler
...
validate fieldOptions in http package
2018-06-25 15:14:22 -05:00