Synchronous requests are not allowed in net.box triggers #2979
Closed
2 tasks
Labels
2.11
2.11 release and the associated technical debt
add details
[nature] More details needed, some info missing. Documentation is incomplete.
netbox
[area] Related to net.box
triggers
[area] Related to triggers
Related dev. issue: tarantool/tarantool#5358
Product: Tarantool
Since: 2.4.2
Audience/target: administrators, developers
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#triggers
SME: @ locker
Details
An attempt to issue a synchronous request (e.g.
call
) fromnet.box
triggerson_connect
andon_schema_reload
now raisesan error: "Synchronous requests are not allowed in net.box trigger"
(Before tarantool/tarantool#5358 was
fixed, it silently hung.)
Invoking an asynchronous request (see
is_async
option) is allowed,but the request will not be processed until the trigger returns and
an attempt to wait for the request completion with
future:pairs()
or
future:wait_result()
will raise the same error.Requested by @locker in tarantool/tarantool@0d944f9.
Definition of done
The text was updated successfully, but these errors were encountered: