Commit graph

5199 commits

Author SHA1 Message Date
Matt Jaffee
9ea300da20
unexport broadcaster 2018-07-02 08:34:58 -05:00
Matt Jaffee
7ec9c97e46
fixup nopAttrStore.
Methods no longer take pointer receiver, and NewNopAttrStore always returns a
reference to the same global object (which is no longer exported).
2018-07-02 08:30:48 -05:00
Matt Jaffee
2210480198
unexport some translation related consts, remove an unused one 2018-07-02 08:20:53 -05:00
Matt Jaffee
91f531f2cd
more unexports - executor, api fields 2018-07-02 08:14:13 -05:00
Matthew Jaffee
253a90db52
Merge pull request #1438 from jaffee/unexport-cluster
unexport cluster (gorename)
2018-07-02 08:07:35 -05:00
Matt Jaffee
7801b81b10
unexport cluster (gorename) 2018-07-02 07:56:51 -05:00
Matthew Jaffee
b57304ebae
Merge pull request #1432 from jaffee/deadcode
Deadcode
2018-07-02 06:51:06 -05:00
Travis Turner
c0b5ad316d
use constructors for errors 2018-07-01 19:54:10 -05:00
Travis Turner
9633e34300
address feedback in PR 2018-07-01 19:54:10 -05:00
Travis Turner
3adc3f5978
add tests for index and field success responses 2018-07-01 19:54:09 -05:00
Travis Turner
8a5f5dd737
return an error when deleting a non-existent index or field 2018-07-01 19:54:09 -05:00
Travis Turner
7dd1f50a75
consolidate http errors into a shared response type 2018-07-01 19:54:09 -05:00
Matthew Jaffee
d012f254c9
Merge branch 'develop' into deadcode 2018-07-01 19:28:56 -05:00
Matthew Jaffee
ea18d06780
Merge pull request #1437 from jaffee/more-test-refactoring
remove the last usages of test.NewExecutor and cleanup unused in test…
2018-07-01 19:28:36 -05:00
Matt Jaffee
935aaa96f6
Merge branch 'develop' into deadcode 2018-07-01 12:18:28 -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
Matthew Jaffee
96eae99d38
Merge pull request #1434 from jaffee/skipped-tests
Skipped tests
2018-07-01 07:13:58 -05:00
Matt Jaffee
9337efc595
Merge branch 'develop' into skipped-tests 2018-06-30 08:43:19 -05:00
Matt Jaffee
29ad1287d4
refactor executor_test.go 2018-06-30 08:41:19 -05:00
tgruben
9755a186e1
Merge pull request #1435 from tgruben/quantum-test
more comprehensive time quantum tests
2018-06-29 17:52:24 -05:00
tgruben
3e44ab90c7
Merge branch 'develop' into quantum-test 2018-06-29 17:41:10 -05:00
Todd Gruben
785adfec2a more complete permutations 2018-06-29 17:35:40 -05:00
Cody Soyland
9ee4716267
Merge pull request #1429 from codysoyland/enterprise-license-exclude-apache
Exclude Apache2 license from enterprise build directory
2018-06-29 16:42:28 -04:00
tgruben
49ed3b71eb
Merge branch 'develop' into quantum-test 2018-06-29 15:37:01 -05:00
Todd Gruben
3db1087bce more comprehensive time quantum tests 2018-06-29 15:33:23 -05:00
Matt Jaffee
ea77db895a
fix syncholder test and a few bugs
The http internal client's FragmentBlocks and Blockdata methods were being used
incorrectly, and incorrect respectively. One was not being passed a node URI by
monitorAntiEntropy, and the other was always using the defaultURI regardless of
what was passed to it. Antientropy was doubling not working because of this. I
think this crept in pretty recently, so hasn't actually affected anyone.

I exposed a SyncData method on Server so that we can invoke the anti entropy
task manually instead of trying to set up the interval so that it will run and
then sleeping and waiting for it to run. Now that this test works the way it
does, the other anti entropy test is obsolete, and I deleted it.
2018-06-29 14:48:13 -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
Matt Jaffee
6bb5bf2602
Merge branch 'develop' into deadcode 2018-06-29 10:11:56 -05:00
Cody Soyland
77c7a94686
Merge branch 'develop' into enterprise-license-exclude-apache 2018-06-29 09:46:46 -05:00
Matthew Jaffee
a1cb4ee107
Merge pull request #1431 from jaffee/1430-mapsize-overflow
define map size separately for 32 and 64 bit systems
2018-06-29 09:43:33 -05:00
Matt Jaffee
d73ff9bfe2
collapse memAttrStore
memAttrStore is not used, but I opted to leave it in order to encourage its use
by future unit tests. Since it is unexported, however, and its fairly obvious
what it does, I didn't think the docstrings were adding much value, and it's more
readable in this compact form.
2018-06-29 08:12:20 -05:00
Matt Jaffee
6ff792c164
remove dead code (deadcode) 2018-06-29 08:12:04 -05:00
Matt Jaffee
4124bc76a3
define map size separately for 32 and 64 bit systems 2018-06-29 07:18:26 -05:00
Matthew Jaffee
0fae552577
Merge pull request #1428 from jaffee/more-gossip-stuff
More gossip stuff
2018-06-29 07:14:41 -05:00
Matt Jaffee
d2d84d2649
remove commented code 2018-06-29 06:52:29 -05:00
Matt Jaffee
2e15db7ce0
Merge branch 'develop' into more-gossip-stuff 2018-06-29 06:49:13 -05:00
Cody Soyland
92466fda8d Remove Apache2 license from enterprise build directory 2018-06-28 21:59:15 -05:00
Cody Soyland
c75b85d9c1
Merge pull request #1427 from codysoyland/remove-api-broadcaster
Remove API.Broadcaster
2018-06-28 21:21:26 -05:00
Matt Jaffee
91454a5cd0
collapse *handler interfaces into MemberServer
gossip now takes a single "MemberServer" which is implemented by server. Several
interfaces have been removed.

MemberServer contains ReceiveMessage which is a superset of the functionality of
ReceiveEvent, LocalStatus and HandleRemoteStatus are all that's left of
StatusHandler -  ClusterStatus was not used and is gone. The Node() method is
actually a subset of LocalStatus() functionality. Maybe we should break up
localstatus or remove Node... not sure.

Remove BroadcastReceiver test which was a bit silly.

NodeEvent can now be unexported, and is.
2018-06-28 17:16:08 -05:00
Cody Soyland
86b24e3824 Remove API.Broadcaster 2018-06-28 15:51:51 -05:00
Travis Turner
e7acf21107
Merge pull request #1426 from travisturner/slice-to-shard
rename slice to shard
2018-06-28 15:43:33 -05:00
Travis Turner
e17096328d
Merge branch 'develop' into slice-to-shard 2018-06-28 15:38:40 -05:00
tgruben
bc5fec246c
Merge pull request #1424 from tgruben/clearbit-notime
Clearbit for time fields
2018-06-28 15:25:56 -05:00
Matt Jaffee
12a49c3e14
remove ClusterStatus method and StatusHandler interface
gossipEventReceiver uses ReceiveMessage instead of ReceiveEvent
2018-06-28 14:45:20 -05:00
Todd Gruben
4054f33ad5 exported DefaultCacheSize, not sure why i had unexproted 2018-06-28 14:40:23 -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
112e8e68b6
Merge pull request #1425 from codysoyland/enhance-test-utilities
Enhance test utilities
2018-06-28 13:45:39 -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