-
Notifications
You must be signed in to change notification settings - Fork 53
Taken task is not released back to 'ready' after Tarantool reboot #66
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
Comments
Hmm, what should the solution look like for this? |
If some tasks have been taken and don't released before shutdown of the tarantool instance (for example: tarantool instance has been killed) such task go to 'hung' state (noone can take the task now). So, we must release all taken tasks on start of the queue module. Fixes: #66
@Totktonada @LeonidVas What is the status of this issue? Could the fix be reviewed (and hopefully merged) anytime soon? |
Sorry, but I can't to do a review of myself). I try to force it. |
Firstly, could you add a test case for your patch? |
This is a good question. |
I think, it can be done by using of a shell script, but it's look like a crutch in my mind. |
Yes, it's separate task. No, we shouldn't use scripts IMO. As a variant we could try to use Let's ask @Totktonada for correct way to check it |
I had a conversation with @Totktonada earlier. The current decision - without test (as I understand it). |
If some tasks have been taken and don't released before shutdown of the tarantool instance (for example: tarantool instance has been killed) such task go to 'hung' state (noone can take the task now). So, we must release all taken tasks on start of the queue module. Fixes #66
If some tasks have been taken and don't released before shutdown of the tarantool instance (for example: tarantool instance has been killed) such task go to 'hung' state (noone can take the task now). So, we must release all taken tasks on start of the queue module. Fixes #66
All taken tasks will be released after the server restart If some tasks have been taken and don't released before shutdown of the tarantool instance (for example: tarantool instance has been killed) such task go to 'hung' state (noone can take the task now). So, we must release all taken tasks on start of the queue module. Fixes #66
All taken tasks will be released after the server restart If some tasks have been taken and don't released before shutdown of the tarantool instance (for example: tarantool instance has been killed) such task go to 'hung' state (noone can take the task now). So, we must release all taken tasks on start of the queue module. Fixes #66
All taken tasks will be released after the server restart If some tasks have been taken and don't released before shutdown of the tarantool instance (for example: tarantool instance has been killed) such task go to 'hung' state (noone can take the task now). So, we must release all taken tasks on start of the queue module. Fixes #66
All taken tasks will be released after the server restart If some tasks have been taken and don't released before shutdown of the tarantool instance (for example: tarantool instance has been killed) such task go to 'hung' state (noone can take the task now). So, we must release all taken tasks on start of the queue module. Fixes #66
How to reproduce:
The issue can be reproduced with connectors:
https://github.com/igorcoding/asynctnt-queue:
https://github.com/tarantool-php/queue:
Here is the simplified instance configuration:
The text was updated successfully, but these errors were encountered: