Skip to content

Dampen readiness flaps#6559

Open
shuheiktgw wants to merge 1 commit into
quickwit-oss:mainfrom
shuheiktgw:gossip-flap-damping
Open

Dampen readiness flaps#6559
shuheiktgw wants to merge 1 commit into
quickwit-oss:mainfrom
shuheiktgw:gossip-flap-damping

Conversation

@shuheiktgw

@shuheiktgw shuheiktgw commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Description

Dampen node readiness flaps by requiring 3 consecutive failed readiness checks before advertising NOT_READY. Successful checks still restore readiness immediately.

@shuheiktgw shuheiktgw marked this pull request as ready for review June 29, 2026 07:27
@shuheiktgw shuheiktgw requested a review from a team as a code owner June 29, 2026 07:27

@loutPhilipps loutPhilipps left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me

let mut failures_to_inject = metastore_failures_to_inject_clone.lock().unwrap();
if *failures_to_inject > 0 {
*failures_to_inject -= 1;
return Err(anyhow::anyhow!("Metastore transiently not ready"));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return Err(anyhow::anyhow!("Metastore transiently not ready"));
bail!(...)

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.

3 participants