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

Wait for compacted indexes to flip. #4821

Merged
merged 1 commit into from Oct 23, 2023

Conversation

nickva
Copy link
Contributor

@nickva nickva commented Oct 23, 2023

Noticed on a few production instances, we run a potentially long compaction, and when done, the call to commit the compacted state times out after 5 seconds. That, in turn, triggers are a compaction_failed call, which also may timeout and the whole thing crashes.

Since we have the ioq scheduler running and we're doing disk IO, compaction swap may be delayed in the background, and take longer than 5 seconds. Opt to wait however long it takes or crash for some other reason. gen_server calls already auto-monitor and check for called process's exits.

Noticed on a few production instances, we run a potentially long compaction,
and when done, the call to commit the compacted state times out after 5
seconds. That, in turn, triggers are a `compaction_failed` call, which also may
timeout and the whole thing crashes.

Since we have the ioq scheduler running and we're doing disk IO, compaction
swap may be delayed in the background, and take longer than 5 seconds. Opt to
wait however long it takes or crash for some other reason. gen_server calls
already auto-monitor and check for called process's exits.
Copy link
Contributor

@big-r81 big-r81 left a comment

Choose a reason for hiding this comment

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

+1

@nickva nickva merged commit 5176f96 into main Oct 23, 2023
14 checks passed
@nickva nickva deleted the wait-for-indexes-to-flip-after-compaction branch October 23, 2023 18:18
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

2 participants