Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expirationd: get_fid is broken in the guardian loop #14

Open
kostja opened this issue Dec 29, 2014 · 0 comments
Open

expirationd: get_fid is broken in the guardian loop #14

kostja opened this issue Dec 29, 2014 · 0 comments
Assignees

Comments

@kostja
Copy link
Contributor

kostja commented Dec 29, 2014

The guardian loop is broken, since get_fiber_id can throw an error if the fiber is dead.
fiber:id() for dead fibers doesn't work starting from Tarantool 1.4 I think.

If a fiber dies before guardian loop checks its status, the guardian itself can die with an exception.

The same bug is present in 1.5 version at http://github.com/mailru/tntlua

Use fiber:status() to find out fiber status, it doesn't throw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants