Skip to content

Ability to set timeout for transactions was implemented #2401

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

Open
2 tasks
Tracked by #2603
TarantoolBot opened this issue Nov 8, 2021 · 0 comments
Open
2 tasks
Tracked by #2603

Ability to set timeout for transactions was implemented #2401

TarantoolBot opened this issue Nov 8, 2021 · 0 comments
Labels
2.10 feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Nov 8, 2021

Product: Tarantool
Since:
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_txn_management/begin/
https://www.tarantool.io/en/doc/latest/dev_guide/reference_capi/txn/
SME: @ EvgenyMekhanik
Peer reviewer:

Details

Previously transactions are never closed until commit or rollback.
Timeout for transactions was implemented after which they are rolled
back. For these purpose, in box.begin the optional table parameter
was added. For example if user want to start transaction with timeout
3s, he should use box.begin({timeout = 3}). Also was implement new
configuration option box.cfg.txn_timeout which determines timeout for
transactions, for which the timeout was not explicitly set. By default
this option is set to infinity (TIMEOUT_INFINITY = 365 * 100 * 86400).
Also in C API was added new function to set timeout for transaction -
box_txn_set_timeout.
Requested by @EvgenyMekhanik in tarantool/tarantool@a76eb6e.

To-Do

  • Add timeout parameter to the description of box.begin
  • Add box_txn_set_timeout here
@xuniq xuniq added feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality labels Nov 12, 2021
@xuniq xuniq changed the title ability to set timeout for transactions was implemented [3pt?] ability to set timeout for transactions was implemented Nov 12, 2021
@xuniq xuniq added this to the Estimate [@xuniq] milestone Nov 12, 2021
@xuniq xuniq changed the title [3pt?] ability to set timeout for transactions was implemented [3pt] ability to set timeout for transactions was implemented Nov 12, 2021
@xuniq xuniq removed this from the Estimate [@xuniq] milestone Nov 12, 2021
@art-dr art-dr added the 3sp label Jan 26, 2022
@art-dr art-dr changed the title [3pt] ability to set timeout for transactions was implemented ability to set timeout for transactions was implemented Jan 26, 2022
@patiencedaur patiencedaur added the dev To be updated by the developers. Includes developer guidelines and many API elements. label Aug 16, 2022
@veod32 veod32 added 2.10 and removed dev To be updated by the developers. Includes developer guidelines and many API elements. 3sp labels Mar 6, 2023
@veod32 veod32 changed the title ability to set timeout for transactions was implemented Ability to set timeout for transactions was implemented Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.10 feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

No branches or pull requests

5 participants