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: 修复 etcd keepAlive 无法及时关闭 context --story=121171780 #1214

Open
wants to merge 1 commit into
base: v1.7.x
Choose a base branch
from

Conversation

zouxingyuks
Copy link
Collaborator

No description provided.

@zouxingyuks zouxingyuks changed the title fix: 修复 etcd keepAlive 无法及时关闭 content fix: 修复 etcd keepAlive 无法及时关闭 content --story=121171780 Dec 11, 2024
pkg/serviced/service.go Outdated Show resolved Hide resolved
pkg/serviced/service.go Outdated Show resolved Hide resolved
pkg/serviced/service.go Outdated Show resolved Hide resolved
@zouxingyuks zouxingyuks force-pushed the fix/etcd branch 2 times, most recently from 68b0c8e to d650d7e Compare December 11, 2024 11:34
yangfan-njupt
yangfan-njupt previously approved these changes Dec 11, 2024
@chenjr15 chenjr15 changed the title fix: 修复 etcd keepAlive 无法及时关闭 content --story=121171780 fix: 修复 etcd keepAlive 无法及时关闭 context --story=121171780 Jan 14, 2025
Comment on lines +198 to +202
leaseResp, err := lease.Grant(s.ctx, defaultGrantLeaseTTL)
if err != nil {
logs.Errorf("grant lease failed, key: %s, err: %v", key, err)
return err
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里没设置超时

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外在调用keepalive之前会第一次grant lease 也没有配置超时

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.

3 participants