net.box: self ignores on_push callback
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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