-
Notifications
You must be signed in to change notification settings - Fork 719
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
scheduler: fix flaky test TestRegionLabelDenyScheduler #8340
Conversation
@@ -491,6 +491,8 @@ retry: | |||
// If the evict-leader-scheduler is disabled, it will obstruct the restart operation of tikv by the operator. | |||
// Refer: https://docs.pingcap.com/tidb-in-kubernetes/stable/restart-a-tidb-cluster#perform-a-graceful-restart-to-a-single-tikv-pod | |||
if labelMgr.ScheduleDisabled(region) && !isEvictLeaderScheduler { | |||
log.Debug("region is blocked by labeler", zap.Uint64("region-id", region.GetID()), zap.ByteString("start-key", region.GetStartKey()), |
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.
Do we need to use logutil.ZapRedactByteString
? cc @JmPotato
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.
Yes, please use that to output the sensitive info like the user key.
/hold This pull request does not need to be merged, the unstable test has been reproduced |
/test pull-integration-realcluster-test |
1 similar comment
/test pull-integration-realcluster-test |
/test pull-integration-realcluster-test |
/unhold |
/retest |
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.
This modification includes non-test changes. Do we need to add extra tests to verify it?
This content is tested by TestRegionLabelDenyScheduler. |
/test pull-integration-realcluster-test Do not reproduce in local environment ref #8348 |
@okJiang: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions 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/test-infra repository. |
/test pull-integration-realcluster-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HuSharp, JmPotato The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: Close #8339
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tiup
:Release note