-
Notifications
You must be signed in to change notification settings - Fork 499
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
stability-test: stop kube-proxy case #556
Conversation
684e943
to
8d47dd4
Compare
/run-e2e-tests |
tests/actions.go
Outdated
@@ -96,15 +96,14 @@ func NewOperatorActions(cli versioned.Interface, | |||
const ( | |||
DefaultPollTimeout time.Duration = 10 * time.Minute | |||
DefaultPollInterval time.Duration = 1 * time.Minute | |||
BackupAndRestorePollTimeOut time.Duration = 30 * time.Minute | |||
BackupAndRestorePollTimeOut time.Duration = 60 * time.Minute |
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.
In cluster 3, it takes 40+ minutes to complete.
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.
reverted, I adjusted blockwrite to test in cluster 3
/run-e2e-tests |
tests/failover.go
Outdated
@@ -360,7 +360,7 @@ func (oa *operatorActions) tikvFailover(pod *corev1.Pod, tc *v1alpha1.TidbCluste | |||
healthCount++ | |||
} | |||
} | |||
if tc.Status.TiKV.Synced && healthCount == int(tc.Spec.TiKV.Replicas) { | |||
if tc.Status.TiKV.Synced && healthCount >= int(tc.Spec.TiKV.Replicas) { |
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 is suggested by @weekface to fix a race condition on TiKV failover check.
glog.Fatalf("update kube-proxy daemonset failed, err: %v", err) | ||
} | ||
|
||
mgr := manager.NewManager() |
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 cleanup code is copied from #503.
/run-e2e-tests |
This reverts commit d92df33.
/run-e2e-tests |
What problem does this PR solve?
Add stop/start kube-proxy stability test case.
This replaces #503.
What is changed and how it works?
Check List
Tests
Stability test
Does this PR introduce a user-facing change?: