Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

queueing: Fix cluster duplicate handler dying #162

Merged

Conversation

michaelweiser
Copy link
Contributor

This should be backported to 2.0 as well since it's a serious defect in a major functionality of the release.

With python3 the cluster duplicate handler would die from RuntimeErrors
due to the items() accessor of the duplicate backlog dict being a
view/iterator that doesn't respond well to the dict changing while being
iterated. Prevent the RuntimeError by iterating over the items of a copy
of the dict while changing the original, similar to what we're doing in
the cuckoo job tracke for alomst the same reason already.

Fixes #160.

With python3 the cluster duplicate handler would die from RuntimeErrors
due to the items() accessor of the duplicate backlog dict being a
view/iterator that doesn't respond well to the dict changing while being
iterated. Prevent the RuntimeError by iterating over the items of a copy
of the dict while changing the original, similar to what we're doing in
the cuckoo job tracke for alomst the same reason already.

Fixes scVENUS#160.
@michaelweiser michaelweiser requested a review from Jack28 June 10, 2020 12:10
@michaelweiser michaelweiser self-assigned this Jun 10, 2020
@Jack28
Copy link
Member

Jack28 commented Jun 10, 2020

This is an exact duplicate of #161
Have I missed something?

@michaelweiser
Copy link
Contributor Author

Yeah, this is against the 2.0 branch as backport for a potential v2.0.1 bugfix release. :)

Copy link
Member

@Jack28 Jack28 left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelweiser michaelweiser merged commit fec23dc into scVENUS:2.0 Jun 11, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants