Лог не поддерживает task_id с типом cdata
Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 244
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
Если мы пишем в task_id большое число, которое не поместится в number и записывается в cdata, то поймаем панику в момент переключения -
https://github.com/tarantool/queue/blob/a8f5e6ba71e0f7f0469f415164f32143c85a78d2/queue/abstract.lua#L65
Ну и будет подобный лог:
LuajitError: /queue/abstract.lua:65: bad argument #1 to 'format' (number expected, got cdata)
Contributor guide
No contributing guide indexed for this repository
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
Inspect queue/abstract.lua around line 65 and reproduce switching with a large task_id stored as cdata. Done when logging no longer raises the reported format error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100