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

Check if awaiting collection is empty before waiting on condition in conf height processor #2966

Merged

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Sep 22, 2020

@guilhermelawless found that the confirmation_height.unbounded_block_cache_iteration test failed intermittently.

It was because a check is made to see if the awaiting_processing collection is empty before waiting on the condition variable. However the lock is unlocked before this action is made (while other actions are performed) and it's possible confirmation_height_processor::add gets called (which notifies the condition), however we condition_variable::wait after this, so it ends up not being processed until another block is confirmed.

@wezrule wezrule added the bug label Sep 22, 2020
@wezrule wezrule added this to the V22.0 milestone Sep 22, 2020
@wezrule wezrule self-assigned this Sep 22, 2020
@wezrule wezrule merged commit a57bc52 into nanocurrency:develop Sep 22, 2020
@wezrule wezrule deleted the conf_height_unbounded_cache_iteration branch September 22, 2020 17:44
# 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.

3 participants