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

fix some issue of Optimize the write performance when host is down #5673

Merged
merged 13 commits into from
Sep 19, 2023

Conversation

tangyuanzhang
Copy link
Contributor

@tangyuanzhang tangyuanzhang commented Aug 15, 2023

description :#5672

@tangyuanzhang tangyuanzhang changed the title fix some of Optimize the write performance when host is down fix some issue of Optimize the write performance when host is down Aug 15, 2023
@Sophie-Xie Sophie-Xie added the ready-for-testing PR: ready for the CI test label Aug 16, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2023

Codecov Report

Patch coverage: 25.00% and project coverage change: +1.12% 🎉

Comparison is base (3a74633) 77.10% compared to head (860c0b0) 78.22%.

❗ 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     
Files Changed Coverage Δ
src/kvstore/raftex/Host.cpp 70.62% <0.00%> (-6.76%) ⬇️
src/kvstore/raftex/Host.h 88.09% <100.00%> (+5.16%) ⬆️

... and 93 files with indirect coverage changes

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

yixinglu
yixinglu previously approved these changes Aug 21, 2023
Copy link
Contributor

@dutor dutor left a 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.

Comment on lines 431 to 434
// 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)) {
Copy link
Contributor

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.

@Sophie-Xie Sophie-Xie merged commit e84e236 into vesoft-inc:master Sep 19, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants