Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
12ec4376
Unverified
Commit
12ec4376
authored
Aug 05, 2021
by
Hussein Galal
Committed by
GitHub
Aug 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Node stuck at deletion (#3775)
Signed-off-by:
galal-hussein
<
hussein.galal.ahmed.11@gmail.com
>
parent
69047a35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
etcd.go
pkg/etcd/etcd.go
+7
-4
No files found.
pkg/etcd/etcd.go
View file @
12ec4376
...
@@ -41,10 +41,11 @@ import (
...
@@ -41,10 +41,11 @@ import (
)
)
const
(
const
(
endpoint
=
"https://127.0.0.1:2379"
endpoint
=
"https://127.0.0.1:2379"
testTimeout
=
time
.
Second
*
10
testTimeout
=
time
.
Second
*
10
manageTickerTime
=
time
.
Second
*
15
manageTickerTime
=
time
.
Second
*
15
learnerMaxStallTime
=
time
.
Minute
*
5
learnerMaxStallTime
=
time
.
Minute
*
5
memberRemovalTimeout
=
time
.
Minute
*
1
// defaultDialTimeout is intentionally short so that connections timeout within the testTimeout defined above
// defaultDialTimeout is intentionally short so that connections timeout within the testTimeout defined above
defaultDialTimeout
=
2
*
time
.
Second
defaultDialTimeout
=
2
*
time
.
Second
...
@@ -560,6 +561,8 @@ func (e *ETCD) cluster(ctx context.Context, forceNew bool, options executor.Init
...
@@ -560,6 +561,8 @@ func (e *ETCD) cluster(ctx context.Context, forceNew bool, options executor.Init
// removePeer removes a peer from the cluster. The peer ID and IP address must both match.
// removePeer removes a peer from the cluster. The peer ID and IP address must both match.
func
(
e
*
ETCD
)
removePeer
(
ctx
context
.
Context
,
id
,
address
string
,
removeSelf
bool
)
error
{
func
(
e
*
ETCD
)
removePeer
(
ctx
context
.
Context
,
id
,
address
string
,
removeSelf
bool
)
error
{
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
memberRemovalTimeout
)
defer
cancel
()
members
,
err
:=
e
.
client
.
MemberList
(
ctx
)
members
,
err
:=
e
.
client
.
MemberList
(
ctx
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment