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

Log revision skew values #324

Merged
merged 1 commit into from Dec 9, 2021
Merged

Log revision skew values #324

merged 1 commit into from Dec 9, 2021

Conversation

samkim
Copy link
Member

@samkim samkim commented Dec 6, 2021

No description provided.

@github-actions github-actions bot added the area/datastore Affects the storage system label Dec 6, 2021
@@ -205,6 +205,7 @@ func (cds *crdbDatastore) Revision(ctx context.Context) (datastore.Revision, err
if cds.quantizationNanos > 0 {
quantized -= (crdbNow % cds.quantizationNanos)
}
log.Ctx(ctx).Info().Int64("readSkew", cds.followerReadDelayNanos).Int64("totalSkew", nowHLC.IntPart()-quantized).Msg("revision skews")
Copy link
Member

Choose a reason for hiding this comment

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

Do we want this to be info or debug?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thought we'd might want to see it by default but prob too noisy. Updated to debug.

@jzelinskie jzelinskie merged commit 0fc52b6 into authzed:main Dec 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/datastore Affects the storage system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants