Skip to content

Fix possible control-plane panic caused by race condition between reporting shard load and deleting index - #6762

Open
ncoiffier-celonis wants to merge 2 commits into
mainfrom
quickwit-control-plane-panic
Open

Fix possible control-plane panic caused by race condition between reporting shard load and deleting index#6762
ncoiffier-celonis wants to merge 2 commits into
mainfrom
quickwit-control-plane-panic

Conversation

@ncoiffier-celonis

Copy link
Copy Markdown
Collaborator

Description

On a test environment which uses Quickwit as a sidecar, and where I'm creating/deleting indices repeatedly, I think there is a possible race condition between reporting the shard load and deleting index, causing the control-plane actor to panic and to stay dead for ~30 seconds

This PR add 2 tests to show the problem, and fixes the .expect("index should exist") that causes the panic.

How was this PR tested?

Unit tests only

@ncoiffier-celonis ncoiffier-celonis added the bug Something isn't working label Sep 3, 2026
@ncoiffier-celonis
ncoiffier-celonis marked this pull request as ready for review September 3, 2026 11:01
@ncoiffier-celonis
ncoiffier-celonis requested a review from a team as a code owner September 3, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant