-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
store/tikv,mysql: improve error message of GC life time #7658
Conversation
store/tikv/kv.go
Outdated
@@ -165,7 +165,7 @@ func (s *tikvStore) CheckVisibility(startTime uint64) error { | |||
} | |||
|
|||
if startTime < cachedSafePoint { | |||
return ErrGCTooEarly | |||
return ErrGCTooEarly.GenByArgs(startTime, cachedSafePoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are startTime and cachedSafePoint human readable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
startTime is tso, and the safetime is calculated in GCWorker.prepare
, also tso, so both is not readable.
@tiancaiamao |
LGTM |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
What problem does this PR solve?
Fix #7650
What is changed and how it works?
Print the transaction start time and GC safe time.
When GC was happened is not easy to know, because the
gcworker
may not run in current TiDB.Check List
Tests
@coocood