Matt Jaffee
d5cfe880f7
address race condition by getting cluster nodes with lock
...
needed an unlocked version of sendsync for use within the cluster, so also
implemented that. Added a number of tests trying to reproduce the issue, but was
not able to. Not sure it's worth keeping the new tests.
2019-04-05 15:40:24 -05:00
Todd Gruben
186f034b16
missed commit
2019-03-20 22:04:20 -05:00
Todd Gruben
38de65eac0
only load shards that are applicable to node
2019-03-20 22:04:19 -05:00
Matt Jaffee
daa87d8e12
fix staticcheck warnings
2019-01-21 14:24:11 -06:00
Matt Jaffee
af26473f77
disable anti-entropy if not using replication (there will never be anything to sync)
2019-01-07 16:52:43 -06:00
Ben Johnson
8e49332b25
Add distributed tracing.
2018-11-21 15:08:33 -06:00
Matt Jaffee
5458eb1656
fix holder.opened race with absurd lockedChan
2018-11-20 14:21:36 -06:00
Matt Jaffee
65f478470f
logging cleanup - start with lowercase unless reporting error or warning
2018-11-20 14:08:06 -06:00
Seebs
a203313143
move Logger and Stats to their own packages
...
I'd like to add stat tracking to Roaring, which means it
has to be able to import the stats package, which means
stats has to be a package rather than part of the pilosa
package. If stats stops being in pilosa, it still needs
a way to import logger, so logger also has to leave the
pilosa package. Then everything using them needs to import
them and use package selectors on their names.
This doesn't actually add the stats support to roaring,
it just makes it so there's a way to import the stats
code from something in the roaring package.
2018-11-15 15:10:44 -06:00
Matt Jaffee
8cd53bf2c2
Revert "msg type stringer"
...
This reverts commit dd4685d43b .
2018-11-09 11:34:32 -06:00
Matt Jaffee
dd4685d43b
msg type stringer
2018-11-09 11:28:53 -06:00
Matt Jaffee
deae8ce7c0
improvements to clustertests and fix cluster pause bug by state sharing
2018-11-09 11:28:19 -06:00
Matt Jaffee
ec3982c0ff
pull out advertise URI changes
2018-11-02 16:10:39 -05:00
Matt Jaffee
8db7a78a93
unpushed WIP on cluster-tests
2018-10-23 11:10:24 -05:00
Todd Gruben
c0a3b7a781
fmt
2018-10-17 12:35:00 -05:00
Todd Gruben
9bb372a09e
Merge branch 'fix-logger' of github.com:tgruben/pilosa into fix-logger
2018-10-17 11:12:57 -05:00
Todd Gruben
e5e2237fc0
changed order of logger options
2018-10-17 11:12:37 -05:00
tgruben
96e7107870
Merge branch 'master' into fix-logger
2018-10-17 10:52:51 -05:00
Todd Gruben
0df193cf98
revert to existing api with panic per jaffee
2018-10-17 10:29:58 -05:00
Ben Johnson
f8608227d1
Add DeleteAvailableShard()
...
This commit adds the ability to remove an 'available shard'
from the shard cache. This does not affect shards known to be
available because of local data.
2018-10-17 08:50:06 -06:00
tgruben
1895233ed8
Merge branch 'master' into fix-logger
2018-10-11 06:58:17 -05:00
Todd Gruben
85ebaf298d
removed logging from translate store replaced with error
2018-10-01 11:04:47 -05:00
Yuce Tekol
2830fb46e6
Adds diagnostics CPUArch field
2018-10-01 15:31:13 +03:00
Cody Soyland
2521922d7b
Properly wrap translation store errors, decrease test map size to prevent failure on 32-bit
2018-09-25 11:35:58 -05:00
Travis Turner
cdfcd6db5e
store remoteAvailableShards to file
2018-09-24 15:37:43 -05:00
Travis Turner
1039390686
fixes pass-by-value issue in proto decode
2018-09-24 13:11:54 -05:00
Cody Soyland
52ba336461
Address code review feedback
2018-09-20 16:05:28 -05:00
Cody Soyland
7a32745b28
Make translate map size configurable.
2018-09-19 12:35:00 -05:00
Ben Johnson
f4c9c0fed3
Maintain available shards set.
...
This commit removes the previous `MaxShard` tracking and replaces
it with an `Available Shards` set tracking. This allows sparse shard
tracking without implicitly tracking all shards in between.
2018-08-22 07:57:58 -06:00
Matt Jaffee
e16c43c3bc
Merge branch 'master' into 1492-ae-and-resize
2018-08-20 09:13:35 -05:00
Travis Turner
d50a0e853c
change NewTranslateStore() to take an interface for backward compatibility
2018-08-13 12:04:22 -05:00
Travis Turner
b304de6536
Treat coordinator as primary translate store.
...
Daisy-chain other nodes based on their position in the cluster.
Deprecate the `primary-url` configuration option.
2018-08-13 11:06:16 -05:00
Matt Jaffee
ab63c8e7b6
add forgotten server changes which support AE test
2018-08-09 16:07:05 -05:00
Matt Jaffee
0e467e5492
rename cluster.nodes and fix race in API
2018-08-08 15:11:39 -05:00
Matt Jaffee
16eff6de8c
prevent anti entropy and cluster resize from running simultaneously
2018-08-08 14:41:54 -05:00
Travis Turner
f9a265f94d
fix places where empty IndexOptions were being used
2018-07-23 17:23:54 -05:00
Cody Soyland
187ded0a52
Fix linter issues: maligned
2018-07-19 11:07:59 -05:00
Matt Jaffee
64c3dae4d7
fix error message handler->holder
2018-07-10 16:40:45 -05:00
Matt Jaffee
c2c1910671
fix comment typos
2018-07-10 16:38:55 -05:00
Matt Jaffee
b7e5f8842e
add a configurable timeout to http handler closing
...
refactor handler Close func to use errgroup to be a bit less messy.
refactor pilosa.Server closing to actually return an underlying error if one occurs
add option to pilosa/test.Cluster and pilosa/server.Command to control close
timeout. currently is only used by the http handler, but conceivably could be
passed as a parameter to other subsystems of pilosa/server.Command
2018-07-10 15:16:35 -05:00
Cody Soyland
3e91a0d32c
Unexport NodeStateReady
2018-07-05 23:11:56 -05:00
Cody Soyland
92d521912e
Unexport NewNopSystemInfo
2018-07-05 23:11:56 -05:00
Cody Soyland
5f74927d03
Unexport NewDiagnosticsCollector
2018-07-05 23:11:56 -05:00
Cody Soyland
0648d0fc75
Unexport Holder.RecalculateCaches
2018-07-05 23:11:56 -05:00
Cody Soyland
7245a93676
Unexport DiagnosticsCollector
2018-07-05 23:11:56 -05:00
Matt Jaffee
0a94d2f10d
Merge branch 'develop' into core-structs
2018-07-05 16:38:14 -05:00
Matt Jaffee
2cec75e399
add proto encoding subpackage and use for send and receive message
2018-07-05 12:00:42 -05:00
Matt Jaffee
1b2aaa26bf
export NodeEvent
2018-07-05 09:26:58 -05:00
Travis Turner
44f0b992f6
change all CreateField() methods to take functional options instead of FieldOptions
2018-07-04 21:22:35 -05:00
Matt Jaffee
6417f468bb
wip implement more... still quite broken
2018-07-04 16:50:20 -05:00