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

update defaultReplicationStrategy to not fail with extend-write when a single instance is unhealthy #4636

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

roystchiang
Copy link
Contributor

@roystchiang roystchiang commented Jan 27, 2022

What this PR does:

Instead of calculating replication factor in the beginning, calculate it after unhealthy instances have been filtered out. This avoid failure where we have a replication factor of 3, and we have a single unhealthy ingester.

Which issue(s) this PR fixes:
Fixes #4626

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@roystchiang roystchiang force-pushed the fix-replication-strategy branch 2 times, most recently from 8c1793a to 4832bda Compare January 27, 2022 03:55
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jan 27, 2022
Copy link
Contributor

@alvinlin123 alvinlin123 left a comment

Choose a reason for hiding this comment

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

I believe this PR fixes an unintended bug; hence, I will approve this PR.

Copy link
Contributor

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

I'm approving but I never really understood this feature.
Please check if it also fixes #1290

…a single instance is unhealthy

Signed-off-by: Roy Chiang <[email protected]>
@roystchiang roystchiang force-pushed the fix-replication-strategy branch from 4832bda to 5200af4 Compare February 18, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ingester extend-writes with AZ-awareness expects replicas in all AZs rather than just quorum
4 participants