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 possible desync in pending queries map #1884

Merged
merged 2 commits into from Sep 21, 2021

Conversation

dominiklohmann
Copy link
Member

馃摂 Description

This changes the INDEX to monitor EXPORTER actors in order to be able to remove pending queries when an EXPORTER goes down unexpectedly without cancelling its running queries. This fixes a mismatch in the pending queries map in the output of vast status --detailed, and also stops the index from doing further unnecessary work if an export was unexpectedly killed.

馃摑 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

Commit-by-commit. Play around with it locally by killing processes off.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Sep 20, 2021
@dominiklohmann dominiklohmann requested a review from a team September 20, 2021 16:42
@dominiklohmann dominiklohmann force-pushed the story/ch28319/pending-query-map-mismatch branch from 0651167 to c24b2f3 Compare September 20, 2021 16:44
This changes the INDEX to monitor EXPORTER actors in order to be able to
remove pending queries when an EXPORTER goes down unexpectedly without
cancelling its running queries. This fixes a msimatch in the pending
queries map in the output of `vast status --detailed`, and also stops
the index from doing further unnecessary work if an export was
unexpectedly killed.
@dominiklohmann dominiklohmann force-pushed the story/ch28319/pending-query-map-mismatch branch from 9d2bd11 to a903616 Compare September 21, 2021 07:35
Copy link
Member

@lava lava left a comment

Choose a reason for hiding this comment

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

I did not have a good way to test this locally, but logically it looks like the fix is correct and should work.

@dominiklohmann dominiklohmann merged commit 527d6dd into master Sep 21, 2021
@dominiklohmann dominiklohmann deleted the story/ch28319/pending-query-map-mismatch branch September 21, 2021 10:20
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