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: start tcp listen before starting raft #1256

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

shuoranliu
Copy link
Member

This commit starts the TCP listen port before starting raft. Because
otherwise there is a gap between raft started and TCP port listened. If
current node is selected as raft leader but TCP port listening is not
up, the whole partition will be unavailable due to "connnection reset
error".

Signed-off-by: Shuoran Liu shuoranliu@gmail.com

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

@shuoranliu shuoranliu force-pushed the fix-start-tcp-before-raft branch 3 times, most recently from 58dfcee to f6f0a43 Compare November 29, 2021 03:41
This commit starts the TCP listen port before starting raft. Because
otherwise there is a gap between raft started and TCP port listened. If
current node is selected as raft leader but TCP port listening is not
up, the whole partition will be unavailable due to "connnection reset
error".

Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
@shuoranliu shuoranliu merged commit 0cfe306 into cubefs:master Dec 2, 2021
@shuoranliu shuoranliu deleted the fix-start-tcp-before-raft branch January 20, 2022 04:59
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.

None yet

2 participants