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

Stability cases: stop kubelet and etcd #665

Merged
merged 11 commits into from
Jul 25, 2019
Merged

Conversation

weekface
Copy link
Contributor

What problem does this PR solve?

  • stop all kubelets
  • stop all etcds
  • data security after deleting the database

What is changed and how does it work?

Check List

Tests

  • Unit test
  • E2E test
  • Stability test

Code changes

  • Has Go code change

Side effects

Related changes

  • Need to cherry-pick to the release branch

Does this PR introduce a user-facing change?:

NONE

@@ -173,7 +173,7 @@ func (oa *operatorActions) CheckFailoverPending(info *TidbClusterConfig, node st
if _, exist := affectedPods[failureStore.PodName]; exist {
err := fmt.Errorf("cluster: [%s] the tikv store[%s] should be mark failure after %s", info.FullName(), failureStore.PodName, deadline.Format(time.RFC3339))
glog.Errorf(err.Error())
return false, err
return false, nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There may have been a failover before.

Copy link
Contributor

Choose a reason for hiding this comment

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

should this be a comment in the code?

@@ -950,7 +1020,8 @@ func (oa *operatorActions) CheckUpgrade(ctx context.Context, info *TidbClusterCo
}
glog.V(4).Infof("index:%d,schedulers:%v,error:%v", i, schedulers, err)
if len(schedulers) > 1 {
return true, fmt.Errorf("there are too many evict leader schedulers: %v", schedulers)
glog.Errorf("there are too many evict leader schedulers: %v", schedulers)
return false, nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There may be two schedulers at the same time

@weekface
Copy link
Contributor Author

/run-e2e-tests

@weekface
Copy link
Contributor Author

/run-e2e-tests

@weekface weekface added this to the v1.0.0 milestone Jul 18, 2019
xiaojingchen
xiaojingchen previously approved these changes Jul 18, 2019
@cofyc cofyc mentioned this pull request Jul 18, 2019
5 tasks
@weekface weekface removed this from the v1.0.0 milestone Jul 22, 2019
@weekface
Copy link
Contributor Author

/run-e2e-tests

@tennix tennix added the test/stability stability tests label Jul 24, 2019
@xiaojingchen
Copy link
Contributor

/run-e2e-tests

1 similar comment
@xiaojingchen
Copy link
Contributor

/run-e2e-tests

@weekface weekface merged commit d9851bf into pingcap:master Jul 25, 2019
@weekface weekface deleted the stop-kubelet branch July 25, 2019 08:27
weekface added a commit that referenced this pull request Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test/stability stability tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants