data_validator: initialize the metrics in Start() instead of constructor#12603
data_validator: initialize the metrics in Start() instead of constructor#12603kennytm wants to merge 1 commit intopingcap:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Code Review
This pull request moves the initialization of vmetric from the NewContinuousDataValidator constructor to the initialize method in data_validator.go. Additionally, it updates the unit tests in data_validator_test.go to verify that vmetric is correctly initialized upon starting the validator and is re-initialized when the validator is restarted. I have no feedback to provide as there were no review comments.
|
/retest |
|
@kennytm: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest-required |
|
/cc @GMHDBJD @OliverS929 |
What problem does this PR solve?
Issue Number: close #12601
What is changed and how it works?
Move the metrics initialization to
Start()(which callsinitialize()) rather than in the constructor which is called only once in the entire lifetime.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note