-
Notifications
You must be signed in to change notification settings - Fork 387
box: support space and index names in IPROTO requests #8573
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
box: support space and index names in IPROTO requests #8573
Conversation
changelogs/unreleased/gh-8416-space-and-index-names-in-iproto-requests.md
Outdated
Show resolved
Hide resolved
297512e
to
ddd1901
Compare
ddd1901
to
206f8bd
Compare
206f8bd
to
e3cd30d
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.
A couple of minor suggestions:
changelogs/unreleased/gh-8146-space-and-index-names-in-iproto-requests.md
Outdated
Show resolved
Hide resolved
changelogs/unreleased/gh-8146-space-and-index-names-in-iproto-requests.md
Outdated
Show resolved
Hide resolved
e3cd30d
to
ea8b396
Compare
changelogs/unreleased/gh-8146-space-and-index-names-in-iproto-requests.md
Outdated
Show resolved
Hide resolved
test/box-luatest/gh_8146_space_and_index_name_in_iproto_requests_test.lua
Outdated
Show resolved
Hide resolved
d6a9575
to
8654a53
Compare
bc5adea
to
c57387a
Compare
619c1cf
to
a62480b
Compare
a62480b
to
bab0479
Compare
Will review after #8660 is merged and this PR is rebased. |
bab0479
to
c0542a1
Compare
Change original `space_by_name` to `space_by_name0` and `space_index_by_name` to `space_index_by_name0`, since they accept NULL-terminated names, and add `space_by_name` and `space_index_by_name` for arbitrary strings. Needed for tarantool#8146 NO_CHANGELOG=refactoring NO_DOC=refactoring NO_TEST=refactoring
Add support for accepting IPROTO requests with space or index name instead of identifier (name is preferred over identifier to disambiguate missing identifiers from zero identifiers): mark space identifier request key as present upon encountering space name, and delay resolution of identifier until request gets to transaction thread. Add support for sending DML requests from net.box connection objects with disabled schema fetching by manually specifying space or index name or identifier: when schema fetching is disabled, the space and index tables of connections return wrapper tables that store necessary context (space or index name or identifier, determined by type, connection object and space for indexes) for performing requests. The space and index tables cache the wrapper table they return. Closes tarantool#8146 @TarantoolBot document Title: Space and index name in IPROTO requests Refer to design document for details: https://www.notion.so/tarantool/Schemafull-IPROTO-cc315ad6bdd641dea66ad854992d8cbf?pvs=4#f4d4b3fa2b3646f1949319866428b6c0
@locker @alyapunov looks like there is another problem with Lines 922 to 928 in 4507c59
I added a |
c0542a1
to
81aaacc
Compare
Closes #8146