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

build(deps): bump golang.org/x/crypto from 0.28.0 to 0.31.0 #18

Open
wants to merge 274 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
042846e
log backup: set a proper maxVersion to resolve lock (#57178)
3pointer Nov 11, 2024
56e7093
ddl: use a global owner manager instance for DDL, to avoid owner chan…
D3Hunter Nov 11, 2024
fe6c9b7
planner: move old cascades file into a limited pkg to avoid import co…
AilinKid Nov 11, 2024
e16613d
planner: optimize the performance of PointPlan for Instance Plan Cach…
qw4990 Nov 11, 2024
1b49096
statistics: make sure PQ can analyze all indexes with stats version 1…
Rustin170506 Nov 11, 2024
b5cf2c3
planner: add hash64 and equal for maxOneRow and fix some bugs. (#57259)
AilinKid Nov 11, 2024
d7fccb3
planner: fix list partition with non point range locates to a wrong p…
Defined2014 Nov 11, 2024
3047328
planner: fix the problem of not finding the referenced column in the …
hawkingrei Nov 11, 2024
6528da5
test: fix data race in scan locks (#57299)
3pointer Nov 11, 2024
169210a
br: implement reading migration (#57237)
Leavrth Nov 11, 2024
a5832b4
parser: support `admin alter ddl jobs` grammar (#57268)
fzzf678 Nov 12, 2024
a4faee2
store: make storage type a enum (#57276)
D3Hunter Nov 12, 2024
3578b1d
*: Use strict validation for stale read ts & flashback ts (#57050)
MyonKeminta Nov 12, 2024
f973f19
chore: use `slices.Clone` to replace CloneSlice (#57317)
YuJuncen Nov 12, 2024
95b04c7
table: fix the issue that the default value for `BIT` column is wrong…
YangKeao Nov 12, 2024
5caa238
planner: use collected predicate columns to do stats sync load (#56813)
winoros Nov 12, 2024
2d70425
planner: fix wrong schema when to solve the schema name in CTE (#57253)
hawkingrei Nov 12, 2024
99411a1
planner: add hash64 and equals implementation for CIStr. (#57324)
AilinKid Nov 12, 2024
2ad93c2
statistics: do not analyze non exist table anymore (#57244)
Rustin170506 Nov 12, 2024
6b72ec4
br: fix debug decode backupmeta (#56627)
Leavrth Nov 13, 2024
42cf753
executor: fix flaky test by correctly cancelling a query (#57140)
ekexium Nov 13, 2024
738adb9
executor: fix random cte error under apply (#57294)
windtalker Nov 13, 2024
18fd780
mod: update client-go to use new RC interface (#57311)
nolouch Nov 13, 2024
5129bb3
br: reduce memory usage when get incomplete ranges (#57192)
Leavrth Nov 13, 2024
eea72ec
infoschema: don't load table info to get auto_increment value (#57296)
tangenta Nov 13, 2024
65281ad
*: make `chunk.SwapColumn` private (#57274)
windtalker Nov 13, 2024
4cca1ff
planner: take logical schema producer into logical operator's hash ge…
AilinKid Nov 13, 2024
8832684
executor: support left outer semi join for hash join v2 (#57053)
wshwsh12 Nov 13, 2024
aa9b6f4
util: add tiflash wait time in execution summary (#57058)
Nov 13, 2024
2d9f829
planner: let exists subquery return signed int type (#57277)
windtalker Nov 13, 2024
0dcd8e7
planner: evict all cached plans after disabling instance plan cache (…
qw4990 Nov 13, 2024
66cb425
statistics: fix bad lower bound and upper bound when to dump stats in…
hawkingrei Nov 13, 2024
97e7b5c
planner: reserve the OFFSET when outer join's inner side is unique (#…
winoros Nov 13, 2024
f27b3c2
executor: improve retrieval logic in hugeMemTableRetriever and add te…
tangenta Nov 14, 2024
ae27921
executor: constrain test cases that check for a hardcoded row count (…
henrybw Nov 14, 2024
50dcee7
ddl: introduce a new system variable to control the `store-write-bwli…
CbcWestwolf Nov 14, 2024
aeed37b
planner: gen hash64-equals for memTable/UnionAll/PartitionUnionAll (#…
AilinKid Nov 14, 2024
2cfb3be
planner: gen hash64 equals for logical projection/selection/show/sort…
AilinKid Nov 14, 2024
a3c07e0
planner: add a new metrics to record the Instance Plan Cache clone du…
qw4990 Nov 14, 2024
ed2d749
planner: Fix predicate simplification panic caused by zero-argument e…
dash12653 Nov 14, 2024
851af35
planner: set the minimum Instance Plan Cache Mem Size to 100MiB (#57382)
qw4990 Nov 15, 2024
afacd10
ddl: support modify the related reorg config by SQL (#57336)
fzzf678 Nov 15, 2024
3c70a28
planner: fix RANGE COLUMNS partition prune gives wrong result with sp…
Defined2014 Nov 15, 2024
a5a82d7
build(deps): bump golang.org/x/net from 0.30.0 to 0.31.0 (#57400)
dependabot[bot] Nov 15, 2024
2ca497e
*: upgrade golangci-linter (#57411)
hawkingrei Nov 15, 2024
4fded5f
planner: fix cannot binding for deleting multi table with alias (#57255)
hawkingrei Nov 15, 2024
9b26569
util: fix codec for negative zero (#57343)
wshwsh12 Nov 15, 2024
938ed70
ddl: Corrected index management during REORGANIZE PARTITION (#56786)
mjonss Nov 15, 2024
4272a56
expression: fix incorrect copy of flag in truncate function (#55284)
tuziemon Nov 15, 2024
89804dd
planner: add hash64 equals for tableDual/topN/unionScan/Window. (#57412)
AilinKid Nov 15, 2024
ef8cac2
session: defer general log after query is executed to make sure txnSt…
b6g Nov 15, 2024
239943f
session, store: remove sessionBootstrapped (#57243)
xhebox Nov 16, 2024
4a6bf46
*: fix the issue when union all cast('xxxx' as char) and a integer (#…
zimulala Nov 16, 2024
0a9a231
lightning: sample once parquet file (#56205)
zeminzhou Nov 18, 2024
a9c5201
planner: address collation ambiguity in scalar function construction …
dash12653 Nov 18, 2024
3232160
test: fix unstable case (#57433)
joccau Nov 18, 2024
a22b842
planner: print dynamic prune info in explain for connection (#57415)
Defined2014 Nov 18, 2024
043f833
executor: fix data race in nullmap in hash join v2 (#57451)
windtalker Nov 18, 2024
b37a837
infoschema: Move status and variables to P_S (#56569)
dveeden Nov 18, 2024
afe8a09
ttl: cancel the hearbeat timeout job after disable the TTL (#57452)
YangKeao Nov 18, 2024
9512c96
expression: round the frac part for `ParseTimeFromFloat64` (#56340)
gengliqi Nov 18, 2024
140525d
executor: fix inl_hash_join hang when abnormal exit (#57383)
wshwsh12 Nov 18, 2024
06ac7b1
lightning: log error cause when SampleFileCompressRatio fail (#57455)
zhangyangyu Nov 18, 2024
e731f1b
distsql,util: Add executor open close time into its total consume tim…
Nov 18, 2024
4f047be
br: restore checksum shouldn't rely on backup checksum (#56712)
Tristan1900 Nov 18, 2024
d86a366
variables: Increase default innodb_buffer_pool_size to 4GiB (#57460)
sunxiaoguang Nov 18, 2024
058d947
table: fix wrong handle comparation in index double write (#57418)
joechenrh Nov 19, 2024
66c7571
planner: fix the duplicate offset when pushing topn down across outer…
winoros Nov 19, 2024
153d5aa
planner: Do not allow variables in create view (#57474)
mjonss Nov 19, 2024
8382fdb
pkg/session: add binding operations to CRUCIAL OPERATION log (#57483)
jackysp Nov 19, 2024
cfa52d0
statistics: add a priority queue API (#57385)
Rustin170506 Nov 19, 2024
0e3efb6
Lightning: Skip apply ioworkers when seek(0, io.SeekCurrent) (#57454)
xuanyu66 Nov 19, 2024
ac90676
executor: Use uint32 as element length in hash join v2 (#57458)
windtalker Nov 19, 2024
1b6d01b
expression,json: make the behavior of `JSON_VALID` consistent (#57496)
YangKeao Nov 19, 2024
975ad1f
docs: fix parameter format in tidb_http_api.md (#56665)
shawn0915 Nov 19, 2024
ecca340
lightning: fix id too large after parallel import (#57398)
D3Hunter Nov 19, 2024
35d5739
expression: Fix optimizer panic in evaluate expr with null (#57403)
windtalker Nov 19, 2024
60bbccb
expression: fix wrong flen from baseFunctionClass (#56607)
joechenrh Nov 19, 2024
d0150c0
planner: ONLY_FULL_GROUP_BY sql_mode was not working with VIEWs (#57473)
mjonss Nov 19, 2024
4e47aad
br: fix br work with global index (#57493)
Defined2014 Nov 19, 2024
91beef4
*: disable insert null to not-null column for single-row insertion in…
joechenrh Nov 19, 2024
50b5cd2
executor: update log filter to avoid flaky test (#57511)
hawkingrei Nov 19, 2024
9530fdc
Restore: implement restorer for compacted SST/Snapshot/log files (#57…
3pointer Nov 20, 2024
5450000
executor, session: fix ExecStmt.OriginText to use the actual original…
b6g Nov 20, 2024
5116115
executor: fix data race in hash join v2 spill (#57519)
windtalker Nov 20, 2024
14e99ea
Revert "util: fix codec for negative zero (#57343)" (#57525)
wshwsh12 Nov 20, 2024
c5e9cc7
planner: Fix the issue where any(nil) is not considered equal to nil …
King-Dylan Nov 20, 2024
ea7ec59
external_storage: implement locking (#56597)
YuJuncen Nov 20, 2024
ad5ca42
planner: fix `count(*)` return wrong value for `information_schema.ta…
joechenrh Nov 20, 2024
38104f4
expression: fix tikv crash when `bool like cast(bit as char)` (#57484)
lcwangchao Nov 20, 2024
31c068c
dxf: reduce indent of scheduleTask and some log refactor (#57501)
D3Hunter Nov 20, 2024
d8c9190
statstics: fix wrong stats health metrics (#57555)
hawkingrei Nov 20, 2024
84fe10a
Dumpling: GCS always retry. (#57513)
OliverS929 Nov 20, 2024
e234164
*: bump client-go with some regression tests (#57282)
you06 Nov 20, 2024
4442d49
executor: fix nil pointer for query on tikv_region_status with non-ex…
tiancaiamao Nov 20, 2024
865b283
*: Truncate partition with global index improvement (#55831)
mjonss Nov 20, 2024
db4d19b
expression: fix the arg verification for json functions. (#54145)
YangKeao Nov 20, 2024
2ce67f8
owner: fix unlimited log print "meet lease not found error, refresh s…
tiancaiamao Nov 20, 2024
2ff351d
executor: fix incorrect result produced by addtime() or subtime() fun…
xzhangxian1008 Nov 20, 2024
c068b39
executor, store: Plumb the query max execution time to timebox the PD…
HaoW30 Nov 20, 2024
91c14a4
br/stream: Added Version Check for `Load`ing Migrations. (#57541)
YuJuncen Nov 21, 2024
e4e707d
dxf: refactor failpoints in scheduler (#57566)
D3Hunter Nov 21, 2024
1c059a1
planner: set enumsetasint if original value is int in point get (#57550)
xhebox Nov 21, 2024
c091dba
gomod: remove my patch dependency (#57571)
lance6716 Nov 21, 2024
7e5ff9e
executor: fix admin check return wrong result for index containing ge…
joechenrh Nov 21, 2024
5e6b818
ddl: add COMMENTS column to DDL jobs and enhance job reorg meta handl…
tangenta Nov 21, 2024
9ae814b
*: update tipb and remove unused fields (#57424)
overvenus Nov 21, 2024
f347b9d
store/copr: remove useless ticker for performance (#57558)
crazycs520 Nov 21, 2024
039b386
lightning: remove some `NOT NULL` constraints on lightning table (#57…
joechenrh Nov 21, 2024
8d8cfbb
executor: Fix unstable test TestTiKVClientReadTimeout (#57579)
MyonKeminta Nov 21, 2024
9ef5b59
runaway: only check statements with a non-empty plan digest (#57582)
nolouch Nov 21, 2024
bfec732
statsitstics: avoid sync load column which is skiped type to analyze …
hawkingrei Nov 21, 2024
fe1b9ed
br: redact secret strings when logging arguments (#57593)
kennytm Nov 21, 2024
2f8d1f6
ddl: dynamically adjusting the concurrency and batch size of reorgani…
fzzf678 Nov 21, 2024
d42a36d
statistics: use infoschema api to get table info (#57574)
hawkingrei Nov 21, 2024
eb871f8
lightning: add PK to internal tables (#57480)
lance6716 Nov 22, 2024
bd20f66
partition: set `AddRecordOpt.isUpdate = true` when update partition r…
Defined2014 Nov 22, 2024
14ff938
planner/core: fix a wrong privilege check for CTE & UPDATE statement …
bb7133 Nov 22, 2024
bc03ed8
planner, runtime_filter: Remove redundant logs whose meaning can be d…
elsa0520 Nov 22, 2024
6e22b8c
dumpling, lightning: add partition table test cases (#57619)
Defined2014 Nov 22, 2024
eda6cc3
expression: remove redundant warnings when executing SUBTIME (#57508)
zimulala Nov 25, 2024
21b7889
build(deps): bump github.com/mgechev/revive from 1.5.0 to 1.5.1 (#57621)
dependabot[bot] Nov 25, 2024
1015cc0
executor, session: store utf8 string in `sessionctx` (#57645)
joechenrh Nov 25, 2024
cc22c0b
backup: reset timeout on store level (#55526)
3pointer Nov 25, 2024
9ff83eb
dxf: systable and scheduler change for modify task at runtime (#57557)
D3Hunter Nov 25, 2024
702c4f2
statistics: handle deleted tables correctly in the PQ (#57649)
Rustin170506 Nov 25, 2024
2152e65
meta/autoid: show auto_inc allocator only when cache = 1 (#55616)
tangenta Nov 25, 2024
06c6e40
expression: fix wrong calculation order of `radians` (#57672)
gengliqi Nov 25, 2024
ec8b81b
ddl: dynamically adjusting the max write speed of reorganization job …
fzzf678 Nov 25, 2024
cfa16a3
planner: fix the wrong schema.Clone implementation (#57632)
qw4990 Nov 26, 2024
e4f47d3
executor: fix hang in hash agg when exceeding memory limit leads to p…
xzhangxian1008 Nov 26, 2024
5d9c6e1
*: Truncate partition failpoint tests (#56029)
mjonss Nov 26, 2024
d02d48a
dxf: refactor failpoints on task executor (#57680)
D3Hunter Nov 26, 2024
b11d034
ttl: enlarge the max split of TTL job (#57701)
lcwangchao Nov 26, 2024
3016889
bazel: remove experimental_remote_merkle_tree_cache (#57717)
hawkingrei Nov 26, 2024
5ac4f69
tables: fix insert into hash partition get an unexpected overflow err…
Defined2014 Nov 26, 2024
138386c
br: refactor br cli backoff logic (#54644)
Tristan1900 Nov 26, 2024
2125737
*: Reorganize partition one extra state (#56974)
mjonss Nov 26, 2024
dcc9dcc
ddl: `tidb_scatter_region` variable supports setting value in both up…
River2000i Nov 26, 2024
feb34ec
planner: fix that vector index output empty result when pk is non-int…
winoros Nov 27, 2024
0374ae2
planner: provide a system view information_schema.tidb_plan_cache to …
qw4990 Nov 27, 2024
9cc4a20
br: refactor test to use wait checkpoint method (#57612)
Tristan1900 Nov 27, 2024
d0de86b
statistics: rightly deal with timout when to send sync load (#57712)
hawkingrei Nov 27, 2024
ba791ab
ttl: fix the issue that `DROP TABLE` / `ALTER TABLE` will keep job ru…
YangKeao Nov 27, 2024
996ce64
owner: refactor logger and err handling in campaign loop (#57705)
D3Hunter Nov 27, 2024
0471081
test: fix the data race in restore test (#57762)
3pointer Nov 27, 2024
09d12f0
executor: fix query infoschema.tables table_schema/table_name with fi…
tiancaiamao Nov 27, 2024
b2e829c
planner: hide read-write fields of PlanCacheValue for safety (#57759)
qw4990 Nov 27, 2024
ca395fa
lightning: add precheck that PD and TiDB must belongs to same cluster…
lance6716 Nov 27, 2024
2b03447
statistics: fix some problem related to stats async load (#57723)
winoros Nov 27, 2024
924784a
ttl: make the default value of `ttl_job_interval` to `24h` (#57758)
lcwangchao Nov 28, 2024
fb7e32f
planner: provide a system view `cluster_tidb_plan_cache` to allow use…
qw4990 Nov 28, 2024
37a1f42
executor,distsql,util: distinguish walltime from sum of walltime in e…
Nov 28, 2024
70f5218
planner: add test about logicalProjection and logicalSelection hash64…
AilinKid Nov 28, 2024
0215550
ttl: set a result for timeout scan task during shrinking scan worker …
YangKeao Nov 28, 2024
c9a8f1f
planner: fix the issue that Update on partition tables can't hit the …
qw4990 Nov 28, 2024
b449b3b
statistics: add more tests for init stats (#57664)
hawkingrei Nov 28, 2024
ce5ec3f
*: support cancel query like 'select * from information_schema.tables…
tiancaiamao Nov 28, 2024
b114219
ddl: fix ExistsTableRow and add tests for skip reorg checks (#57778)
tangenta Nov 28, 2024
7518a29
br: prompt k8s.io/api version (#57791)
BornChanger Nov 28, 2024
65e233e
br/stream: added `--delete-compactions` to log truncate (#56761)
YuJuncen Nov 28, 2024
2950725
dxf: fix flaky scope test (#57796)
D3Hunter Nov 28, 2024
cc59ab0
ddl: Fixed partition interval from DayMinute to just Minute. (#57738)
mjonss Nov 28, 2024
b6025b9
*: Reorg partition fix delete ranges and handling non-clustered table…
mjonss Nov 29, 2024
b2f29ee
ddl: Fixed partitioning a non-partitioned table with placement rules …
mjonss Nov 29, 2024
5753106
ddl: check context done in isReorgRunnable function (#57813)
tangenta Nov 29, 2024
cbf34b0
planner: do not set AnnQuery when TopK = MaxUint32 (#57307)
Lloyd-Pottiger Nov 29, 2024
f6ff412
planner: fix max-one-row will hash equals to each other because of no…
AilinKid Nov 29, 2024
b9eeab4
test: stabilize TestGetTargetNodeCpuCnt (#57823)
tangenta Nov 29, 2024
aac2061
planner: fix flaky test TestInstancePlanCacheConcurrencySysbench (#57…
qw4990 Nov 29, 2024
0e8c23f
planner: add test for hash64 and equals for logical show and sort ope…
AilinKid Nov 29, 2024
d3936a2
lightning: set the 17th bit of the txn_source to indicate the write s…
3AceShowHand Nov 29, 2024
56e705c
metrics: remove the filled colors (#57838)
jackysp Nov 29, 2024
05a2f4d
build(deps): bump github.com/golangci/golangci-lint from 1.62.0 to 1.…
dependabot[bot] Nov 29, 2024
ec288d9
*: avoid notify privilege update for all users (#57042)
tiancaiamao Nov 29, 2024
308c2b8
planner: fix wrong comment (#57839)
hawkingrei Dec 1, 2024
6d74071
planner: use TableInfo.DBID to locate schema (#57785)
tangenta Dec 2, 2024
6434ca4
ttl,test: fix the datarace in `TestShrinkScanWorkerTimeout` (#57883)
YangKeao Dec 2, 2024
b5b8109
BR: support restore compacted logs with checkpoint (#57532)
3pointer Dec 2, 2024
d43ba5c
planner: move pattern logic to cascades pkg (#57864)
AilinKid Dec 2, 2024
018ab99
ttl: fix the issue that the task is not cancelled after transfering o…
YangKeao Dec 2, 2024
6aac3e8
*: add context.Context to ensureActiveUser() (#57351)
tiancaiamao Dec 2, 2024
e631ba8
dxf: handle modifying task concurrency in scheduler (#57673)
D3Hunter Dec 2, 2024
453428d
gomod: specify go patch-level version (#57897)
lance6716 Dec 2, 2024
5e73267
statistics: do not record historical stats meta if the table is locke…
Rustin170506 Dec 2, 2024
cb408e0
workload repo: Merge Workload Repository into master (#57148)
wddevries Dec 3, 2024
8fe0618
br: fix insert gc failed due to slow schema reload (#57742)
Tristan1900 Dec 3, 2024
f585f5d
statistics: avoid stats meta full load after table analysis (#57756)
Rustin170506 Dec 3, 2024
66661bd
planner: make group expression inherit logical plan & refine rule int…
AilinKid Dec 3, 2024
ec5b26e
planner: add test for logical topN and logical tableDual's hash64 and…
AilinKid Dec 3, 2024
b273109
statistics: gc the statistics correctly after drop the database (#57309)
Rustin170506 Dec 3, 2024
5598c11
br: fix flaky test `TestConcurrentLock` (#57591)
YuJuncen Dec 3, 2024
4fbe02a
dumpling: use I_S to get table list for TiDB and add database to WHER…
lance6716 Dec 3, 2024
e0019df
sessionctx: fix null max value to leading wrong warning (#57898)
hawkingrei Dec 3, 2024
edba7e9
planner: Add left side operator info for hash join execution summary …
Dec 3, 2024
3002c1c
dxf: refactor error handling in task executor (#57837)
D3Hunter Dec 3, 2024
d021648
statistics: correct behavior of non-lite InitStats and stats sync loa…
winoros Dec 3, 2024
9812d85
*: activate txn for query on infoschema tables (#57937)
tiancaiamao Dec 3, 2024
8eebb2d
executor: support semi join (#57658)
xzhangxian1008 Dec 4, 2024
282430e
*: update go 1.23.4 (#57957)
hawkingrei Dec 4, 2024
a0a7cef
executor: Enlarge the timeout for fetching TiFlash system tables (#57…
JaySon-Huang Dec 4, 2024
0392cdd
ttl: fix the issue that one task losing heartbeat will block other ta…
YangKeao Dec 4, 2024
c5d9908
executor: fix flaky test TestUnionIssue (#57972)
joechenrh Dec 4, 2024
6c39a81
ddl: handle context done after sending DDL jobs (#57945)
tangenta Dec 4, 2024
b4c719a
meta/autoid: make step variable atomic to fix data race tests (#57976)
tiancaiamao Dec 4, 2024
da965d1
statistics: move JSON* to statistics/util (#57950)
winoros Dec 4, 2024
12b9421
*: avoid unlock of unlocked mutex panic on TableDeltaMap (#57799)
tiancaiamao Dec 5, 2024
a4278e0
keyspace: support API V2 mock store (#57865)
ystaticy Dec 5, 2024
30069c5
parser: add traffic capture/replay statements in the parser (#57808)
djshow832 Dec 5, 2024
5a25eea
statistics: rename subscriber and handle drop schema event (#58009)
Rustin170506 Dec 5, 2024
f0070f5
executor: reuse chunk in hash join v2 during restoring (#56936)
xzhangxian1008 Dec 5, 2024
821563f
planner: handle panic when loading bindings at startup (#58017)
qw4990 Dec 5, 2024
098213a
lightning, ddl: set TS to engineMeta after ResetEngineSkipAllocTS (#5…
lance6716 Dec 5, 2024
bb9096c
ttl: reschedule task to other instances when shrinking worker (#57703)
lcwangchao Dec 5, 2024
8c88823
stmtsummary: implement tidb_statements_stats, a cumulative version of…
henrybw Dec 6, 2024
5de1105
statistics: lite init used wrong value to build table stats ver (#58021)
winoros Dec 6, 2024
1521bf7
statistics: right deal with error for reading stats from storage (#58…
hawkingrei Dec 6, 2024
56c07d0
executor: optimize executor runtime stats by avoid unnecessary clone …
crazycs520 Dec 8, 2024
53cecc1
executor, planner: send traffic requests to tiproxy (#58006)
djshow832 Dec 9, 2024
71e70af
dxf: merge loops in Run and RunStep of task executor (#57944)
D3Hunter Dec 9, 2024
243e9c6
build(deps): bump golang.org/x/tools from 0.27.0 to 0.28.0 (#58041)
dependabot[bot] Dec 9, 2024
cdfdb8a
planner: Use/force to apply prefer range scan (#56928)
terry1purcell Dec 9, 2024
6b17068
planner: fix incorrectly using the schema for plan cache (#57964)
wjhuang2016 Dec 9, 2024
0ffac36
domain,infoschema: make infoschema activity block GC safepoint advanc…
tiancaiamao Dec 9, 2024
d6b313f
planner: correct the vector index tests (#58039)
Rustin170506 Dec 9, 2024
b416484
compacted restore: fix the wrong initial configrations (#58050)
3pointer Dec 10, 2024
9eddc07
statistics: copy stats when to update it for avoiding data race (#58106)
hawkingrei Dec 10, 2024
0082d58
domain: reduce the chance of "Information schema is out of date" erro…
tiancaiamao Dec 10, 2024
93295c2
ddl: simplify TestMDLPreparePlanCacheExecuteInsert (#58113)
D3Hunter Dec 10, 2024
0f869f4
executor: allocate handles on demand when build table tasks (#57940)
zyguan Dec 10, 2024
68ac9ec
ddl: rename failpoint to better reflect what it does (#58115)
D3Hunter Dec 10, 2024
3adc71c
dxf: merge OnFinished into RunSubtask (#58098)
D3Hunter Dec 10, 2024
1321c81
keyspace: add keyspace etcd namespace UT (#58081)
ystaticy Dec 10, 2024
7e5096e
statistics: refactor common functions into subscriber (#58127)
Rustin170506 Dec 10, 2024
2a1f646
planner: fix index range intersection for in-list and other predicate…
ghazalfamilyusa Dec 10, 2024
d3add7c
statstics: trigger evict by the timer (#58027)
hawkingrei Dec 11, 2024
7e34efa
lightning: allow long dbname printed in 1 line for error summary (#58…
lance6716 Dec 11, 2024
4ec2b23
statistics: fix flaky test TestSyncLoadOnObjectWhichCanNotFoundInStor…
hawkingrei Dec 11, 2024
7ac73e9
ttl: fix the timezone issue and panic in the caller of `getSession` (…
YangKeao Dec 11, 2024
ba55be5
planner: complete the memo/group-expression/group logic and add test …
AilinKid Dec 11, 2024
d5b6b69
statistics: GCStats should not wrongly remove record of an existing t…
winoros Dec 11, 2024
a3d60bc
executor: Optimize statement summary performance by avoiding heap mem…
crazycs520 Dec 11, 2024
e54cc5b
metrics/grafana: display instance for information v2 cache size grafa…
tiancaiamao Dec 12, 2024
96103da
tests: disable later materialize in some tiflash tests (#58189)
windtalker Dec 12, 2024
4e6468d
expression: refactor names from VectorHelper to VSInfo (#58192)
breezewish Dec 12, 2024
1d53c85
planner: add some e2e test cases for outer join elimination (#58070)
qw4990 Dec 12, 2024
3ccd7e6
executor: skip execution when build query for VIEW in I_S (#58203)
lance6716 Dec 12, 2024
e62963d
logutil/dxf: add a error verbose logger, and use it in DXF (#58185)
D3Hunter Dec 12, 2024
70b0f4e
build(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0
dependabot[bot] Dec 12, 2024
3ab67a7
update
hawkingrei Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ run:ci --color=yes

build --announce_rc
build --experimental_guard_against_concurrent_changes
build --experimental_remote_merkle_tree_cache
build --java_language_version=17
build --java_runtime_version=17
build --tool_java_language_version=17
Expand Down
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1
1 change: 1 addition & 0 deletions .github/workflows/integration-test-dumpling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- 8.0.22
- 8.0.26
- 8.0.37
- 8.4.3
runs-on: ubuntu-latest
timeout-minutes: 15
services:
Expand Down
581 changes: 284 additions & 297 deletions DEPS.bzl

Large diffs are not rendered by default.

67 changes: 18 additions & 49 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ mock_lightning: mockgen

.PHONY: gen_mock
gen_mock: mockgen
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/framework/taskexecutor TaskTable,Pool,TaskExecutor,Extension > pkg/disttask/framework/mock/task_executor_mock.go
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/framework/taskexecutor TaskTable,TaskExecutor,Extension > pkg/disttask/framework/mock/task_executor_mock.go
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/framework/scheduler Scheduler,CleanUpRoutine,TaskManager > pkg/disttask/framework/mock/scheduler_mock.go
tools/bin/mockgen -destination pkg/disttask/framework/scheduler/mock/scheduler_mock.go -package mock github.com/pingcap/tidb/pkg/disttask/framework/scheduler Extension
tools/bin/mockgen -embed -package mockexecute github.com/pingcap/tidb/pkg/disttask/framework/taskexecutor/execute StepExecutor > pkg/disttask/framework/mock/execute/execute_mock.go
Expand Down Expand Up @@ -530,7 +530,7 @@ br_bins:

.PHONY: data_parsers
data_parsers: tools/bin/vfsgendev pkg/lightning/mydump/parser_generated.go lightning_web
PATH="$(GOPATH)/bin":"$(PATH)":"$(TOOLS)" protoc -I. -I"$(GOPATH)/src" pkg/lightning/checkpoints/checkpointspb/file_checkpoints.proto --gogofaster_out=.
PATH="$(GOPATH)/bin":"$(PATH)":"$(TOOLS)" protoc -I. -I"$(GOMODCACHE)" pkg/lightning/checkpoints/checkpointspb/file_checkpoints.proto --gogofaster_out=.
tools/bin/vfsgendev -source='"github.com/pingcap/tidb/lightning/pkg/web".Res' && mv res_vfsdata.go lightning/pkg/web/

.PHONY: build_dumpling
Expand Down Expand Up @@ -678,121 +678,90 @@ bazel_golangcilinter:

.PHONY: bazel_brietest
bazel_brietest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
-- //tests/realtikvtest/brietest/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_pessimistictest
bazel_pessimistictest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/pessimistictest/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_sessiontest
bazel_sessiontest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/sessiontest/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_statisticstest
bazel_statisticstest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/statisticstest/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_txntest
bazel_txntest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/txntest/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_addindextest
bazel_addindextest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/addindextest/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_addindextest1
bazel_addindextest1: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/addindextest1/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_addindextest2
bazel_addindextest2: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/addindextest2/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_addindextest3
bazel_addindextest3: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/addindextest3/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_addindextest4
bazel_addindextest4: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/addindextest4/...
./build/jenkins_collect_coverage.sh

# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always
.PHONY: bazel_importintotest
bazel_importintotest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/importintotest/...
./build/jenkins_collect_coverage.sh

# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always
.PHONY: bazel_importintotest2
bazel_importintotest2: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/importintotest2/...
./build/jenkins_collect_coverage.sh

# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always
.PHONY: bazel_importintotest3
bazel_importintotest3: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/importintotest3/...
./build/jenkins_collect_coverage.sh

# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always
.PHONY: bazel_importintotest4
bazel_importintotest4: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/importintotest4/...
./build/jenkins_collect_coverage.sh

# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always
.PHONY: bazel_pipelineddmltest
bazel_pipelineddmltest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/pipelineddmltest/...
./build/jenkins_collect_coverage.sh

# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always
.PHONY: bazel_flashbacktest
bazel_flashbacktest: failpoint-enable bazel_ci_simple_prepare
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
--@io_bazel_rules_go//go/config:cover_format=go_cover \
bazel $(BAZEL_GLOBAL_CONFIG) test $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \
-- //tests/realtikvtest/flashbacktest/...
./build/jenkins_collect_coverage.sh

.PHONY: bazel_lint
bazel_lint: bazel_prepare
Expand Down
3 changes: 2 additions & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

PROJECT=tidb
GOPATH ?= $(shell go env GOPATH)
GOMODCACHE ?= $(shell go env GOMODCACHE)
P=8

# Ensure GOPATH is set before running build process.
Expand Down Expand Up @@ -132,4 +133,4 @@ ifneq ("$(CI)", "")
endif
BAZEL_INSTRUMENTATION_FILTER := --instrument_test_targets --instrumentation_filter=//pkg/...,//br/...,//dumpling/...

NOGO_FLAG=true
NOGO_FLAG=true
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ go_download_sdk(
"https://mirrors.aliyun.com/golang/{}",
"https://dl.google.com/go/{}",
],
version = "1.23.2",
version = "1.23.4",
)

go_register_toolchains(
Expand Down
10 changes: 9 additions & 1 deletion br/cmd/br/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ import (

func runBackupCommand(command *cobra.Command, cmdName string) error {
cfg := task.BackupConfig{Config: task.Config{LogProgress: HasLogFile()}}
if err := cfg.ParseFromFlags(command.Flags()); err != nil {
if err := cfg.ParseFromFlags(command.Flags(), false); err != nil {
command.SilenceUsage = false
return errors.Trace(err)
}
overrideDefaultBackupConfigIfNeeded(&cfg, command)

if err := metricsutil.RegisterMetricsForBR(cfg.PD, cfg.KeyspaceName); err != nil {
return errors.Trace(err)
Expand Down Expand Up @@ -216,3 +217,10 @@ func newTxnBackupCommand() *cobra.Command {
task.DefineTxnBackupFlags(command)
return command
}

func overrideDefaultBackupConfigIfNeeded(config *task.BackupConfig, cmd *cobra.Command) {
// override only if flag not set by user
if !cmd.Flags().Changed(task.FlagChecksum) {
config.Checksum = false
}
}
6 changes: 4 additions & 2 deletions br/cmd/br/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ func timestampLogFileName() string {
return filepath.Join(os.TempDir(), time.Now().Format("br.log.2006-01-02T15.04.05Z0700"))
}

// AddFlags adds flags to the given cmd.
func AddFlags(cmd *cobra.Command) {
// DefineCommonFlags defines the common flags for all BR cmd operation.
func DefineCommonFlags(cmd *cobra.Command) {
cmd.Version = build.Info()
cmd.Flags().BoolP(flagVersion, flagVersionShort, false, "Display version information about BR")
cmd.SetVersionTemplate("{{printf \"%s\" .Version}}\n")
Expand All @@ -103,6 +103,8 @@ func AddFlags(cmd *cobra.Command) {
"Set whether to redact sensitive info in log")
cmd.PersistentFlags().String(FlagStatusAddr, "",
"Set the HTTP listening address for the status report service. Set to empty string to disable")

// defines BR task common flags, this is shared by cmd and sql(brie)
task.DefineCommonFlags(cmd.PersistentFlags())

cmd.PersistentFlags().StringP(FlagSlowLogFile, "", "",
Expand Down
18 changes: 17 additions & 1 deletion br/cmd/br/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,19 @@ func decodeBackupMetaCommand() *cobra.Command {

fieldName, _ := cmd.Flags().GetString("field")
if fieldName == "" {
if err := metautil.DecodeMetaFile(ctx, s, &cfg.CipherInfo, backupMeta.FileIndex); err != nil {
return errors.Trace(err)
}
if err := metautil.DecodeMetaFile(ctx, s, &cfg.CipherInfo, backupMeta.RawRangeIndex); err != nil {
return errors.Trace(err)
}
if err := metautil.DecodeMetaFile(ctx, s, &cfg.CipherInfo, backupMeta.SchemaIndex); err != nil {
return errors.Trace(err)
}
if err := metautil.DecodeStatsFile(ctx, s, &cfg.CipherInfo, backupMeta.Schemas); err != nil {
return errors.Trace(err)
}

// No field flag, write backupmeta to external storage in JSON format.
backupMetaJSON, err := utils.MarshalBackupMeta(backupMeta)
if err != nil {
Expand All @@ -294,7 +307,7 @@ func decodeBackupMetaCommand() *cobra.Command {
if err != nil {
return errors.Trace(err)
}
cmd.Printf("backupmeta decoded at %s\n", path.Join(cfg.Storage, metautil.MetaJSONFile))
cmd.Printf("backupmeta decoded at %s\n", path.Join(s.URI(), metautil.MetaJSONFile))
return nil
}

Expand Down Expand Up @@ -353,6 +366,9 @@ func encodeBackupMetaCommand() *cobra.Command {
if err != nil {
return errors.Trace(err)
}
if backupMetaJSON.Version == metautil.MetaV2 {
return errors.Errorf("encoding backupmeta v2 is unimplemented")
}
backupMeta, err := proto.Marshal(backupMetaJSON)
if err != nil {
return errors.Trace(err)
Expand Down
2 changes: 1 addition & 1 deletion br/cmd/br/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
TraverseChildren: true,
SilenceUsage: true,
}
AddFlags(rootCmd)
DefineCommonFlags(rootCmd)
SetDefaultContext(ctx)
rootCmd.AddCommand(
NewDebugCommand(),
Expand Down
2 changes: 1 addition & 1 deletion br/cmd/br/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

func runRestoreCommand(command *cobra.Command, cmdName string) error {
cfg := task.RestoreConfig{Config: task.Config{LogProgress: HasLogFile()}}
if err := cfg.ParseFromFlags(command.Flags()); err != nil {
if err := cfg.ParseFromFlags(command.Flags(), false); err != nil {
command.SilenceUsage = false
return errors.Trace(err)
}
Expand Down
2 changes: 1 addition & 1 deletion br/pkg/backup/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ go_library(
"//pkg/meta",
"//pkg/meta/model",
"//pkg/statistics/handle",
"//pkg/statistics/handle/util",
"//pkg/statistics/util",
"//pkg/util",
"//pkg/util/table-filter",
"@com_github_google_btree//:btree",
Expand Down
12 changes: 7 additions & 5 deletions br/pkg/backup/prepare_snap/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,17 @@ func (c CliEnv) LoadRegionsInKeyRange(ctx context.Context, startKey []byte, endK

type RetryAndSplitRequestEnv struct {
Env
GetBackoffer func() utils.Backoffer
GetBackoffStrategy func() utils.BackoffStrategy
}

func (r RetryAndSplitRequestEnv) ConnectToStore(ctx context.Context, storeID uint64) (PrepareClient, error) {
rs := utils.ConstantBackoff(10 * time.Second)
bo := utils.Backoffer(rs)
if r.GetBackoffer != nil {
bo = r.GetBackoffer()
var bo utils.BackoffStrategy
if r.GetBackoffStrategy != nil {
bo = r.GetBackoffStrategy()
} else {
bo = utils.ConstantBackoff(10 * time.Second)
}

cli, err := utils.WithRetryV2(ctx, bo, func(ctx context.Context) (PrepareClient, error) {
cli, err := r.Env.ConnectToStore(ctx, storeID)
if err != nil {
Expand Down
5 changes: 2 additions & 3 deletions br/pkg/backup/prepare_snap/prepare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,8 @@ func TestRetryEnv(t *testing.T) {
return nil
}
ms := RetryAndSplitRequestEnv{Env: tms}
ms.GetBackoffer = func() utils.Backoffer {
o := utils.InitialRetryState(2, 0, 0)
return &o
ms.GetBackoffStrategy = func() utils.BackoffStrategy {
return utils.NewBackoffRetryAllErrorStrategy(2, 0, 0)
}
prep := New(ms)
ctx := context.Background()
Expand Down
6 changes: 3 additions & 3 deletions br/pkg/backup/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/pingcap/tidb/pkg/kv"
"github.com/pingcap/tidb/pkg/meta/model"
"github.com/pingcap/tidb/pkg/statistics/handle"
"github.com/pingcap/tidb/pkg/statistics/handle/util"
"github.com/pingcap/tidb/pkg/statistics/util"
tidbutil "github.com/pingcap/tidb/pkg/util"
kvutil "github.com/tikv/client-go/v2/util"
"go.uber.org/zap"
Expand Down Expand Up @@ -106,7 +106,7 @@ func (ss *Schemas) BackupSchemas(
}

var checksum *checkpoint.ChecksumItem
var exists bool = false
var exists = false
if ss.checkpointChecksum != nil && schema.tableInfo != nil {
checksum, exists = ss.checkpointChecksum[schema.tableInfo.ID]
}
Expand Down Expand Up @@ -145,7 +145,7 @@ func (ss *Schemas) BackupSchemas(
zap.Uint64("Crc64Xor", schema.crc64xor),
zap.Uint64("TotalKvs", schema.totalKvs),
zap.Uint64("TotalBytes", schema.totalBytes),
zap.Duration("calculate-take", calculateCost))
zap.Duration("TimeTaken", calculateCost))
}
}
if statsHandle != nil {
Expand Down
Loading
Loading