Ben Johnson
234d40fe96
Enterprise support.
2018-01-16 11:21:01 -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
Travis Turner
149e8124db
disable diagnostics in server tests
2018-01-02 15:10:02 -06:00
Travis Turner
637111a76c
Change Broadcaster.SyndSync to send direct via http
...
as opposed to using memberlist's gossip broadcast.
Introduce a Gossiper interface for SendAsync gossip messages.
2017-12-08 09:00:47 -06:00
Travis Turner
9b54259cd7
Resume test: TestMain_SendReceiveMessage
...
Create a custom memberlist NetTransport (which will bind to an available
port when port = 0 in the configuration). This allows us to bind
to dynamic ports in tests while at the same time determining a valid
seed for the cluster.
2017-12-04 14:56:21 -06:00
Todd Gruben
f051f7ccea
refactored httpclient handling
2017-12-01 16:00:12 -06:00
Cody Soyland
dc7dd26955
Fix test for CountOpenFiles
2017-11-15 13:38:55 -06:00
Cody Soyland
a17b1b5b27
Simplify TestCountOpenFiles: Fragile in some environments due to unpredictable open file count
2017-11-14 14:57:32 -06:00
Travis Turner
1a965e7f9c
comment out test TestMain_SendReceiveMessage until addressing several issues
2017-11-13 15:55:01 -06:00
Cody Soyland
8c0d1ece55
Remove "plugins.path" configuration option
...
According to Todd, the current plugin direction is static and there is no need for dynamic loading, so this option is no longer needed.
2017-11-08 11:46:23 -06:00
Yuce Tekol
569cd90f59
Merge pull request #892 from yuce/client-refactoring
...
Internal Client refactoring
2017-10-24 02:46:02 +03:00
Yuce Tekol
66650ec1f7
NewExecutor doesn't return an error; renamed NewClient to NewInternalHTTPClient
2017-10-18 17:38:20 +03:00
Yuce Tekol
838d56011c
Renamed Client to InternalHTTPClient
2017-10-17 16:04:42 +03:00
Yuce Tekol
9ac54c31b0
updated NewGossipNodeSet call in tests
2017-10-13 13:39:38 +03:00
Yuce Tekol
e223ec3f9a
Rename Host -> URI
2017-10-12 15:49:34 +03:00
Yuce Tekol
3501732b19
https with signed certificates work
2017-10-08 21:11:19 +03:00
Yuce Tekol
a95b09d30d
more host string to uri changes
2017-10-04 15:29:00 +03:00
Yuce Tekol
1bedfd6585
use URI instead of host
2017-10-04 08:20:00 +03:00
Travis
c4a4f0dcc4
don't normalize bind address after all, just have it use defaults when necessary
2017-08-07 08:25:35 -05:00
Travis
fcb311389e
added pilosa.NormalizeAddress() to address variations in the bind configuration
2017-08-07 08:25:35 -05:00
Travis
a3b1b2ee1a
DefaultClusterType = ClusterGossip
...
This commit removes the `httpbroadcast` NodeSet, sets the default cluster type
to `gossip`, and uses the `static` cluster type for most test cases.
2017-08-07 08:25:35 -05:00
Michael Baird
1569c932ff
Merge branch 'master' into input-definition
2017-07-18 14:51:15 -05:00
Linh Vo
6a50427629
rename Config's fields
2017-07-10 13:34:10 -05:00
Linh Vo
95166fd0ee
revert config and fix json tag
2017-07-10 11:28:32 -05:00
Linh Vo
53c7e5946d
validate columnID match primaryField
2017-06-23 14:39:52 -05:00
Linh Vo
7a3baed3ac
resolve proto conflict
2017-06-22 15:20:18 -05:00
Michael Baird
23e7e42d99
Test create input definition across 2 servers
2017-06-19 13:18:20 -05:00
Michael Baird
1e793a1c52
Count open file handles as a StatsD metric.
2017-06-12 13:16:19 -05:00
Ben Johnson
ca29f7692b
Fix failing tests when IPv6 is disabled.
...
Turning off IPv6 causes the tests to fail because the Go
`net.Listen()` function obtains a `[::]` address when using
a `localhost:0` bind address. Looking through the Go source
code, I don't see a good way to fix that.
This change adds a test flag to allow users to specify the
network name when running the test:
```sh
go test github.com/pilosa/pilosa/server -network tcp4
```
2017-06-01 14:43:59 -06:00
Michael Baird
8913e2e6f4
StatsD doc fixes
2017-05-23 09:10:43 -05:00
Travis
231cf683f0
Adjust tests to work with new DefaultPartitionN.
...
This mainly involved running `RecalculateCache()` on all fragments
in `TopN` tests. It seems these tests have been running as LRU
caches, and once we made `ranked` the default, they stopped working.
Some tests were affected by the change in partition number and
therefore the change in fragment to node mapping.
2017-05-01 23:07:41 -05:00
Travis
77feba689d
remove the support for . in Index and Frame names
2017-04-29 14:38:14 -05:00
Travis Turner
a1871388b0
Merge pull request #504 from travisturner/default-row-label
...
change DefaultRowLabel from `id` to `rowID`
2017-04-28 22:06:34 -05:00
Travis
0b5e058579
change DefaultRowLabel from id to rowID
2017-04-28 15:26:30 -05:00
Cody Soyland
3996b56b88
Apply Apache License 2.0
2017-04-28 14:22:03 -05:00
Travis
ba455064d9
Add a test to ensure that BroadcastMessage is handling new indexes, frames, and slices
2017-04-27 11:44:14 -05:00
Travis
2ad322c2c7
Rename DB to Index
...
Rename `db.go` to `index.go` and `db_test.go` to `index_test.go`
2017-04-23 21:49:27 -05:00
Ben Johnson
d34687121f
Rename bitmap/profile to row/column.
2017-04-21 21:23:24 -06:00
Travis
95a546e138
adjust tests and client to comply with the new HTTP endpoints
2017-04-18 14:19:36 -05:00
Matt Jaffee
6f443f447a
add signed int support
...
this affects the scanner/parser and makes it produce signed ints rather than
uints, and so it affects all code that is expecting unsighed ints to come out of
the parser.
2017-04-18 12:50:26 -05:00
Linh Vo
22bac56dc5
test setProfileAttrs with option column
2017-03-24 12:26:49 -05:00
Matt Jaffee
176861d702
add embedded struct to contain io for commands
...
per @tgruben's suggestion
2017-03-17 16:43:04 -05:00
Matt Jaffee
555a514e37
code review tweaks
2017-03-07 11:30:31 -06:00
Matt Jaffee
02c3c6d3e6
use cobra/viper and move cmd/pilosa to server subcommand
2017-03-03 13:03:57 -06:00