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

Fix bug use shareinformer without copy #462

Merged
merged 2 commits into from
May 8, 2019

Conversation

shuijing198799
Copy link
Contributor

@shuijing198799 shuijing198799 commented May 7, 2019

What problem does this PR solve?

Because the data in shareinformer is modified instead of using copy,,When the TiDB statefulset rolling upgrade process is interrupted, it will not be retried.

What is changed and how it works?

use copy data instead.

Tests

  • E2E test
  • Stability test

Code changes

  • Has Go code change

Side effects

  • effect the TiDB rolling update process

@shuijing198799
Copy link
Contributor Author

@tennix @xiaojingchen @weekface PTAL

@shuijing198799
Copy link
Contributor Author

/run-e2e-tests

@onlymellb
Copy link
Contributor

All related logic that contains the SetLastAppliedConfigAnnotation function needs to be modified

@shuijing198799 shuijing198799 changed the title use shareinformer without copy Fix bug use shareinformer without copy May 7, 2019
@@ -131,7 +131,7 @@ func (tmm *tidbMemberManager) syncTiDBStatefulSetForTidbCluster(tc *v1alpha1.Tid
tcName := tc.GetName()

newTiDBSet := tmm.getNewTiDBSetForTidbCluster(tc)
oldTiDBSet, err := tmm.setLister.StatefulSets(ns).Get(controller.TiDBMemberName(tcName))
oldTiDBSetTemp, err := tmm.setLister.StatefulSets(ns).Get(controller.TiDBMemberName(tcName))
Copy link
Contributor

Choose a reason for hiding this comment

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

These two places need to be modified:

oldPDSet, err := pmm.setLister.StatefulSets(ns).Get(controller.PDMemberName(tcName))

oldSet, err := tkmm.setLister.StatefulSets(ns).Get(controller.TiKVMemberName(tcName))

@shuijing198799
Copy link
Contributor Author

/run-e2e-tests

Copy link
Contributor

@onlymellb onlymellb left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix tennix added the type/bug Something isn't working label May 8, 2019
@weekface weekface merged commit c8648e7 into pingcap:master May 8, 2019
shuijing198799 added a commit to shuijing198799/tidb-operator that referenced this pull request May 9, 2019
* use shareinformer without copy

* fix bug use shareinformer without copy in kv pd and svc

add webhook

Add version command for tkctl (pingcap#456)

* Add version command for tkctl

Signed-off-by: Aylei <rayingecho@gmail.com>

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

modify code and add cli

add tools code and modify code

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

add tools code and modify code

use shareinformer without copy

fix bug use shareinformer without copy in kv pd and svc

add webhook

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

modify code and add cli

add tools code and modify code

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

modify code and add cli

add tools code and modify code
yahonda pushed a commit that referenced this pull request Dec 27, 2021
* en: fix the "Debugging DNS Resolution" link

* en: update a link
@csuzhangxc csuzhangxc mentioned this pull request May 22, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants