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

Include leaderless replicas for GET replication requests #2661

Merged

Conversation

Arun-LinkedIn
Copy link
Contributor

During leader-based replication, we only include leaders for fetching actual data. For non-leaders, we wait for 2 minutes hoping that the data would be fetched via intra-colo replication. This causes issue of very slow replication if leader is missing. To avoid that, we are fetching data for replicas without any leaders in this PR.

@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6edfb75) 72.63% compared to head (da76d11) 72.59%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2661      +/-   ##
============================================
- Coverage     72.63%   72.59%   -0.05%     
+ Complexity    11537    11529       -8     
============================================
  Files           809      809              
  Lines         65545    65551       +6     
  Branches       7997     7998       +1     
============================================
- Hits          47611    47586      -25     
- Misses        15334    15355      +21     
- Partials       2600     2610      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@justinlin-linkedin justinlin-linkedin left a comment

Choose a reason for hiding this comment

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

Looks much better now

@Arun-LinkedIn Arun-LinkedIn merged commit e00e244 into linkedin:master Nov 30, 2023
5 checks passed
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