Skip to content

Fix release all tasks #128

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

Merged
merged 2 commits into from
Jul 28, 2020
Merged

Conversation

LeonidVas
Copy link
Contributor

@LeonidVas LeonidVas commented Jul 24, 2020

  • Added return in case of tarantool version < 1.7.5
  • Instead of nil, an empty table is used as "opts" argument of the driver "release" method. This is the policy of the module "queue": "Check opts in abstract.lua, instead to check inside the driver".
  • Added a test for release all tasks on start.

Follow-up #66
Fixes #121

ChangeLog: fix the tasks releases on start for some drivers(utubettl, fifottl, limfifottl). Before, an attempt to release "taken" tasks on start lead to an error:"attempt to index local 'opts' (a nil value)".

* Added return in case of tarantool version < 1.7.5
* Instead of nil, an empty table is used as "opts" argument of
  the driver "release" method. This is the policy of the module
  "queue": "Check opts in abstract.lua, instead to check inside
  the driver".

Fixes #121
@LeonidVas LeonidVas requested a review from Totktonada July 24, 2020 12:37
@LeonidVas LeonidVas self-assigned this Jul 24, 2020
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Please, add an entry for changelog to the PR.

@LeonidVas LeonidVas force-pushed the lvasiliev/gh-121-fix-release-all-tasks branch from 73466d2 to a18101c Compare July 28, 2020 09:37
@LeonidVas
Copy link
Contributor Author

Please, add an entry for changelog to the PR.
Done.

@Totktonada Totktonada merged commit e2b80a5 into master Jul 28, 2020
@Totktonada Totktonada deleted the lvasiliev/gh-121-fix-release-all-tasks branch July 28, 2020 18:38
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

Successfully merging this pull request may close these issues.

error in tube_release_all_tasks()
3 participants