Skip to content

fix(updater): ignore deleting instances in topology policy#6538

Merged
ti-chi-bot[bot] merged 2 commits intopingcap:feature/v2from
liubog2008:liubo02/fix-topology
Nov 11, 2025
Merged

fix(updater): ignore deleting instances in topology policy#6538
ti-chi-bot[bot] merged 2 commits intopingcap:feature/v2from
liubog2008:liubo02/fix-topology

Conversation

@liubog2008
Copy link
Member

If an instance is deleting, it may still be count by topology policy. It makes the prefer policy unstable.

Signed-off-by: liubo02 <liubo02@pingcap.com>
@github-actions github-actions bot added the v2 for operator v2 label Nov 10, 2025
@ti-chi-bot ti-chi-bot bot added the size/XL label Nov 10, 2025
Signed-off-by: liubo02 <liubo02@pingcap.com>
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 25.00000% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 41.08%. Comparing base (c0099a5) to head (57599e4).

Additional details and impacted files
@@              Coverage Diff               @@
##           feature/v2    #6538      +/-   ##
==============================================
- Coverage       41.09%   41.08%   -0.02%     
==============================================
  Files             366      366              
  Lines           20328    20348      +20     
==============================================
+ Hits             8354     8360       +6     
- Misses          11974    11988      +14     
Flag Coverage Δ
unittest 41.08% <25.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ti-chi-bot ti-chi-bot bot added the lgtm label Nov 11, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Nov 11, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-11-11 01:23:26.887381007 +0000 UTC m=+751656.330410885: ☑️ agreed by csuzhangxc.

@ti-chi-bot ti-chi-bot bot added the approved label Nov 11, 2025
@ti-chi-bot ti-chi-bot bot merged commit 1d348c4 into pingcap:feature/v2 Nov 11, 2025
9 checks passed
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Nov 11, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csuzhangxc, fgksgf

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

liubog2008 added a commit to liubog2008/tidb-operator that referenced this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants