lance6716

Results 117 issues of lance6716

Reverts pingcap/docs#17866 PR is not merged into v6.5 yet https://github.com/pingcap/tidb/pull/47500

missing-translation-status
size/XS

### What problem does this PR solve? Issue Number: Close #xxx ### What is changed and how does it work? ```commit-message ``` ### Check List Tests - Unit test -...

size/S
release-note-none
do-not-merge/needs-linked-issue
dco-signoff: yes

## Enhancement Task There are some special error types like violation of WithOutputMustContainAllKeyRange. PD client should provide a function to let caller identify them quickly, rather than https://github.com/tikv/pd/blob/e8c05e0e28e39e345b26f23de237879a90f9a752/client/client.go#L1715-L1725 Or it's...

type/enhancement

## Enhancement Task Callers sometimes have their own logic to check the leader of regions from scan regions API https://github.com/pingcap/tidb/blob/7e73ddc91b5f9f089e84f0dc645cf71a27b2ad50/br/pkg/restore/split/split.go#L72 https://github.com/tikv/client-go/blob/88ce38492f7b30d95f4e3a7c760ba44c9a32f1be/internal/locate/region_cache.go#L2328-L2339 I prefer the client can provide an option to...

type/enhancement

### What problem does this PR solve? Issue Number: ref #55497 Problem Summary: ### What changed and how does it work? ### Check List Tests - [ ] Unit test...

sig/planner
size/S
release-note-none
approved
lgtm

### What problem does this PR solve? Issue Number: ref #51533 Problem Summary: ### What changed and how does it work? to include https://github.com/tikv/pd/pull/8375 ### Check List Tests - [...

size/XL
release-note-none
ok-to-test

``` tidb lightning encountered error: [Lightning:KV:ErrCreateKVClient]create kv client error: rpc error: code = Unknown desc = [PD:tso:ErrGenerateTimestamp]generate timestamp failed, requested pd is not leader of cluster ``` https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftidb%2Fpull_lightning_integration_test/detail/pull_lightning_integration_test/2225/pipeline Please auto-retry...

type/bug
severity/major
may-affects-5.4
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
affects-8.5

## Enhancement like we can use `max` rather than https://github.com/pingcap/tidb/blob/7158ac65ee454d38455cd636b562649b08906e18/pkg/util/mathutil/math.go#L71-L80

type/enhancement
good first issue
hacktoberfest

## Bug Report Please answer these questions before submitting your issue. Thanks! ### 1. Minimal reproduce step (Required) `func (dc *ddlCtx) handleRangeTasks` is executed on a single goroutine. There's a...

type/bug
severity/major
affects-5.4
affects-6.1
affects-6.5
affects-7.1
component/ddl
affects-7.5
affects-8.1

## Bug Report Please answer these questions before submitting your issue. Thanks! ### 1. Minimal reproduce step (Required) capture a CPU profile when lightning encodes KV ![image](https://github.com/user-attachments/assets/f488bf6d-e9dd-494b-a673-1b7ab64ec3d7) https://github.com/pingcap/tidb/blob/ff2feb6653846b0decd8b1d7cc0a665e128ccf26/br/pkg/lightning/backend/kv/sql2kv.go#L491-L497 some implementations...

type/bug
severity/moderate
component/lightning
affects-6.5
affects-7.1
affects-7.5
affects-8.1