-
Notifications
You must be signed in to change notification settings - Fork 21
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
push data asynchronously at leader #590
push data asynchronously at leader #590
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #590 +/- ##
===========================================
+ Coverage 56.51% 67.17% +10.65%
===========================================
Files 108 109 +1
Lines 10300 10729 +429
Branches 1402 1466 +64
===========================================
+ Hits 5821 7207 +1386
+ Misses 3894 2824 -1070
- Partials 585 698 +113 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems right but I would like to hold this till we solve and bake a stable version for PG move.
sure, will also loop other members in |
one question: |
we use |
https://github.com/facebook/folly/blob/main/folly/futures/Future.h#L2360-L2385 |
I see , you are right. I misunderstood the meaning of |
now we always start appending log to log store at leader until all the futures of pushing data to followers are completed , which will involve unnecessary latency
this PR aims to make pushing data asynchronously, so that logs can be set to follower ASAP. it does not matter whether push_data is successful, since follower will try to fetch data from the leader if push_data fails