-
Notifications
You must be signed in to change notification settings - Fork 14
Support vshard names as keys #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
DifferentialOrange
merged 6 commits into
master
from
DifferentialOrange/gh-403-names-as-keys
Dec 25, 2023
Merged
Support vshard names as keys #404
DifferentialOrange
merged 6 commits into
master
from
DifferentialOrange/gh-403-names-as-keys
Dec 25, 2023
+813
−459
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fb0e564
to
f484d5d
Compare
c10e9cc
to
39ca62d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thx for patch. Code looks amazing. I think it would be good to update README section about min and max operations. (add arguments description as it is done for other operations)
Also, pls fix grammar in commit messages:
- 1st commit last sentence: Module code was updated to support both possible MODES.
- 4th commit: Now it is possible to perform min/max on
write instances, and TESTS were updated to do so.
In vshard 0.1.25, new feature related to vshard configuration and storage info was introduced [1]. If the new mode is used, crud module fails to bootstrap and work in several places. This feature is enabled by Tarantool 3.0 if vshard cluster was configured with 3.0 config. After this patch, it is possible to bootstrap a vshard cluster with new configuration mode. We run all existing vshard tests with new modes after this patch. Module code was updated to support both possible modes. 1. tarantool/vshard#426 Closes #403
The following sequence of events happens: - data inserted with crud, - schema updated 12 times, - data updated with crud. For Tarantool supporting field name in updates, there is no additional check for a field name presenting in current format. So it is possible to get outdated metadata. For some reason, new identification mode had uncovered this issue. It is likely related to the change in the order of servers in maps.
For some reason, new vshard identification mode had uncovered flaky test cases for read operations (99% of fails were with vinyl engine). It is likely related to the change in the order of servers in maps. Since we use async replication, it is possible that we perform select, get, count or pairs operation over replica which hasn't received new data yet. To get rid of assumption that replication is always faster than our reading, this patch ensured that all read operations use master unless they want to test reading from replicas.
This patch follows the previous one. To stabilize tests, we perform read operations on masters. Now it is possible to perform min/max on write instances, and tests were updated to do so.
Any test run runs perf tests as well -- to check that they work fine. To make tests faster, we run them for 2-5 seconds, but it's still a lot of time.
If Tarantool older than 2.8.1 [1] was used to update nullable fields, the workaround was executed to perform this operation. If `noreturn` or `fetch_latest_metadata` options were set, they were ignored on storage side before this patch. 1. tarantool/tarantool#3378
39ca62d
to
76a620c
Compare
better0fdead
approved these changes
Dec 25, 2023
DifferentialOrange
added a commit
that referenced
this pull request
Dec 25, 2023
DifferentialOrange
added a commit
that referenced
this pull request
Dec 25, 2023
Overview This release introduces compatibility with vshard 0.1.25 `name_as_key` identification mode, as well as several minor fixes and tests stabilization. Added * `mode` option for `crud.min` and `crud.max` (#404). Fixed * Compatibility with vshard 0.1.25 `name_as_key` identification mode for Tarantool 3.0 (#403). * Propagating `noreturn` and `fetch_latest_metadata` options in case of intermediate nullable fields update for Tarantool 2.7 and older (#404). Infrastructure * Fix flaky update unflatten test case (#404). * Do not rely on replication in read test cases (#404).
Merged
DifferentialOrange
added a commit
that referenced
this pull request
Dec 25, 2023
DifferentialOrange
added a commit
that referenced
this pull request
Dec 25, 2023
Overview This release introduces compatibility with vshard 0.1.25 `name_as_key` identification mode, as well as several minor fixes and tests stabilization. Added * `mode` option for `crud.min` and `crud.max` (#404). Fixed * Compatibility with vshard 0.1.25 `name_as_key` identification mode for Tarantool 3.0 (#403). * Propagating `noreturn` and `fetch_latest_metadata` options in case of intermediate nullable fields update for Tarantool 2.7 and older (#404). Infrastructure * Fix flaky update unflatten test case (#404). * Do not rely on replication in read test cases (#404).
DifferentialOrange
added a commit
that referenced
this pull request
Dec 26, 2023
Some read cases were missing in #404 test stabilization commit. It resulted in CI fail [1]. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Dec 26, 2023
Some read cases were missing in #404 test stabilization commit. It resulted in CI fail [1]. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Dec 27, 2023
Some read cases were missing in #404 test stabilization commit. It resulted in CI fail [1]. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Dec 28, 2023
Some read cases were missing in #404 test stabilization commit. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Dec 28, 2023
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Closes #407
DifferentialOrange
added a commit
that referenced
this pull request
Dec 28, 2023
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Closes #407
DifferentialOrange
added a commit
that referenced
this pull request
Dec 29, 2023
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Closes #407
DifferentialOrange
added a commit
that referenced
this pull request
Dec 29, 2023
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Part of #407
DifferentialOrange
added a commit
that referenced
this pull request
Dec 29, 2023
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Closes #407
DifferentialOrange
added a commit
that referenced
this pull request
Jan 9, 2024
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Closes #407
DifferentialOrange
added a commit
that referenced
this pull request
Jan 9, 2024
Some read cases were missing in #404 test stabilization commit. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Jan 9, 2024
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Closes #407
DifferentialOrange
added a commit
that referenced
this pull request
Jan 10, 2024
Some read cases were missing in #404 test stabilization commit. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Jan 10, 2024
PR #404 has introduced vshard 0.1.25 + Tarantool 3.0 "name as key" identification mode based on UUIDs extraction. If works fine if vshard configuration (or Tarantool 3.0 configuration which builds vshard one) provides UUIDs, but fails if it isn't. Since UUIDs are optional and won't be provided in most cases, it makes crud fails to work on most Tarantool 3.0 vshard clusters. This patch fixes the issue. Now the code uses name as key, if corresponding mode is enabled, and uuid otherwise. Patch doesn't cover `select_old` since it runs only on pre-3.0 Tarantool. Unfortunately, code relies on vshard internals since now there is no other way [1]. This patch covers new mode support for readview code as well. It likely was broken before this patch even if UUIDs were provided. 1. tarantool/vshard#460 Follows #404 Closes #407
DifferentialOrange
added a commit
that referenced
this pull request
Jan 23, 2024
Some read cases were missing in #404, #406 and #408 test stabilization commits. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Jan 24, 2024
Some read cases were missing in #404, #406 and #408 test stabilization commits. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Mar 22, 2024
Some read cases were missing in #404, #406 and #408 test stabilization commits. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
DifferentialOrange
added a commit
that referenced
this pull request
Mar 22, 2024
Some read cases were missing in #404, #406 and #408 test stabilization commits. This patch updates missing read cases. 1. https://github.com/tarantool/crud/actions/runs/7322196516/job/19943422319 Follows #404
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In vshard 0.1.25, new feature related to vshard configuration and storage info was introduced [1]. If the new mode is used, crud module fails to bootstrap and work in several places. This feature is enabled by Tarantool 3.0 if vshard cluster was configured with 3.0 config.
After this patch, it is possible to bootstrap a vshard cluster with new configuration mode. We run all existing vshard tests with new modes after this patch. Module code was updated to support both possible mods.
This PR also introduces several minor fixes inspired by flaky tests. (They mostly have failed locally on my PC with vinyl engine, but it is possible to get the same result on Github Actions.)
I didn't forget about
Closes #403