Skip to content
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

[3pt] interactive transactions were implemented by means of iproto streams. #2310

Closed
TarantoolBot opened this issue Aug 23, 2021 · 0 comments · Fixed by #2356
Closed

[3pt] interactive transactions were implemented by means of iproto streams. #2310

TarantoolBot opened this issue Aug 23, 2021 · 0 comments · Fixed by #2356
Assignees
Labels
feature A new functionality server [area] Task relates to Tarantool's server (core) functionality
Milestone

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Aug 23, 2021

Product: Tarantool
Since: 2.10.0-beta1
Root document: https://www.tarantool.io/en/doc/latest/dev_guide/internals/box_protocol/
https://www.tarantool.io/en/doc/latest/book/box/atomic/
SME: @ EvgenyMekhanik

Details

The main purpose of streams is transactions via iproto. Each stream
can start its own transaction, so they allows multiplexing several
transactions over one connection. There are multiple ways to begin,
commit and rollback transaction: using IPROTO_CALL and IPROTO_EVAL
with corresponding function (box.begin, box.commit and box.rollback),
IPROTO_EXECUTE with corresponding sql request ('TRANSACTION START',
'COMMIT', 'ROLLBACK') and IPROTO_BEGIN, IPROTO_COMMIT, IPROTO_ROLLBACK
accordingly. If disconnect occurs when there is some active transaction
in stream, this transaction will be rollbacked, if it does not have time
to commit before this moment. Add new command codes for begin, commit and
rollback transactions: IPROTO_BEGIN 14, IPROTO_COMMIT 15 and
IPROTO_ROLLBACK 16 accordingly. This commands have empty bodies.
Requested by @EvgenyMekhanik in tarantool/tarantool@48c8dc1.

Probably related to #2309
Related to #2307

@art-dr art-dr added this to the Estimate [@arctic_dreamer] milestone Sep 14, 2021
@art-dr art-dr added server [area] Task relates to Tarantool's server (core) functionality feature A new functionality labels Sep 14, 2021
@art-dr art-dr changed the title interactive transactions was implemented over iproto streams. [3pt?] interactive transactions was implemented over iproto streams. Sep 14, 2021
@art-dr art-dr modified the milestones: Estimate [@arctic_dreamer], Stream related issues Sep 22, 2021
@art-dr art-dr changed the title [3pt?] interactive transactions was implemented over iproto streams. [3pt] interactive transactions was implemented over iproto streams. Sep 22, 2021
@NickVolynkin NickVolynkin changed the title [3pt] interactive transactions was implemented over iproto streams. [3pt] interactive transactions was implemented by means of iproto streams. Sep 24, 2021
@NickVolynkin NickVolynkin changed the title [3pt] interactive transactions was implemented by means of iproto streams. [3pt] interactive transactions were implemented by means of iproto streams. Sep 24, 2021
@NickVolynkin NickVolynkin linked a pull request Nov 8, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants