tarantool / tarantool/queue

Лог не поддерживает task_id с типом cdata

Open
#247 0 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.