-
Notifications
You must be signed in to change notification settings - Fork 5
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
Lost tasks after put/take/release #65
Comments
oleg-jukovec
added a commit
that referenced
this issue
Sep 6, 2023
`take` sets up the next event time as current time + `ttr`, while `release` and `bury` do not update the next event time. This can lead to a task being deleted after `take time` + `ttr` after `release` or `bury` in the queue fiber. To fix the issue we can copy approach from the `queue` module [1][2]. 1. https://github.com/tarantool/queue/blob/481b5fbf47a7db5c504c64a688b4f8a5fc765a45/queue/abstract/driver/fifottl.lua#L348-L351 2. https://github.com/tarantool/queue/blob/481b5fbf47a7db5c504c64a688b4f8a5fc765a45/queue/abstract/driver/fifottl.lua#L367-L370 Closes #65
oleg-jukovec
added a commit
that referenced
this issue
Sep 6, 2023
`take` sets up the next event time as current time + `ttr`, while `release` and `bury` do not update the next event time. This can lead to a task being deleted after `take time` + `ttr` after `release` or `bury` in the queue fiber. To fix the issue we can copy approach from the `queue` module [1][2]. 1. https://github.com/tarantool/queue/blob/481b5fbf47a7db5c504c64a688b4f8a5fc765a45/queue/abstract/driver/fifottl.lua#L348-L351 2. https://github.com/tarantool/queue/blob/481b5fbf47a7db5c504c64a688b4f8a5fc765a45/queue/abstract/driver/fifottl.lua#L367-L370 Closes #65
oleg-jukovec
added a commit
that referenced
this issue
Sep 6, 2023
The release fixes the loss of tasks in the `fifottl` driver. Breaking changes None. Bugfixes A deletion of a released task after `ttr` in the `fifottl` driver (#65).
Merged
oleg-jukovec
added a commit
that referenced
this issue
Sep 6, 2023
The release fixes the loss of tasks in the `fifottl` driver. Breaking changes None. Bugfixes A deletion of a released task after `ttr` in the `fifottl` driver (#65).
oleg-jukovec
added a commit
that referenced
this issue
Sep 6, 2023
The release fixes the loss of tasks in the `fifottl` driver. Breaking changes None. Bugfixes A deletion of a released task after `ttr` in the `fifottl` driver (#65).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fifottl
driver +ttr
, but withoutttl
.The text was updated successfully, but these errors were encountered: