Commit graph

5819 commits

Author SHA1 Message Date
Matthew Jaffee
362c4cc5a9
Merge pull request #1249 from jaffee/1242-backport
Fix field "createdAt" race by sending schema changes to coordinator (backport 2.1)
2020-12-18 12:06:52 -07:00
Matt Jaffee
e12aa72349
fix comments 2020-12-18 10:15:11 -06:00
Matt Jaffee
5fd70b31c8
forward all CreateIndex/CreateField requests to coordinator
this should avoid a race condition with CreateField where createdAt
can get out of sync if there are multiple concurrent requests.

The client methods didn't allow specification of the URI, so I
modified the implementation to find the coordinator and send to it
explicitly.
2020-12-17 17:35:29 -06:00
Nia
59cb045285
Merge pull request #1027 from niaow/translate-maybe-v2.1
Allow querying without creating keys (v2.1.x backport)
2020-10-23 17:06:24 -04:00
Nia Weiss
68acc2b303
remove unused translation code 2020-10-23 16:21:42 -04:00
Nia Weiss
d74860c06e
backport translation test 2020-10-23 16:17:24 -04:00
Nia Weiss
1b3a52e6e1
rebase fixup 2020-10-23 16:10:36 -04:00
Nia Weiss
beea6c7143
address review comments for #989 translate-maybe 2020-10-23 15:22:09 -04:00
Nia Weiss
4b61b1cef3
add basic tests for queries with missing keys 2020-10-23 15:21:37 -04:00
Nia Weiss
064d267d1e
re-apply single equals fix 2020-10-23 15:21:10 -04:00
Nia Weiss
6d6b2de374
finish translate-if-exists 2020-10-23 15:21:10 -04:00
Nia Weiss
78f87c6bb0
cleanup of key translation fix 2020-10-23 15:21:06 -04:00
Nia Weiss
8474854dd3
deal with linter false positives 2020-10-23 15:14:22 -04:00
Nia Weiss
c9928b0c7f
the tests pass now 2020-10-23 15:13:54 -04:00
Nia Weiss
b495035405
add some validation 2020-10-23 15:12:10 -04:00
Nia Weiss
fbe216099c
fix find & create foreign index keys 2020-10-23 15:11:09 -04:00
Nia Weiss
aa4a4484eb
it mostly works now 2020-10-23 15:11:07 -04:00
Nia Weiss
19b4e72f39
query translation WIP 2020-10-23 14:58:19 -04:00
Nia Weiss
8032f9daf5
test new translation paths via API 2020-10-23 14:55:43 -04:00
Nia Weiss
dc008110b5
address review comments 2020-10-23 14:55:43 -04:00
Nia Weiss
473c079697
apply "maybe" key translation WIP 2020-10-23 14:55:36 -04:00
Matthew Jaffee
451ced5e33
Merge pull request #980 from jaffee/equalsdatarace2.1
Fix data race in executor when processing int with single '='
2020-10-15 09:12:52 -05:00
Matt Jaffee
937bc271de
fix data race on call map in single = logic
This moves the code which modifies the PQL call object if a Row query
on an int field uses a single = instead of ==. Instead of processing
this at the shard level, we'll process it during the initial
translation step so that it isn't operated on concurrently.
2020-10-15 07:41:41 -05:00
Matt Jaffee
a293f864f2
add test of single = int query over multiple shards 2020-10-14 16:12:24 -05:00
Nia
12af1b56c3
Merge pull request #962 from niaow/all-writeable
Make all query translations writeable
2020-10-12 14:26:19 -04:00
Nia Weiss
fa481c91de
remove meaningless Writeable function 2020-10-12 14:18:38 -04:00
Nia Weiss
420b44a79a
make all query translations writeable 2020-10-12 11:33:04 -04:00
Nia
6fa8ead5ff
Merge pull request #954 from niaow/v2.1-fix-nil-grpc
Fix handling of nil in grpc responses
2020-10-09 12:31:56 -04:00
Nia Weiss
ad9f33cdc4
fix handling of nil in grpc responses 2020-10-09 12:01:46 -04:00
Nia
4c47836732
Merge pull request #943 from niaow/revert-inspect-ungarbage
Remove "fix" for inspecting garbage keys
2020-10-08 14:39:04 -04:00
Nia Weiss
9f7225b149
delete commented-out broken code in inspect 2020-10-08 13:21:30 -04:00
Nia
2805b22975
Merge pull request #946 from niaow/v2.1-split-batches
Split query batches in the executor
2020-10-08 13:18:22 -04:00
Nia Weiss
27289c5f35
split query batches in the executor
We previously had some significant bugs in which our error handling for translation would cause an entire batch of queries to silently fail.
This change processes each call seperately, such that all executable queries are processed.
2020-10-08 09:53:11 -04:00
Nia Weiss
195c6f7704
remove "fix" for inspecting garbage keys
Inspect was changed to discard garbage keys.
Unfortunately, this change was incorrect, and users of inspect do not expect this.
2020-10-07 12:14:44 -04:00
Nia
33af6c1ac7
Merge pull request #937 from niaow/v2.1-break-inspect-more
Restore creation of column keys in inspect when they do not exist
2020-10-06 14:00:19 -04:00
Nia Weiss
da157a5aa4
restore creation of column keys in inspect when they do not exist
This sounds completely conterintuitive but everything relies on it.
2020-10-06 12:43:46 -04:00
Matthew Jaffee
fe47d4764e
Merge pull request #930 from jaffee/pr224-on-2.1
ensure that Inspect generates a result for every header item
2020-10-05 19:24:23 -05:00
Jason Aten
8c5a2d4a6d
ensure that Inspect generates a result for every header item
This was previously done for the path where an index did not have keys
and this commit does it for the paths which do have keys.

This was originally two commits as there was some tricky cases that
needed multiple else statments within a single type.
2020-10-05 17:06:16 -05:00
Travis Turner
5e79e224f2
Merge pull request #821 from travisturner/container-thaw-v21
remove container thaw in test; use repair instead
2020-10-05 12:23:27 -05:00
Matthew Jaffee
adae58b800
Merge pull request #896 from molecula/2.1.4-backport-822-intgrtn-tests
fix inspect panic from incorrect handling of the many types of empty …
2020-09-24 20:14:08 -05:00
Nia Weiss
fb4822f22c
fix inspect panic from incorrect handling of the many types of empty argument 2020-09-24 16:36:01 -05:00
Matthew Jaffee
75d857ead2
Merge pull request #890 from molecula/v2.1.4
V2.1.4
2020-09-23 13:25:50 -05:00
Matthew Jaffee
a3f7cc0bbc
Merge pull request #894 from jaffee/2.1.4-plus-882-inspect-fix
Fix holes in grpc response for inspect
2020-09-23 13:20:21 -05:00
Kuba Podgórski
4dde0f9878
Fix holes in grpc response for inspect
Had to remove QuerySQLUnary stuff from grpc_test.go since that was testing functionality which has added by the VDSM collapse and we're backporting this fix onto 2.1 which is pre-VDSM collapse
2020-09-23 11:58:52 -05:00
Jason Aten
060db4e412 builds 2020-09-18 16:34:03 -05:00
Jason Aten
f9944e6498 add 732 2020-09-18 16:31:29 -05:00
Kuba Podgórski
4b0789ebf0 Merge pull request #732 from kuba--/translatekey-writable
Add writable argument to TranslateKey functions.
2020-09-18 16:23:46 -05:00
tgruben
450ae490a5 Merge pull request #868 from molecula/with_primary_instead_owner
Translate only on coordinator/primary
2020-09-18 14:02:22 -05:00
Kuba Podgórski
d77cdb745a Merge pull request #853 from kuba--/fix-translate_index_keys
Fix translation index keys
2020-09-18 13:54:14 -05:00
Kuba Podgórski
6348956850 Merge pull request #847 from kuba--/fix-writable
Fix TranslateStore writable
2020-09-18 13:36:39 -05:00