Commit graph

2478 commits

Author SHA1 Message Date
Matthew Jaffee
cc8733eedb
fix bug where a count query and bitmap query could return different numbers
There was a case where the Bitmap iterator logic could skip over a bit in a run
container if 1. the run container was not the first container in the bitmap, and
2. The first run in the run container had only one bit.

The bug was due to how the iterator was initialized with iterator.Seek(0) which
sets up the initial values of itr.i,j,k based on the type of the first
container. It was failing to set itr.k to -1 unless the first container was an
RLE container. itr.k is only used by RLE containers in the iterator, and must be
set to -1 when an RLE container is encountered. When Iterator.Next() encountered
the run container and itr.k was set to 0, it checked to see if itr.k <= run.last
- run.first, and if so it assumes that it was finished with the run and moved to
the next one. run.last - run.first is 0 in the case of a single bit run, so that
bit was skipped. After this, itr.k is set to -1 and all further iteration
proceeds as expected.
2018-02-06 10:26:17 -06:00
Cody Soyland
902a2daf76
Merge pull request #1078 from codysoyland/diagnostics-build-constraint
Enable diagnostics via build constraint to prevent from running in tests
2018-02-05 08:55:31 -06:00
Cody Soyland
6756d97089 Enable diagnostics via build constraint to prevent from running in tests 2018-02-02 17:32:14 -06:00
alanbernstein
0dee49279c
Merge pull request #1075 from alanbernstein/readme-question-link
Link to usage question issue
2018-01-29 13:57:47 -06:00
Alan Bernstein
8625c2fcdb Update wording 2018-01-29 13:44:43 -06:00
Alan Bernstein
73e0b67aee Link to usage question issue 2018-01-29 12:15:29 -06:00
Travis Turner
c6ed7345c7
Merge pull request #1068 from travisturner/node-status-mutex
add lock around Node.status to avoid race condition
2018-01-24 23:06:45 -06:00
Travis Turner
878b188155
add accessor method for Node.status 2018-01-24 17:03:58 -06:00
Travis Turner
88fa51e6bf
add lock around Node.status to avoid race condition 2018-01-24 16:03:36 -06:00
Yuce Tekol
ee503c455a
Merge pull request #1056 from yuce/1045-use-multinode-cluster-in-tests
Uses NewServerCluster method in tests
2018-01-23 19:12:25 +03:00
Travis Turner
953e2ea42f
Merge pull request #1063 from travisturner/import-keys
WIP: Modify `pilosa import` to support string rows/columns
2018-01-22 18:05:47 -06:00
Travis Turner
5fa7dfd63d
allow for QueryResultTypeNil 2018-01-22 18:04:41 -06:00
Travis Turner
d8559ae469
refactor to remove BitK (in favor of Bit) 2018-01-22 15:35:10 -06:00
Travis Turner
a56410a70b
WIP: Modify pilosa import to support string rows/columns
This PR adds a flag `pilosa import --string-keys=true` which treats the
payload CSV as comma separated strings.
2018-01-22 15:34:45 -06:00
Travis Turner
7c34c82eca
Merge pull request #1064 from travisturner/queryresponse-type
Add QueryResult.Type to protobuf message to distiguish results at the client
2018-01-22 15:31:15 -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
Yuce Tekol
be24428367
Uses NewServerCluster method in tests 2018-01-17 14:43:58 +03:00
Matthew Jaffee
3e801d0fc1
Merge pull request #1055 from jaffee/enterprise
Enterprise
2018-01-16 16:52:13 -06:00
Travis Turner
0ad65e64b7
use json:omitempty on Pair.Key 2018-01-16 11:21:02 -06:00
Travis Turner
64e1b95910
fix test TestHandler_Query_Pairs_JSON 2018-01-16 11:21:02 -06:00
Ben Johnson
234d40fe96
Enterprise support. 2018-01-16 11:21:01 -06:00
Matthew Jaffee
3894e571d8
Merge pull request #1053 from jaffee/test-cluster-helper
add NewServerCluster(size int) method to pilosa/test
2018-01-16 09:53:36 -06:00
Matthew Jaffee
5799c10cd1
rename openPort, and some small refactors 2018-01-16 09:41:03 -06:00
Matthew Jaffee
673a290255
make diagnostics false in cluster test 2018-01-15 10:40:36 -06:00
Yuce Tekol
8a82a5c9a3
Merge pull request #1039 from yuce/1034-version-endpoint-modification
[Trivial] [Low priority] Makes /version endpoint semver-compatible
2018-01-15 18:41:32 +03:00
Matthew Jaffee
0ac8648ea9
add NewServerCluster(size int) method to pilosa/test 2018-01-12 16:29:32 -06:00
Matthew Jaffee
df5840936c
Merge pull request #1051 from jaffee/release-protection
don't build release if git status is not clean
2018-01-12 10:59:27 -06:00
Matthew Jaffee
b5df590bd0
don't build release if git status is not clean 2018-01-11 17:14:31 -06:00
Travis Turner
787d2830b3
Merge pull request #1048 from travisturner/syncer-stats
add some statsd calls to HolderSyncer
2018-01-11 15:26:01 -06:00
Travis Turner
3fc2f27710
add some statsd calls to HolderSyncer 2018-01-11 14:57:45 -06:00
Matthew Jaffee
bd2c9b8d1a
Merge pull request #1043 from jaffee/readlocks-master
Readlocks master
2018-01-09 16:07:20 -06:00
Matthew Jaffee
e5c2d3e5d8
update gopkg.lock 2018-01-09 14:05:30 -06:00
Matthew Jaffee
664fb7cad0
convert some locks to rlocks 2018-01-09 13:55:29 -06:00
Matthew Jaffee
59bd2da93f
fix a number of data races
datadog statsd client contained a race condition - was fixed in master

Server.Logger contained a race where multiple loggers could write to the same
output io.Writer

TestMain_FrameRestore contained a race where it tried to change a cluster's
nodes while it was running (which conflicted with antiEntropy reading that
state).
2018-01-09 13:31:17 -06:00
Yuce Tekol
bc49d1e6fd
Makes /version endpoint semver-compatible 2018-01-09 21:15:36 +03:00
Travis Turner
311f9699b7
Merge pull request #1035 from travisturner/disable-diagnostics-in-server-tests
disable diagnostics in server tests
2018-01-02 15:41:40 -06:00
Travis Turner
149e8124db
disable diagnostics in server tests 2018-01-02 15:10:02 -06:00
Travis Turner
767c52dd16
Merge pull request #1030 from travisturner/tutorial-field-fixes
apply comments in #1022
2018-01-02 12:33:57 -06:00
Cody Soyland
78033a2374
Merge pull request #1025 from codysoyland/diagnostics-uptime-caps
Rename diagnostics metric "uptime" to "Uptime"
2018-01-02 11:04:25 -06:00
Matthew Jaffee
e72d596ad6
Merge pull request #923 from jaffee/test-helpers
add test helper for starting a new pilosa instance
2017-12-29 16:46:48 -06:00
Travis Turner
776dc79050
Merge pull request #1032 from travisturner/memberlist-wan-config
change gossip config from DefaultLocalConfig to DefaultWANConfig
2017-12-23 19:39:44 -06:00
Travis Turner
009a2482b4
change gossip config from memberlist.DefaultLocalConfig to memberlist.DefaultWANConfig 2017-12-22 17:06:24 -06:00
tgruben
e4f5494db2
Merge pull request #1027 from tgruben/rle-optimize
added binary search to runAdd
2017-12-22 13:26:27 -06:00
Travis Turner
4d61800c38
apply comments in #1022 from cody 2017-12-22 10:20:00 -06:00
Travis Turner
cea8c10381
Merge pull request #1026 from travisturner/tutorial-row-col-attributes
basic row/col attribute tutorial
2017-12-22 10:17:40 -06:00
Todd Gruben
8547f1a2a9 gofmted 2017-12-21 15:30:31 -06:00
Todd Gruben
89714c706d added binary search to runAdd 2017-12-21 15:12:35 -06:00
Travis Turner
1f06bb0a7e
basic row/col attribute tutorial 2017-12-21 14:16:26 -06:00
Cody Soyland
24a0c76ba5 Rename diagnostics metric "uptime" to "Uptime" to be consistent with other diagnostics metrics. 2017-12-21 07:57:08 -06:00
Travis Turner
ed14ddf4d6
Merge pull request #1023 from travisturner/bsi-tutorial-nav
add nav to the markdown header
2017-12-20 09:19:53 -06:00