openresty / openresty/lua-resty-lock

cannot convert 'table' to 'int'

Open
#26 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
323
Forks
81
Avg merge
7h 41m
Merged PRs (30d)
2

Description

hi, @agentzh ~ recently. Some of my ut tests reported the errors below
cannot convert 'table' to 'int' in lock.lua:139 by accidentally. Whta's the probable reason could cause this? There is no guarantee that the problem can be reproduced definitely

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

Start at lock.lua:139 and inspect the value being converted when the intermittent error occurs. Review the existing lock implementation and tests for how that value is produced; done means identifying a plausible cause and, if possible, a reproducible test case despite the report's lack of reliable reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.