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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix response promises for disk monitor deletion #1892

Merged
merged 8 commits into from Sep 29, 2021

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Sep 28, 2021

馃摂 Description

In the testing of the release candidate we noticed the disk monitor not correctly handling deletion in some cases, leading to full disks. These changes are a first attempt at solving the issue.

馃摑 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

馃幆 Review Instructions

  • Review code by following the message flow from the atom::ping handler of the disk monitor down to the local segment stores.
  • @tobim deploy on our testbed and try to reproduce.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Sep 28, 2021
libvast/src/system/disk_monitor.cpp Outdated Show resolved Hide resolved
libvast/src/system/disk_monitor.cpp Outdated Show resolved Hide resolved
@dominiklohmann
Copy link
Member Author

The changes you made look fine to me. I can't approve my own PR, but consider your mixups approved @tobim.

With the new pending_partitions counter I took the liberty to
avoid state duplication and use that to check whether we can
start another round.
@tobim tobim force-pushed the topic/local-segment-stores-erase branch from ac45b99 to d8fc3d3 Compare September 29, 2021 11:59
Copy link
Member

@tobim tobim left a comment

Choose a reason for hiding this comment

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

Approving the parts done by @dominiklohmann.

@dominiklohmann dominiklohmann merged commit 1da9ea5 into master Sep 29, 2021
@dominiklohmann dominiklohmann deleted the topic/local-segment-stores-erase branch September 29, 2021 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
2 participants