Skip to content

vreplication: fix vreplication timing metrics#8060

Merged
systay merged 1 commit intovitessio:release-9.0from
planetscale:9.0-backport-of-8024
May 6, 2021
Merged

vreplication: fix vreplication timing metrics#8060
systay merged 1 commit intovitessio:release-9.0from
planetscale:9.0-backport-of-8024

Conversation

@systay
Copy link
Copy Markdown
Collaborator

@systay systay commented May 6, 2021

Backport of #8024

Several of the vreplication metrics were recently updated to no longer be
correct. Specifically time.Now() is no longer executed when the function
starts and is instead executed when the defer statement is called after the end
of the function.

This updates the metrics to properly execute time.Now() at the start
of the functions.

Signed-off-by: Dylan Visher dvisher@figma.com

Description

Related Issue(s)

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Several of the vreplication metrics were recently updated to no longer be
correct. Specifically time.Now() is no longer executed when the function
starts and is instead executed when the defer statement is called after the end
of the function.

This updates the metrics to properly execute time.Now() at the start
of the functions.

Signed-off-by: Dylan Visher <dvisher@figma.com>
@systay systay requested a review from rohit-nayak-ps as a code owner May 6, 2021 09:14
@systay systay changed the title [9.0] vreplication: fix vreplication timing metrics vreplication: fix vreplication timing metrics May 6, 2021
Copy link
Copy Markdown
Member

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

lgtm

@systay systay merged commit fbc616a into vitessio:release-9.0 May 6, 2021
@systay systay deleted the 9.0-backport-of-8024 branch May 6, 2021 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants