Commit graph

5199 commits

Author SHA1 Message Date
Matthew Jaffee
1e05a6d627
fix getListener comment 2018-04-23 15:15:02 -05:00
Matthew Jaffee
9f1720f01d
unexport stuff in pilosa.Server
refactor gossip.NewGossipMemberset to not take Server
2018-04-23 15:12:23 -05:00
alanbernstein
c1252f067c
Merge pull request #1215 from alanbernstein/deprecate-inverse-frames
Remove docs references to inverse frames
2018-04-23 14:46:07 -05:00
Travis Turner
c19950b239
Merge pull request #1223 from travisturner/container-flip
clean up flipBitmap and add tests
2018-04-23 14:32:01 -05:00
Matthew Jaffee
28acc29a10
refactoring pilosa/server
trying to separate internal an external concerns in pilosa.Server - it should
handle Cluster, Holder, etc. while pilosa/server handles things with external
deps - e.g. Logger, Stats, Handler, etc. Using functional options in
pilosa.Server now.
2018-04-23 13:35:39 -05:00
Travis Turner
23f5c7166b
cleat up flipBitmap and add tests 2018-04-23 13:23:35 -05:00
Travis Turner
3282cf8cbe
remove PATCH frame endpoint 2018-04-23 11:32:41 -05:00
Travis Turner
f2729b90d7
vendor github.com/golang/groupcache/lru. rebuild Gopkg.lock 2018-04-23 10:43:06 -05:00
Travis Turner
3a17b30e7d
Merge pull request #1219 from travisturner/remove-dead-code
remove Index.MergeSchemas() method
2018-04-23 08:24:35 -05:00
Travis Turner
edee152a9b
remove Index.MergeSchemas() method 2018-04-20 13:20:56 -05:00
Travis Turner
5177b243f3
use ValCount return type (instead of SumCount, MinCount, and MaxCount) 2018-04-19 17:03:49 -05:00
Matthew Jaffee
b53db06a6e
Merge pull request #1216 from jaffee/move-config-obj
move pilosa.Config to pilosa/server.Config
2018-04-19 16:05:08 -05:00
Matthew Jaffee
23f6acc165
panic if NewCommand errors on NewServer 2018-04-19 15:37:08 -05:00
Matthew Jaffee
876ed56e30
move pilosa.Config to pilosa/server.Config
step 1 of #1203

The Config object is really just a specification of the options to pilosa
server, so it makes sense to have it in that package.
2018-04-19 14:51:42 -05:00
Alan Bernstein
84e6493d7a Add deprecation warning to examples doc 2018-04-19 10:31:01 -05:00
Alan Bernstein
72eb3d239a Remove references to inverse frames 2018-04-18 14:18:57 -05:00
Travis Turner
5a740eb1d9
Merge pull request #1212 from travisturner/remove-input-defintion-docs
remove references to Input Defintion from the docs
2018-04-18 11:23:54 -05:00
Matthew Jaffee
ff8fea804c
remove outdated pdk docs, and write some new ones
incomplete, but an improvement?
2018-04-18 11:22:59 -05:00
Travis Turner
8c2387b45e
remove references to Input Defintion from the docs 2018-04-18 11:06:53 -05:00
Travis Turner
7f71b1649c
Merge pull request #1209 from travisturner/remove-index-timequantum
Remove Index.TimeQuantum
2018-04-18 10:10:23 -05:00
Travis Turner
e7151eb2a8
Remove Index.TimeQuantum 2018-04-18 08:17:26 -05:00
Travis Turner
590b7c30ab
Merge pull request #1207 from travisturner/security-manager-to-api
Remove SecurityManager. Implement api restrictions in api package.
2018-04-18 07:30:28 -05:00
Travis Turner
e60d11a23e
change references from "function" to "method" 2018-04-17 17:07:41 -05:00
Matthew Jaffee
ede383f8eb
Merge pull request #1205 from jaffee/1194-deprecate-rangeenabled
deprecate RangeEnabled, but leave in API
2018-04-17 16:39:10 -05:00
Travis Turner
5468065213
improve apiFunc error handling. change slice to map in function validation. 2018-04-17 13:01:36 -05:00
Matthew Jaffee
e56b8717b5
add better inverseEnabled with field test 2018-04-17 09:00:57 -05:00
Matthew Jaffee
58492c7eab
remove period in CHANGELOG 2018-04-17 07:54:25 -05:00
Travis Turner
0a8d573fb3
WIP: Remove SecurityManager. Implement api restrictions in api package. 2018-04-16 17:12:28 -05:00
Matthew Jaffee
c7f2d0f675
update unreleased section of CHANGELOG with rangeEnabled deprecation 2018-04-16 16:16:14 -05:00
Matthew Jaffee
fe0ba6280f
deprecate RangeEnabled, but leave in API
the RangeEnabled option now has no effect, but it still exists in the API. A few
tests still use it to ensure this. This would only be considered a breaking
change if someone was relying on Pilosa to enforce the RangeEnabled: false
option to prevent fields being created in certain frames. This seems unlikely.
2018-04-16 16:08:04 -05:00
Matthew Jaffee
d34f3354bb
Merge pull request #1200 from jaffee/1170-global-defaults
remove global defaults from config.go
2018-04-15 17:59:21 -05:00
Matthew Jaffee
7233597f35
remove DefaultConfig global (only used once). Fix data-dir comment 2018-04-15 17:20:14 -05:00
Matthew Jaffee
de29ddbb25
Merge pull request #1198 from jaffee/writerto-fix
use io.WriterTo instead of custom
2018-04-13 12:46:46 -05:00
Matthew Jaffee
0c35094bfc
few more docs tweaks 2018-04-13 10:21:47 -05:00
Yuce Tekol
8fb4df96a4
Merge pull request #1189 from yuce/1187-index-required-for-fragment-nodes
[TRIVIAL] index param is required for /fragment/nodes
2018-04-13 04:28:31 +03:00
Matthew Jaffee
3f303d1098
remove global defaults from config.go
these were occaisionally referenced elsewhere in the codebase - in all but one
case, there were workarounds that are actually better I think.

In the one case there wasn't I created a single top level DefaultConfig object
which is instantiated with all the default values and can be referred to if
necessary.

There was a bug in fragment.go with the way MaxWritesPerRequest was treated if
it was 0. Elsewhere, 0 meant no limit, but here, it would have caused a division
by 0.

Changed the default metrics provider from "nop" to "none", although "nop" will
still work. Previously, any value other than "statsd" or "expvar" was treated as
"nop", but I've changed this behavior to return an error if an invalid string is
provided. I think this is better behavior, because in the case that someone
bothered to change the default, they were probably interested in actually
getting stats, and might be annoyed when it silently failed.
2018-04-12 19:52:48 -05:00
Yuce Tekol
3695a8e889
Updated with master 2018-04-13 03:50:26 +03:00
Yuce Tekol
cde6082869
Merge branch 'master' into 1187-index-required-for-fragment-nodes 2018-04-13 03:43:17 +03:00
Yuce Tekol
e6dbdcb836
Merge pull request #1188 from yuce/tutorial-update
Updated tutorials
2018-04-13 03:42:36 +03:00
Yuce Tekol
a04ae99fb3
updated cluster tutorial with feedback 2018-04-13 03:41:59 +03:00
Matthew Jaffee
8ec801a732
use io.WriterTo instead of custom 2018-04-12 16:37:49 -05:00
Travis Turner
47a5ed84bd
add executor min/max tests. fix related bugs. 2018-04-12 15:49:55 -05:00
Matthew Jaffee
4343214001
Merge pull request #1197 from jaffee/handler-api-refactoring
Handler api refactoring
2018-04-12 12:56:32 -05:00
Matthew Jaffee
04f5d5875c
api docs, rename funcs, refactor usage of internal
All exported funcs in api.go are now documented

Several poorly named methods of API and Cluster were renamed. Particularly, the
word Fragment was often changed to Slice in cases where it was really a slice
being specified and not a fragment.

several methods which received or returned internal data structures have been
refactored to be more opaque.

Deprecation logging was added to input definition methods.
2018-04-12 11:28:35 -05:00
Travis Turner
ee4dbbf328
min/max documentation 2018-04-11 15:39:41 -05:00
Travis Turner
16539bbab1
WIP: implement Min/Max BSI queries 2018-04-11 15:39:40 -05:00
Matthew Jaffee
9257029da5
simplify Status endpoint
had to update test which was relying on a fake ClusterStatus implementation. Now
the status endpoint uses information directly from Cluster.Nodes and
Cluster.state - which is what Server (the usual ClusterStatus impl) uses, so it
should make no difference for real clusters.
2018-04-11 14:25:02 -05:00
Matthew Jaffee
9daef2180c
rename a number of API methods 2018-04-11 13:49:51 -05:00
Travis Turner
ea2921c192
Merge pull request #1192 from travisturner/inverse-slice-on-remote
make sure that slices is treated as inverseSlices on inverse calls
2018-04-11 13:30:51 -05:00
Matthew Jaffee
feec5f07e1
add more doc comments to api 2018-04-11 13:30:35 -05:00