Commit graph

6962 commits

Author SHA1 Message Date
Antonio Navarro Perez
f0a5ca5d3a Change coordinator error to primary
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-02-23 09:58:22 +01:00
Travis
9f14415b58
Merge branch 'master' into disco 2021-02-20 10:28:38 -06:00
Ben Johnson
8647b80adb
Merge pull request #1435 from molecula/fix-node-removal-error
Clarify node removal error when self-removing
2021-02-19 08:23:21 -07:00
Ben Johnson
841208858f Clarify node removal error when self-removing
Currently, if you issue a node removal from the node that is being
removed, then you will see a "node cannot be removed error". It's
not clear why you aren't able to remove the node. The error message
has been updated to clarify why.
2021-02-18 12:55:06 -07:00
Kuba Podgórski
e724ad53f2
Merge pull request #1437 from kuba--/check-state
Check state in shardsByNode once stator is implemented
2021-02-18 12:50:03 +01:00
Kuba Podgórski
484f709621 Add regression test 2021-02-18 12:33:01 +01:00
Kuba Podgórski
bfc24a1745 Check state in shardsByNode once stator is implemented 2021-02-17 16:02:28 +01:00
Kuba Podgórski
b17d2b6d18
Merge pull request #1431 from kuba--/import-412
Avoid precondition failed (412) on ingest
2021-02-17 11:50:44 +01:00
Travis Turner
5c5712dba1
Merge pull request #1434 from travisturner/disco-replica-failover
don't cancel the context if replicas should be attempted
2021-02-16 22:00:02 -06:00
Travis
0d08a68c28
fix test expected error message 2021-02-16 21:59:35 -06:00
Travis
a7d4226326
only cancel() in mapper on a secondary, replica error
There is another case where cancelling here might be useful,
and that's if the query is on a primary node and the replication
factor is 1, meaning there are no secondary nodes to fail over to.
That case is handled here as well.
2021-02-16 16:29:49 -06:00
Travis
d27afc42f1
don't cancel the context if replicas should be attempted 2021-02-16 15:10:24 -06:00
Kuba Podgórski
de17c51293 Avoid precondition failed (412) on ingest 2021-02-16 20:18:14 +01:00
Travis Turner
42b8522e80
Merge pull request #1429 from travisturner/disco-field-createdat
ensure field.CreatedAt is set on loadField
2021-02-15 21:50:28 -06:00
Travis
e54f7d9a0b
ensure field.CreatedAt is set on loadField 2021-02-15 21:28:20 -06:00
Travis Turner
17c0d73fa2
Merge pull request #1427 from travisturner/disco-simplify-view
stop storing a value for views in etcd
2021-02-15 15:41:36 -06:00
nagamocha3000
4dfd713189
Merge pull request #1395 from nagamocha3000/fix-core-78
CORE-78 Add parsing for partial time inputs
2021-02-16 00:18:36 +03:00
Travis
b5d6c632bf
stop storing a value for views in etcd 2021-02-15 14:39:52 -06:00
nagamocha3000
0927240956 Add parsing for partial time inputs 2021-02-15 22:55:35 +03:00
Travis Turner
062851bae5
Merge pull request #1419 from seebs/discoFever
Performance improvements for disco branch
2021-02-15 12:28:10 -06:00
Seebs
82a975fd2a avoid race conditions on nodes
Turns out we sometimes modify returned nodes. Handle this better, but
also fix up some cases where we were generating node lists we didn't really
need to answer simple questions.
2021-02-15 10:20:31 -06:00
Seebs
07a014e952 cache Nodes calls in EtcdWithCache
The Peers() data is cached, but then every call still has to unmarshal JSON
and that's stunningly expensive. Let's not!
2021-02-15 10:19:56 -06:00
Seebs
e2b6912d1c uninvert test for coordinator node / primary field translation node
If we're the primary field translation node, we don't need to set up
translation replication; we only need that if we're *not*. So it
makes sense to test if !IsPrimaryFieldTranslationNode... except that
the test is to determine whether to return early. So it should not
be inverted.
2021-02-15 10:19:03 -06:00
Seebs
0790fbe866 only persist views to etcd when they're not already known
Persisting views to etcd every time we check for them causes
what ends up being about a factor of 60 slowdown. Let's do it a little
less.
2021-02-15 10:19:03 -06:00
Travis
4097ec155b
Merge branch 'master' into disco 2021-02-13 10:00:20 -06:00
Alan Bernstein
06503813c5
Merge pull request #1420 from alanbernstein/fix-schema-null-fields
Represent zero fields in /schema response as [] instead of null
2021-02-13 06:40:36 -06:00
Travis
9fa271a7b8
remove dead code (api.HostStates()) 2021-02-12 21:51:27 -06:00
Travis
d3ffdafdd8
remove some more TXSRCs that slipped in 2021-02-12 21:44:20 -06:00
Travis Turner
b7db27b7a7
Merge pull request #1416 from travisturner/disco-load-schema-on-open
Load schema from etcd on holder open; validate indexes, fields, views
2021-02-12 21:35:13 -06:00
Travis
a2a6e91f6d
remove old, now conflicting test value 2021-02-12 21:21:56 -06:00
Travis
2d17405e94
fix SchemaDetails test 2021-02-12 21:11:45 -06:00
Travis
8f0270acda
adjust openExistenceField() to check on disk first 2021-02-12 20:35:36 -06:00
Kuba Podgórski
40fe280453
Remove not needed holder test 2021-02-12 20:35:36 -06:00
Kuba Podgórski
2f35b51db8
Fix endpoint tests + change BitDepth type to uint64 2021-02-12 20:35:36 -06:00
Travis
a6297dc48e
WIP: load schema from etcd on holder open; validate indexes, fields, views 2021-02-12 20:32:31 -06:00
Travis
b89c699a8e
fix bug from merge 2021-02-12 20:32:12 -06:00
Travis
5b237cae13
Merge branch 'master' into disco 2021-02-12 20:29:41 -06:00
Alan Bernstein
f758a04e18 Represent zero fields in /schema response as [] instead of null 2021-02-12 19:40:42 -06:00
Matthew Jaffee
421848c86a
Merge pull request #1418 from molecula/fix-lattice
update lattice version to correct from accidental downgrade
2021-02-12 16:16:34 -06:00
Matt Jaffee
0e3461e9f4
update lattice version to correct from accidental downgrade 2021-02-12 14:50:10 -06:00
Alan Bernstein
a75c62c90f
Merge pull request #1391 from alanbernstein/field-cardinality
CORE-92 Add /schema/details endpoint, which includes field cardinality
2021-02-12 09:38:42 -06:00
Antonio Navarro Perez
2089e5eeb4
Merge pull request #1417 from ajnavarro/fix-log-web-ui-http-handler 2021-02-12 10:18:51 +01:00
Alan Bernstein
882b14444b Use consistent behavior in test to add queries to transaction 2021-02-11 16:42:30 -06:00
Alan Bernstein
dc6c92771b Fail entire /schema/details request if one field query fails 2021-02-11 16:42:30 -06:00
Alan Bernstein
2773999190 Simplify response structs 2021-02-11 16:42:30 -06:00
Alan Bernstein
12462886a6 Shorten shard lists in error messages 2021-02-11 16:42:30 -06:00
Alan Bernstein
246c345c49 Eliminate omitempty from /schema/details response type 2021-02-11 16:42:30 -06:00
Alan Bernstein
56c940c6a0 Add /schema/details endpoint, which includes field cardinality computed via Count(Distinct()) 2021-02-11 16:42:30 -06:00
Maxton Huff
2e6a8e2030
Merge pull request #1393 from Maxtonian/30trial
CORE-140 add draft trial version of molecula
2021-02-11 16:38:53 -06:00
Maxton Huff
f8fc69670c Merge branch '30trial' of github.com:Maxtonian/pilosa into 30trial 2021-02-11 16:19:09 -06:00