Commit graph

3639 commits

Author SHA1 Message Date
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
Matthew Jaffee
e667aede06
Merge pull request #1415 from pilosa/1414-frame-dash
allow dashes in frame names
2018-06-26 07:48:01 -05:00
Matt Jaffee
4ab9c66070
allow dashes in frame names 2018-06-26 07:00:13 -05:00
Cody Soyland
ff7c3cb512
Merge branch 'develop' into command-server-opts 2018-06-25 19:42:22 -05:00
Cody Soyland
9f68ea4663 Use OptCommandServerOptions to inject mock TranslateStore 2018-06-25 17:22:34 -05:00
Matt Jaffee
de702dab1e
Merge branch 'develop' into fix-translate 2018-06-25 16:02:12 -05:00
Travis Turner
50794bf63b
move fieldOptions unmarshal to the handler
validate fieldOptions in http package
2018-06-25 15:14:22 -05:00
Cody Soyland
a8a2be4bf4
Merge pull request #1411 from codysoyland/api-field-removal
Remove redundant fields from API
2018-06-25 15:10:50 -05:00
Cody Soyland
324028a8c2 Add ability to pass ServerOptions when calling NewCommand 2018-06-25 15:09:36 -05:00
Cody Soyland
790d565890 Remove redundant fields from API (a few remain due to test overrides) 2018-06-25 13:46:50 -05:00
Matt Jaffee
bb33411c5d
remove debugging print statement 2018-06-25 12:40:46 -05:00
Matt Jaffee
288ec9cb83
Merge branch 'develop' into fix-translate 2018-06-25 12:39:53 -05:00
Matt Jaffee
b2dd9c50ca
Merge branch 'develop' into fix-translate 2018-06-25 12:33:52 -05:00
Travis Turner
56f8b92257
Merge pull request #1408 from travisturner/check-header
add wildcard checks to checkHeaderAcceptJSON()
2018-06-25 11:48:43 -05:00
Travis Turner
2e035ee837
Merge branch 'develop' into check-header 2018-06-25 11:41:07 -05:00
Travis Turner
27e6dcea2b
rename checkHeaderAcceptJSON to validHeaderAcceptJSON and reverse boolean logic 2018-06-25 11:26:23 -05:00
Matthew Jaffee
5160ed58f7
Merge pull request #1407 from pilosa/wip-api-refactor
api refactor
2018-06-25 11:26:05 -05:00
Matt Jaffee
8878b02345
cleanup - address review feedback 2018-06-25 11:08:00 -05:00
Travis Turner
9d3332929d
add wildcard checks to checkHeaderAcceptJSON() 2018-06-24 22:45:35 -05:00
Matt Jaffee
6093064ac0
remove unecessary test and convert import test 2018-06-22 16:26:45 -05:00
Matt Jaffee
c9e6d36f94
fix some of the client tests 2018-06-22 13:44:50 -05:00
Matt Jaffee
5d28d2dc31
skip new tests which use test.NewServer 2018-06-22 13:00:52 -05:00
Matt Jaffee
ba9112507d
fix server/handler_test.go for newpql 2018-06-22 12:57:28 -05:00
Matt Jaffee
7a5adf7428
Merge branch 'develop' into wip-api-refactor 2018-06-22 12:46:19 -05:00
Matthew Jaffee
c1f11d40e4
Merge pull request #1382 from pilosa/newpql
Newpql
2018-06-22 12:41:44 -05:00
Matt Jaffee
f5d62de0a2
Merge branch 'develop' into newpql 2018-06-22 12:26:20 -05:00
tgruben
bc46d379b7
Merge pull request #1401 from tgruben/crash-value-overwrite
Fix for Crash
2018-06-22 11:19:57 -05:00
Matt Jaffee
6b57369b51
fix stats tests 2018-06-22 10:44:36 -05:00
Cody Soyland
6dd8b9adc6 Move server initialization to prevent race condition 2018-06-22 10:22:13 -05:00
Todd Gruben
20c8247dc5 Merge branch 'crash-value-overwrite' of github.com:tgruben/pilosa into crash-value-overwrite 2018-06-22 10:06:44 -05:00
Todd Gruben
22a546095a fixed reset method on btree plugin 2018-06-22 10:05:41 -05:00
Yuce Tekol
7aff2173bd
Merge branch 'develop' into update-getting-started 2018-06-22 17:48:00 +03:00
Ben Johnson
8f3189c1b3
Translation fixes, error checking. 2018-06-22 08:12:35 -06:00
Matt Jaffee
80f5b13a97
Merge branch 'develop' into newpql 2018-06-22 09:11:00 -05:00
Matt Jaffee
d1de586ea0
remove all oldpql and fuzzer code 2018-06-22 09:08:08 -05:00
alanbernstein
406f008f80
Merge pull request #1402 from alanbernstein/pql-updates
Update to new PQL syntax beyond the parser
2018-06-22 08:42:26 -05:00
Alan Bernstein
ac66e51a1f Finish shell of OldPQL test 2018-06-22 08:36:03 -05:00
Alan Bernstein
35526dd0d7 Update to new PQL syntax beyond the parser 2018-06-22 08:11:27 -05:00
Matt Jaffee
3c4ba82a4a
finish conversion of handler tests 2018-06-22 08:08:53 -05:00
Alan Bernstein
5bf9af4df3 Parser and test updates 2018-06-22 08:07:31 -05:00
Matt Jaffee
8809751a23
convert all tests except for CORS 2018-06-22 07:41:39 -05:00
tgruben
4b72489997
Merge branch 'develop' into crash-value-overwrite 2018-06-21 20:10:54 -05:00
Matt Jaffee
016dbac6ca
convert a bunch more tests 2018-06-21 19:24:17 -05:00
Todd Gruben
643e5e575a fixed crashing issue that was not handling container removal/recycling correctly 2018-06-21 18:39:06 -05:00
Cody Soyland
e2512ec58d Use test.MustRunMainWithCluster in ctl tests 2018-06-21 16:26:34 -05:00
Cody Soyland
526bdae280 Remove unneccessary t.Skip() 2018-06-21 15:41:34 -05:00
Matt Jaffee
504309e594
rewrite some tests to not be skipped 2018-06-21 15:06:22 -05:00
Matt Jaffee
a033771412
move handler tests which are actually testing everything to server package 2018-06-21 14:05:00 -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