Skip to content

Synchronous requests are not allowed in net.box triggers #2979

Closed
@TarantoolBot

Description

@TarantoolBot

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) from
net.box triggers on_connect and on_schema_reload now raises
an 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

  • net.box triggers section explains that synchronous requests are not allowed
  • net.box triggers section explains how asynchronous requests are processed

Metadata

Metadata

Assignees

Labels

2.112.11 release and the associated technical debtadd details[nature] More details needed, some info missing. Documentation is incomplete.netbox[area] Related to net.boxtriggers[area] Related to triggers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions