-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix some issue of Optimize the write performance when host is down #5673
fix some issue of Optimize the write performance when host is down #5673
Conversation
…g rpc and raft call
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #5673 +/- ##
==========================================
+ Coverage 77.10% 78.22% +1.12%
==========================================
Files 1133 1133
Lines 85884 85928 +44
==========================================
+ Hits 66220 67221 +1001
+ Misses 19664 18707 -957
☔ 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.
Thanks for this contribution.
@cangfengzhs @critical27 Please take a look whether it's OK to take several times of TIMEOUT as host down.
src/kvstore/raftex/Host.cpp
Outdated
// If we keeps receiving NOT_OPEN exception after some HB intervals, | ||
// we can assume that the peer is down so we mark paused_ as true | ||
if (exception && exception->getType() == TransportException::NOT_OPEN) { | ||
if (exception && (exception->getType() == TransportException::NOT_OPEN || | ||
exception->getType() == TransportException::TIMED_OUT)) { |
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.
Please update the comment accordingly.
description :#5672