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
Printing a finished fiber stops the program #4265
Comments
Please use fiber.status(f) or even f:status() before any fiber operation that could raise an error (including this example) |
No feedback for minths, closing. |
What feedback are you waiting for? A simple print causes a fatal error, the reproducer I brought. Tarantool 2.2
|
@GeorgyKirichenko provided you with clear workaround on how to work with fibers. I guess such thing as |
Do you really think that getting fiber status should cause a fatal error? |
I would rather agree with Maks. Currently fiber object is too agressive about raising an error on literally anything when it is dead. |
An attempt to print a dead fiber raised a fatal error, which is quite unexpected. This patch updates __tostring metamethod of fiber_object so that it pushes the "fiber <fid> is dead" string instead of the error. The __serialize metamethod is patched similarly. Closes tarantool#4265 NO_DOC=bugfix
An attempt to print a dead fiber raised a fatal error, which is quite unexpected. This patch updates __tostring metamethod of fiber_object so that it pushes the "fiber: <fid> (dead)" string instead of the error. The __serialize metamethod is patched similarly. Closes tarantool#4265 NO_DOC=bugfix
An attempt to print a dead fiber raised a fatal error, which is quite unexpected. This patch updates __tostring metamethod of fiber_object so that it pushes the "fiber: <fid> (dead)" string instead of the error. The __serialize metamethod is patched similarly. Closes tarantool#4265 NO_DOC=bugfix
An attempt to print a dead fiber raised a fatal error, which is quite unexpected. This patch updates __tostring metamethod of fiber_object so that it pushes the "fiber: <fid> (dead)" string instead of the error. The __serialize metamethod is patched similarly. Closes #4265 NO_DOC=bugfix
An attempt to print a dead fiber raised a fatal error, which is quite unexpected. This patch updates __tostring metamethod of fiber_object so that it pushes the "fiber: <fid> (dead)" string instead of the error. The __serialize metamethod is patched similarly. Closes #4265 NO_DOC=bugfix (cherry picked from commit 3421a3b)
Tarantool version:
1.10.3
Bug description:
Output:
The text was updated successfully, but these errors were encountered: