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

add debug log to lock service heartbeat #21018

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/lockservice/lock_table_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ func (k *lockTableKeeper) keepLockTableBind(ctx context.Context) {
case <-ctx.Done():
return
case <-timer.C:
k.service.logger.Info("keep lock table heartbeat")
k.doKeepLockTableBind(ctx)
timer.Reset(k.keepLockTableBindInterval)
k.service.logger.Info("keep lock table heartbeat end")
}
}
}
Expand All @@ -102,12 +104,14 @@ func (k *lockTableKeeper) keepRemoteLock(ctx context.Context) {
case <-ctx.Done():
return
case <-timer.C:
k.service.logger.Info("keep remote lock heartbeat")
futures, binds = k.doKeepRemoteLock(
ctx,
futures,
services,
binds)
timer.Reset(k.keepRemoteLockInterval)
k.service.logger.Info("keep remote lock heartbeat end")
}
}
}
Expand Down
Loading