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

lock_resolver: handle pessimistic locks in BatchResolveLocks #779

Conversation

MyonKeminta
Copy link
Contributor

@MyonKeminta MyonKeminta marked this pull request as ready for review April 28, 2023 02:48
@@ -238,11 +238,27 @@ func (lr *LockResolver) BatchResolveLocks(bo *retry.Backoffer, locks []*Lock, lo
txnInfos := make(map[uint64]uint64)
startTime := time.Now()
for _, l := range expiredLocks {
logutil.Logger(bo.GetCtx()).Info("BatchResolveLocks handling lock", zap.Stringer("lock", l))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use logutil.Debug(...)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry. I added this when debugging and forgot to remove it. Keep it as a debug-level log might be a good idea.

@MyonKeminta MyonKeminta requested a review from ekexium May 4, 2023 12:48
@MyonKeminta
Copy link
Contributor Author

Oops something went wrong about the tests... I'll figure it out when I have time..

@MyonKeminta
Copy link
Contributor Author

fixed in #794

@MyonKeminta MyonKeminta deleted the m/batch-resolve-lock-handle-pessimistic-lock branch May 17, 2023 11:54
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.

2 participants