tarantool / tarantool/doc

net.box: self ignores on_push callback

Open
#3,161 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

script.lua:

box.cfg{}
count = 0
netbox = require('net.box')
on_push = function() count = count + 1 end
local_function = function() box.session.push(1) end
box.schema.func.create('local_function', {if_not_exists = true})
netbox.self:call('local_function', {}, {on_push = on_push})
print(count)
os.exit(0)

prints "0", expected "1"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the script.lua reproduction using net.box and the on_push callback, then trace why netbox.self:call does not invoke the callback after box.session.push(1). Done means the script prints "1" instead of "0".

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.