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

Release 6.5 #36

Closed
wants to merge 69 commits into from
Closed

Release 6.5 #36

wants to merge 69 commits into from

Conversation

lhy1024
Copy link
Owner

@lhy1024 lhy1024 commented Jan 29, 2024

What problem does this PR solve?

Issue Number: Close #xxx

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

Release note

None.

ti-chi-bot and others added 30 commits December 5, 2022 19:52
close tikv#5753, ref tikv#5754

Fix unsafe recovery auto-detect mode by passing detected failed stores to TiKV

Signed-off-by: Connor1996 <[email protected]>

Co-authored-by: Connor1996 <[email protected]>
Signed-off-by: bufferflies <[email protected]>

Signed-off-by: bufferflies <[email protected]>
Co-authored-by: bufferflies <[email protected]>
close tikv#5973, ref tikv#5974

dashboard: default close telemetry

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: nolouch <[email protected]>

Co-authored-by: ShuNing <[email protected]>
Co-authored-by: nolouch <[email protected]>
tikv#6016)

close tikv#5898, ref tikv#5899

The old version of idalloc is a globally unique path, and keyspace needs to use id allocator to allocate keyspaceID, so in this pr the id allocator is changed to a general purpose, but not sync metrics.
tikv#5284

Signed-off-by: husharp <[email protected]>

Co-authored-by: husharp <[email protected]>
close tikv#6081

*: upgrade the dependencies

Signed-off-by: nolouch <[email protected]>
…ikv#6202)

close tikv#6195, ref tikv#6200

1. role can be transfer when their's rule role is same.

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: bufferflies <[email protected]>

Co-authored-by: buffer <[email protected]>
Co-authored-by: bufferflies <[email protected]>
…ikv#6112)

close tikv#6107, ref tikv#6108

fix online recovery timeout mechanism

Signed-off-by: Connor1996 <[email protected]>

Co-authored-by: Connor1996 <[email protected]>
* server: add accelerate-schedule/batch api

Signed-off-by: Lloyd-Pottiger <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>

* address comments

Signed-off-by: Lloyd-Pottiger <[email protected]>

---------

Signed-off-by: Lloyd-Pottiger <[email protected]>
Co-authored-by: Ti Chi Robot <[email protected]>
ref tikv#6099, ref tikv#6123

add defer logs the panic reason and stack

Signed-off-by: husharp <[email protected]>

Co-authored-by: husharp <[email protected]>
Co-authored-by: Hu# <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
… (tikv#6469)

ref tikv#5510, close tikv#6467, ref tikv#6468

tikv#5510 introduced a bug that would cause the store labels to be overwritten wrongly after the store reboot.
This PR fixed this issue.

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: JmPotato <[email protected]>

Co-authored-by: JmPotato <[email protected]>
…d leader intact (tikv#6447) (tikv#6460)

close tikv#6403, ref tikv#6447

server: fix the leader cannot election after pd leader lost while etcd leader intact

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: nolouch <[email protected]>

Co-authored-by: ShuNing <[email protected]>
Co-authored-by: nolouch <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ref tikv#6403, ref tikv#6409

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
… learner node (tikv#6452) (tikv#6483)

ref tikv#4399, ref tikv#6452, close tikv/tikv#14704

replication_mode: fix the state cannot switch to async while existing learner node
 - skip the learner node when check the stores state

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: nolouch <[email protected]>

Co-authored-by: ShuNing <[email protected]>
Co-authored-by: nolouch <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
close tikv#6426, ref tikv#6427

allow the `schedule=deny` label can do rule constraints check

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: nolouch <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: ShuNing <[email protected]>
Co-authored-by: nolouch <[email protected]>
Co-authored-by: Ryan Leung <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
fix pingcap/tidb-dashboard#1515, close tikv#6520

Update tidb-dashboard to the lastest version (v2023.05.08.1)

Signed-off-by: baurine <[email protected]>
…) (tikv#6522)

close tikv#6386, ref tikv#6413

Provide an API to fetch the store resolved_ts

Signed-off-by: husharp <[email protected]>

Co-authored-by: husharp <[email protected]>
Co-authored-by: Hu# <[email protected]>
) (tikv#6558)

ref tikv#6493, ref tikv#6498

Add an option to halt the cluster scheduling.

Signed-off-by: husharp <[email protected]>

Co-authored-by: husharp <[email protected]>
close tikv#6564

Update tidb-dashboard to the lastest version (v2023.06.07.1)

Signed-off-by: baurine <[email protected]>
…ikv#6575)

close tikv#6573, ref tikv#6574

rule-checker: fix the too many orphan peers that cannot be removed
- let the health peer can be removed once there exist redundant

Signed-off-by: nolouch <[email protected]>

Co-authored-by: nolouch <[email protected]>
ref tikv#6690, ref tikv#6709

Fix learner store/ replica being ignored error in auto detect mode.

Signed-off-by: Yang Zhang <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
baurine and others added 28 commits August 18, 2023 02:24
close tikv#6966

1. This PR fixed the statements list export failed issue
2. This PR support config the ngm component timeout param

Signed-off-by: baurine <[email protected]>
…ikv#6948)

ref tikv#6912, close tikv/tikv#15258

TiKV Region merge checks region in operator and in local strictly,
and drops commit merge if there is a mismatch between them.

This change is necessary to prevent flashback from blocking
Region merge. For more details, see tikv/tikv#15258.

Signed-off-by: Neil Shen <[email protected]>

Co-authored-by: Neil Shen <[email protected]>
…kv#7027)

close tikv#6962

In past, PD conside peer distribution in the different group influenece by using `TotalCountByStore` , but not include the leader distribution. The max used situation is partition table. 
After this pr, TIDB call scatter api will use same group not different. 

ref:
tikv#3422
pingcap/tidb#46156

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: bufferflies <[email protected]>

Co-authored-by: buffer <[email protected]>
Co-authored-by: bufferflies <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
close tikv#7008

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Cabinfever_B <[email protected]>

Co-authored-by: Yongbo Jiang <[email protected]>
Co-authored-by: Cabinfever_B <[email protected]>
close tikv#7066

1. security: improve tidb-dashboard login security, encrypt the login password to avoid transport plain text (required for 6.5 version)
2. debug-api: support pagination for ddl history for debug-api
3. keyvisual: use scanRegions instead of fetch all regions (required for 6.5 version)
4. refine execution plan, now it can be showed as table style

Signed-off-by: baurine <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
close tikv#7109

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Cabinfever_B <[email protected]>

Co-authored-by: Yongbo Jiang <[email protected]>
Co-authored-by: Cabinfever_B <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
close tikv#6897

Signed-off-by: husharp <[email protected]>

Co-authored-by: husharp <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
close tikv#7248

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: nolouch <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
Co-authored-by: nolouch <[email protected]>
…kv#7126)

close tikv#7121

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
…ore becomes unavailable (tikv#7249) (tikv#7337)

close tikv#7249

Signed-off-by: lhy1024 <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
…) (tikv#7363)

close tikv#6988, close tikv#7016

Signed-off-by: husharp <[email protected]>

Co-authored-by: husharp <[email protected]>
Co-authored-by: Hu# <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
)

close tikv#7438

Upgrade Gin version to v1.9.1 to solve some security issues

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: niubell <[email protected]>
Co-authored-by: Ryan Leung <[email protected]>
…e checker (tikv#6660) (tikv#6956)

close tikv#6637

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
…e count (tikv#7581) (tikv#7591)

close tikv#7584

The healthy orphan peer should be the last one to be removed only if there are extra peers to keep the high availablility.

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: bufferflies <[email protected]>

Co-authored-by: tongjian <[email protected]>
Co-authored-by: bufferflies <[email protected]>
…r evict-leader (tikv#7674) (tikv#7686)

close tikv#7672

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Cabinfever_B <[email protected]>

Co-authored-by: Yongbo Jiang <[email protected]>
Co-authored-by: Cabinfever_B <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Attention: 195 lines in your changes are missing coverage. Please review.

Comparison is base (b3eeaae) 75.52% compared to head (4506d63) 75.50%.
Report is 1179 commits behind head on master.

Files Patch % Lines
client/client.go 40.74% 39 Missing and 9 partials ⚠️
server/api/region.go 71.31% 26 Missing and 11 partials ⚠️
client/keyspace_client.go 62.22% 13 Missing and 4 partials ⚠️
server/api/admin.go 64.58% 11 Missing and 6 partials ⚠️
pkg/btree/btree_generic.go 86.66% 11 Missing and 3 partials ⚠️
server/api/min_resolved_ts.go 7.14% 13 Missing ⚠️
pkg/testutil/operator_check.go 86.76% 9 Missing ⚠️
pkg/jsonutil/jsonutil.go 73.33% 2 Missing and 2 partials ⚠️
pkg/syncutil/lock_group.go 82.60% 2 Missing and 2 partials ⚠️
server/api/middleware.go 77.77% 2 Missing and 2 partials ⚠️
... and 13 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
- Coverage   75.52%   75.50%   -0.02%     
==========================================
  Files         307      332      +25     
  Lines       30233    33775    +3542     
==========================================
+ Hits        22834    25503    +2669     
- Misses       5404     6068     +664     
- Partials     1995     2204     +209     
Flag Coverage Δ
unittests 75.50% <77.05%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lhy1024 lhy1024 closed this Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.