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

fix(transaction): Fix rare deadlock case - fixes #150. #155

Merged
merged 1 commit into from
Jun 15, 2022
Merged

Conversation

romange
Copy link
Collaborator

@romange romange commented Jun 15, 2022

In rare cases a scheduled transaction is not scheduled correctly and we need
to remove it from the tx-queue in order to re-schedule. When we pull it from tx-queue
and it has been located at the head, we must poll-execute the next txs in the queue.

  1. Fix the bug.
  2. Improve verbosity loggings to make it easier to follow up on tx flow in release mode.
  3. Introduce /txz handler that shows currently pending transactions in the queue.
  4. Fix a typo in xdel() function.
  5. Add a py-script that reproduces the bug.

Signed-off-by: Roman Gershman roman@dragonflydb.io

In rare cases a scheduled transaction is not scheduled correctly and we need
to remove it from the tx-queue in order to re-schedule. When we pull it from tx-queue
and it has been located at the head, we must poll-execute the next txs in the queue.

1. Fix the bug.
2. Improve verbosity loggings to make it easier to follow up on tx flow in release mode.
3. Introduce /txz handler that shows currently pending transactions in the queue.
4. Fix a typo in xdel() function.
5. Add a py-script that reproduces the bug.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@romange romange merged commit 4ec2538 into main Jun 15, 2022
@romange romange deleted the Bug150 branch June 15, 2022 13:53
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.

None yet

1 participant