-
Notifications
You must be signed in to change notification settings - Fork 3.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
sql: add replication start time to SHOW TENANT WITH REPLICATION STATUS
#93551
Conversation
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!
// TODO(lidor): replace this start time with the actual replication start time when we have it. | ||
require.GreaterOrEqual(t, protectedTime, testStartTime) | ||
require.GreaterOrEqual(t, protectedTime, replicationDetails.ReplicationStartTime.GoTime()) | ||
require.Equal(t, replicationStartTime.UnixNano(), replicationDetails.ReplicationStartTime.GoTime().UnixNano()) |
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.
can you drop the UnixNano()
?
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.
The test flake actually revealed that the replicationStartTime
is only accurate up to the microsecond after we start running into rounding mismatches. I had to change this to UnixMicro
to pass under stress on a gceworker.
2bb4ef6
to
6bb6d1c
Compare
The start time is an important and useful piece of information to expose to the end user. It is the lower bound for the data we have replicated. Release note: None
6bb6d1c
to
3833eed
Compare
Tracking the unrelated flake here #93731 bors r=lidorcarmel |
Build succeeded: |
The start time is a useful piece of information to expose to the end user. It is the lower bound for the data we have replicated.
Informs: #93447
Release note: None