Antonio Navarro Perez
b1ff8e55cd
Unify state
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-02-06 16:53:42 -06:00
Travis
d192c1f24f
Merge branch 'master' into disco
2021-02-05 15:58:36 -06:00
Kuba Podgórski
ab3353fb56
Add resize messages for broadcaster
2021-02-05 14:02:28 +01:00
Travis
a4b37273ea
remove the rest of the gossip code (except config)
2021-02-04 13:03:02 -06:00
Antonio Navarro Perez
87ba73fa16
Stop writes on DEGRADED state
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-02-04 17:30:14 +01:00
Travis
652014539c
remove temporary Gossiper interface
2021-02-03 23:06:51 -06:00
Travis
6a0f67278a
revert a test boolean
2021-02-03 21:44:05 -06:00
Kuba Podgórski
6826997852
Remove state member from cluster.
...
Remove all function SetState like. Stop broadcasting cluster state.
2021-02-03 15:16:59 +01:00
Antonio Navarro Perez
c45e21640c
Change coordinator to primary
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-02-02 15:56:12 -06:00
Kuba Podgórski
a16a83445b
Apply stator
2021-02-02 19:36:34 +01:00
Travis
629bfa3ac8
add more AwaitState calls in the tests
2021-02-01 21:21:06 -06:00
Travis
26176c15eb
fix linter issues (wrap all ClusterStates in string() until we update the type)
2021-02-01 16:57:35 -06:00
Kuba Podgórski
b611480499
disco State
2021-02-01 16:37:04 -06:00
Kuba Podgórski
6058fc22e4
Porting disco.Stator (next step)
2021-02-01 16:35:59 -06:00
Cody Soyland
0e22ed71cc
Fix instances of context.Background that need mocked context
2021-02-01 11:40:45 -06:00
Cody Soyland
c30e3f0c2d
Move duration header to fix error handling
2021-02-01 11:40:45 -06:00
Cody Soyland
e2331372d8
Handle errors
2021-02-01 11:40:45 -06:00
Cody Soyland
367425bba1
Add duration header to all gRPC query results
2021-02-01 11:40:43 -06:00
Travis
97eaff5c82
use Etcd Noder; actually use EtcdWithCache
2021-01-31 23:42:44 -06:00
Travis
457194f6a8
update config to support etcd arguments
2021-01-29 19:43:48 -06:00
Alan Bernstein
5beb2664b0
Use simpler test
2021-01-29 17:48:24 -06:00
Alan Bernstein
15443b371c
Force consistent timestamp width in startup log
2021-01-29 17:48:24 -06:00
Alan Bernstein
5dc00883bd
Add more involved diskUsage test
2021-01-29 17:48:24 -06:00
Alan Bernstein
85fad859e2
Correct some disk usage computations
2021-01-29 17:48:24 -06:00
Ben Johnson
32a35805a4
Add RBF index/field usage stats
2021-01-29 17:48:24 -06:00
Travis
e459c9a77b
change Config.DisCo to Config.Etcd
2021-01-29 14:11:51 -06:00
Travis
1c0b926eae
Merge master into disco
2021-01-28 18:03:38 -06:00
Kuba Podgórski
cef6925e7b
Fix server tests
2021-01-28 17:39:58 +01:00
Maxton Huff
927db378b4
add linux OS check and the way mmap limit is read
2021-01-27 09:52:13 -06:00
Travis
4380a05bbd
address some coord/node0 test issues
2021-01-26 22:46:37 -06:00
Maxton Huff
3982a8e970
format messages and change mmap comparison logic
2021-01-26 11:26:36 -06:00
Maxton Huff
3809fe6734
add error check
2021-01-26 09:35:51 -06:00
Maxton Huff
55a9952b92
mmap limit comparison error message
2021-01-25 16:19:12 -06:00
Travis
1473e11a27
update test cluster GetNode() to consider the etcd-assigned ID (which affects node order)
2021-01-23 19:52:59 -06:00
Travis
a196e1e74c
use etcd for node.ID
...
this commit adds a temporation interface for starting gossip.
we needed this so we can start gossip AFTER setting up the node,
but before waitingForJoins.
2021-01-23 19:52:58 -06:00
Travis
208b81b5f4
fix merge error
2021-01-23 19:52:34 -06:00
Travis
c9e6f17ae0
Merge branch 'master' into disco
2021-01-23 19:22:20 -06:00
Travis
13984353e4
remove instances of os.Getenv("PILOSA_TXSRC")
2021-01-21 21:18:46 -06:00
Travis
f292d6061a
replace pilosa.DefaultTxsrc with storage.DefaultBackend
2021-01-20 22:06:13 -06:00
Travis
08fae2be4c
introduce storage.Config
2021-01-20 22:05:38 -06:00
Alan Bernstein
eaf3ef153e
Test SQL behavior
2021-01-20 15:58:55 -06:00
Alan Bernstein
bed03ba490
Update tests
2021-01-20 10:48:35 -06:00
Seebs
932e84b681
handling aggregate types: add to protobuf, etc
...
We want to distinguish different *kinds* of GroupCounts, so we're
making the GroupCounts parent object track its type so we can keep that
correct.
Adding this to protobuf, etc, then creates some weird behaviors
because sometimes we expect []GroupCount, and sometimes we expect
*GroupCounts. This implies changes to test cases. Also, the
changes to test cases imply that some test cases are probably now
wrong; for instance, they're expecting a "sum" column, equal to zero,
when no sum was requested.
We try to make the encoder handle a []*GroupCount gotten from another
node without panicing, and avoid breaking the semantics of the existing
messages, renumbering messages or components, etc.
Since a previous version, the `.Groups` member has been privatized,
and the `.Get()` convenience accessor has been renamed `.Groups()`
and is now used consistently in a way that should reduce the risk
of nil pointers causing crashes. Also, NewGroupCounts is used in
a couple more places.
2021-01-19 16:23:15 -06:00
Cody Soyland
4ebf6f6ff7
Customize serialization of []GroupCount based on aggregate type/presence
2021-01-19 12:10:56 -06:00
Jason E. Aten
b1a0e0ae8b
allow retry at the cluster level to work; remove retry for server/server.go Command.setupNetworking() that retries a single gossip node
2021-01-18 20:39:23 +00:00
Jason E. Aten
ed12f3585c
etcd/embed.go implemented Noder
2021-01-18 20:30:21 +00:00
Jason E. Aten
9b635068d9
cleanup
2021-01-18 20:16:49 +00:00
Jason E. Aten
e58b464b29
add port.GetListeners
2021-01-18 18:42:21 +00:00
Todd Gruben
de7d69234e
initial listner
2021-01-18 10:34:18 -06:00
Travis
1d55e671a2
go mod tidy and linter
...
fix race
cleanup
2021-01-15 17:48:44 -06:00