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

*: Update client-go and verify all read ts #58995

Closed
wants to merge 798 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
798 commits
Select commit Hold shift + click to select a range
c157388
ebs br: new snapshot tagging (#50548) (#50569)
ti-chi-bot Jan 18, 2024
ba6a381
meta/autoid: make autoid client ResetConn operation concurrency-safe …
ti-chi-bot Jan 21, 2024
254e430
bindinfo: extract the table hint from the union statement (#50070) (#…
ti-chi-bot Jan 23, 2024
c641ca4
planner: do not remove the first row func if it is a constant | tidb-…
ti-chi-bot Jan 23, 2024
d472a7d
planner: return an error when using prepared protocol with select-int…
ti-chi-bot Jan 23, 2024
0ecd046
server: fix decode issue for prefetch point plan index keys (#50037) …
ti-chi-bot Jan 23, 2024
9fa98b3
planner: use TxnCtx.InfoSchema to prevent schema inconsistency (#4994…
ti-chi-bot Jan 23, 2024
95464e7
*: bypass order by clause for fast point get plan (#50204) (#50364)
ti-chi-bot Jan 24, 2024
7caa282
lightning: remove alter table lock (#50074) (#50116)
ti-chi-bot Jan 24, 2024
e4129cf
planner: fix show stats_bucket couldn't decode index boundary out (#4…
ti-chi-bot Jan 24, 2024
15855e0
planner: fix index merge reader may lost enforced prop sort when tabl…
ti-chi-bot Jan 24, 2024
a880be2
parser: support hints in 'REPLACE INTO' statement (#50007) (#50678)
ti-chi-bot Jan 24, 2024
50f8e89
planner: fix range partition prune with an unsigned column (#50113) (…
ti-chi-bot Jan 24, 2024
03a599b
expression: fix the const prop over ENUM type (#50208) (#50271)
ti-chi-bot Jan 24, 2024
c12144a
br: add more retry strategy: s3.ReadFile: body reader (#50541) (#50706)
ti-chi-bot Jan 24, 2024
7ee6226
log backup: reset store grpc connection when encounter error (#50539)…
ti-chi-bot Jan 24, 2024
3e693f8
local backend: fix sst skip ingest when multiIngest=false and exhaust…
D3Hunter Jan 24, 2024
1e7b160
restore: correct new collation when "--check-requirements=false" (#49…
ti-chi-bot Jan 24, 2024
9795d98
session: allow end aborted txn via binary protocal (#49384) (#50004)
ti-chi-bot Jan 25, 2024
be11952
domain: record latest schema version after syncer restarted (#49929) …
ti-chi-bot Jan 25, 2024
97a9bf8
*: memory is not allocated first if the user does not use some inform…
ti-chi-bot Jan 25, 2024
6f6386a
Lightning: increase backoff if split fails (#49518) (#50164)
ti-chi-bot Jan 25, 2024
6fc4f4d
planner: fix agg push down rule mistake order by item inside agg func…
ti-chi-bot Jan 25, 2024
44f39e9
br: fix br integration test 6.5.8 (#50740)
Leavrth Jan 26, 2024
2ec7e32
domain, statistics: periodically update stats healthy distribution (#…
ti-chi-bot Feb 5, 2024
0bca811
*: avoid thundering herd problem when timeout the stats sync load (#5…
ti-chi-bot Feb 13, 2024
0e1f055
metrics: tidb_statistics_auto_analyze_total should be int (#51050) (#…
ti-chi-bot Feb 13, 2024
f4dabb9
expression: fix `reverse` function on `bit type column` (#50146) (#51…
ti-chi-bot Feb 19, 2024
b19d950
*: fix AnalyzePartitionMergeConcurrency unavailable (#47589) (#51140)
ti-chi-bot Feb 19, 2024
24213f2
*: fix wrong result when to concurrency merge global stats (#48852) …
ti-chi-bot Feb 19, 2024
a63aa6e
ddl: fill in original default for extra writable columns in batch ins…
ti-chi-bot Feb 20, 2024
f2f0a76
statistics: add more test for tidb_merge_partition_stats_concurrency …
ti-chi-bot Feb 20, 2024
6390fd6
planner: fix dropping non-ScalarFunction when extractCol for memtable…
ti-chi-bot Feb 20, 2024
72ae08b
executor: fix negative consumedbyte for hashRowcontainer (#50843) (#5…
ti-chi-bot Feb 20, 2024
532100f
br: refactor error handle mechanism to tolerant unexpect kv errors. (…
ti-chi-bot Feb 21, 2024
1fa7b21
*: recalculate the threshold of gctuner when ServerMemoryLimit is upd…
ti-chi-bot Feb 21, 2024
885e22f
ebs br: handle tag limit exceed issue (#50941) (#51250)
ti-chi-bot Feb 22, 2024
debaf17
executor: fix CTE goroutine leak when exceeds mem quota (#50828) (#51…
ti-chi-bot Feb 23, 2024
61be008
ebs br: rename a tag for EBS snapshots (#50870) (#50897)
ti-chi-bot Feb 26, 2024
11c815c
table: fix issue of get default value from column when column doesn't…
ti-chi-bot Feb 28, 2024
4f3c415
*: fix parallel apply wrong result (#51414) (#51429)
ti-chi-bot Mar 1, 2024
8cdacb7
br, pkg/storage: enable objPrefix for gcs and azure (#51485)
CharlesCheung96 Mar 6, 2024
d8dd439
server: store the updated labels into etcd (#51451) (#51566)
ti-chi-bot Mar 7, 2024
fe48f7d
*: force_init_stats doesn't block http api's startup (#50853) (#51038)
ti-chi-bot Mar 8, 2024
3807bda
server: start to listen after init stats complete (#51472) (#51511)
ti-chi-bot Mar 10, 2024
2b8a5fa
br/streamhelper: fix panic while removing task (#50869) (#51054)
ti-chi-bot Mar 12, 2024
8e3641d
executor: Fix the panic in `approx_percentile` function (#49644) (#49…
ti-chi-bot Mar 14, 2024
9ad6f42
domain: avoid panic in the init stats breaking the loadStatsWorker (#…
ti-chi-bot Mar 17, 2024
183b430
log_backup: remove checking store number (#51886) (#51961)
ti-chi-bot Mar 20, 2024
aad1b61
*: update client-go for release-6.5 (#52008)
gengliqi Mar 22, 2024
ea8ec37
operator: print callstack when exiting before preparing done (#51371)…
ti-chi-bot Mar 23, 2024
b44ddb7
log_backup: added more info for slow regions in log backup advancer (…
ti-chi-bot Mar 25, 2024
4d3fe3d
ddl: do not unset involving schema on EntryTooLarge error (#51963) (#…
ti-chi-bot Mar 25, 2024
fdbd093
planner: skip MDL when analyzing table (#50928) (#51836)
ti-chi-bot Mar 25, 2024
cb2c200
storage: local storage tolerates broken symlink when Walk (#51170) (#…
ti-chi-bot Mar 25, 2024
4fd9e85
planner: fix the issue about simplify outer join to inner join (#5175…
ti-chi-bot Mar 25, 2024
b366852
prepare_snap: establish connection to all stores before pausing admin…
ti-chi-bot Mar 25, 2024
a3bc52c
external: remove old compatibility check of BR (#50534) (#51339)
ti-chi-bot Mar 25, 2024
78dfdf2
operator: make gRPC connections synced (#52051) (#52081)
ti-chi-bot Mar 26, 2024
1f6e613
statistics: skip auto-analyze when it is executed outside the availab…
ti-chi-bot Mar 26, 2024
9220d94
planner: fix the incorrect judgment of correlated column in the havin…
ti-chi-bot Mar 26, 2024
137dc2f
expression: set a collation according to the arguments for `ifnull` i…
ti-chi-bot Mar 27, 2024
93359d2
server: fix incorrect setting of health status (#51595) (#51632)
ti-chi-bot Mar 27, 2024
6b8952b
lightning: retry for WaitN error caused by store-write-bwlimit (#5142…
ti-chi-bot Mar 27, 2024
be44e23
ddl: fix the wrong logic to assert whether table has foreign key (#51…
ti-chi-bot Mar 27, 2024
630f58b
br: reduce workload in unit test (#51493) (#51519)
ti-chi-bot Mar 28, 2024
efd2fab
br: merge range in lightweight when snapshot restore (#50648) (#50944)
ti-chi-bot Mar 28, 2024
1577799
planner: remove the limitation that predicates can't be pushed throug…
ti-chi-bot Mar 28, 2024
e1776e2
pkg/util: fix panic caused by logging grpc err (#52179) (#52185)
ti-chi-bot Mar 28, 2024
087d8c8
json: don't resize slice to get extra zero when the length is unspeci…
ti-chi-bot Mar 28, 2024
9f59322
br: Enable checkpoint advancer to pause tasks lagged too large (#5144…
ti-chi-bot Mar 28, 2024
0cc48c8
br: Change default check point lag limit (#51906) (#52115)
ti-chi-bot Mar 28, 2024
a824267
planner: stop pushing Agg down through Projection if substitution fai…
ti-chi-bot Mar 28, 2024
33c50c3
infoschema: don't display tables in MemDB when query `TIDB_HOT_REGION…
ti-chi-bot Mar 28, 2024
77d5317
pkg/autoid_service: add lock to make API thread-safe (#50820) (#52059)
ti-chi-bot Mar 28, 2024
cc3e77d
br: stop log when full restore failed (#51578) (#52104)
ti-chi-bot Mar 29, 2024
d6cd6b1
ddl: allow `StatePublic` in `createTableWithForeignKeys` for BR (#518…
ti-chi-bot Mar 29, 2024
e52ef6f
importinto/lightning: fix incorrect datatime value for zero date (#51…
ti-chi-bot Mar 29, 2024
30a9b5d
executor: Fix compact for VARCHAR PK (#51812) (#51817)
ti-chi-bot Mar 29, 2024
65dbe03
log backup: fix the issue that paused service safepoint not removed (…
ti-chi-bot Mar 29, 2024
feabbc9
planner: apply rule_partition_pruning when optimizing CTE under stati…
ti-chi-bot Apr 1, 2024
6db72f2
executor: fix tidb crash when shuffleExec quit unexpectedly (#48828) …
ti-chi-bot Apr 1, 2024
d33f39f
executor: check schema when build table reader executor (#50425) (#50…
ti-chi-bot Apr 1, 2024
902758d
server: ignore Preprocess error for the `prefetchPointPlanKeys` optim…
ti-chi-bot Apr 1, 2024
6dff2a8
metric: fix panic when status.record-db-label enable (#41692) (#50858)
ti-chi-bot Apr 1, 2024
b997cf3
br: rebase auto random id if the table is common handle (#52256) (#52…
ti-chi-bot Apr 1, 2024
e4108d2
br: clean integration test code (#52298)
Leavrth Apr 2, 2024
9815b45
lightning: skip CREATE DATABASE when downstream exists, and return er…
ti-chi-bot Apr 2, 2024
caab24a
topsql, pprof: use hex string but not binary sql/plan digest in gorou…
ti-chi-bot Apr 15, 2024
dc60697
br/operator: fix stuck when terminating (#52264) (#52361)
ti-chi-bot Apr 17, 2024
7357987
operator: make an infinity retry for connecting to store (#52177) (#5…
ti-chi-bot Apr 17, 2024
ddc6543
executor: Fix index join hash produces redundant rows for left outer …
ti-chi-bot Apr 28, 2024
727a2c7
*: modify the printing of column default expression in `SHOW CREATE T…
ti-chi-bot Apr 29, 2024
9075922
br/operator: fix adapt env for snapshot backup stuck when encountered…
ti-chi-bot May 6, 2024
fe6837a
br/pdutils: retry when encountered dns error (#53005)
YuJuncen May 6, 2024
7d1fc94
br: fix checkpoint cannot advance after pause->stop->start (#53091) (…
ti-chi-bot May 10, 2024
389b0c1
executor: Fix push downed topN won't replace correlated column proble…
ti-chi-bot May 10, 2024
95e4dd9
copr: update client-go to fix #40926 (#53171)
windtalker May 10, 2024
335e834
tablecodec: fix the issue that decoding an index value might panic (#…
ti-chi-bot May 13, 2024
e98aba5
expression: wrong result of timestampadd(month,1,date '2024-01-31') (…
ti-chi-bot May 22, 2024
b02af31
store: remove stores that have no region before balance (#52787)
xzhangxian1008 May 27, 2024
db2ebb9
metrics: fix wrong value in the sync load QPS (#53559) (#53569)
ti-chi-bot May 27, 2024
4399d4a
infoschema: fix issue of information schema cache miss cause by schem…
ti-chi-bot May 28, 2024
d9c5bf6
expression: fix wrong result when convert float to unsigned (#53590) …
ti-chi-bot May 28, 2024
4afee51
executor: add memory tracker for memtableRetriever (#51455) (#53706)
ti-chi-bot May 31, 2024
0086f44
statstics,ddl: fix FK table forgets to send CreateTable event (#53654…
ti-chi-bot May 31, 2024
947bb04
*: fix oom in the infoSchema.TableByName (#52220) (#52821)
ti-chi-bot May 31, 2024
66c457f
planner: fix wrong behavior for = all() (#52801) (#53255)
ti-chi-bot Jun 3, 2024
87b4085
config: must set line terminator when use strict-format (#53444) (#53…
ti-chi-bot Jun 3, 2024
cf18333
executor: remove the retry for analyze (#52634) (#53702)
ti-chi-bot Jun 3, 2024
18fcc2f
br: Fail backup if any snapshots failed (#53038) (#53113)
ti-chi-bot Jun 3, 2024
42669ad
lightning: fix insert err after import for AUTO_ID_CACHE=1 and SHARD_…
ti-chi-bot Jun 4, 2024
e1067d1
*: fix 'Duplicate entry' error when @@auto_increment_increment and @@…
ti-chi-bot Jun 4, 2024
b789f60
meta,ddl: fix duplicate entry error when insert after drop and recove…
ti-chi-bot Jun 4, 2024
682eb5f
autoid_service: fix potential autoid decrease when leader change or c…
ti-chi-bot Jun 4, 2024
607c846
*: upgrade `x/exp/slices` version (#53785)
D3Hunter Jun 4, 2024
042fa27
br: handle region leader miss (#52822) (#52859)
ti-chi-bot Jun 4, 2024
1f6f6df
ranger: handle longlong overflow properly (#52365) (#53495)
ti-chi-bot Jun 4, 2024
10cdc46
infoschema: load auto id related changes for multi-schema-change diff…
ti-chi-bot Jun 4, 2024
21791f4
statistics: fix wrong singleflight implementation for stats' syncload…
ti-chi-bot Jun 4, 2024
ca9f24a
planner: fix privilege for the view in the CTE and wrong error handl…
ti-chi-bot Jun 5, 2024
7fa81e3
statistics: fix wrong NDV in the global stats when to disable async-m…
ti-chi-bot Jun 5, 2024
8e70343
util/ranger: Handle boundary value correctly in ranger to avoid incor…
ti-chi-bot Jun 5, 2024
296329e
lightning: Don't log "received task config" in server mode (#52336) (…
ti-chi-bot Jun 5, 2024
f4a3c5e
statistics: upgrade stats timeout checkpoint after it timeouts (#5242…
ti-chi-bot Jun 5, 2024
51ae335
ranger: handle float/integers overflow properly (#53501) (#53521)
ti-chi-bot Jun 5, 2024
60e6e0b
ddl: make sure put key into ETCD monotonously (#52381) (#52481)
ti-chi-bot Jun 5, 2024
19731df
ddl: fix unexpected delete ETCD value (#52504) (#53738)
ti-chi-bot Jun 5, 2024
18c7f08
ddl: fix rename index for expression indexes (#51984) (#53737)
ti-chi-bot Jun 5, 2024
55bccae
statistics: add upper bound of retry for sync load (#52658) (#52816)
ti-chi-bot Jun 5, 2024
739ff55
statistics: support global singleflight for sync load (#52796) (#53838)
ti-chi-bot Jun 6, 2024
250b46e
statistics: fix wrong behavior for primary key' non-lite init stats (…
ti-chi-bot Jun 6, 2024
ed5986b
log_backup: fix panic during advancer owner transfer (#52671) (#53703)
ti-chi-bot Jun 6, 2024
4a4b42e
expression: fail `ColumnSubstituteImpl` if creating function returns …
ti-chi-bot Jun 6, 2024
83bef61
planner: fix panic error when subquery + always true predicate in whe…
ti-chi-bot Jun 6, 2024
460a563
br: fix flaky test (#52573) (#52667)
ti-chi-bot Jun 6, 2024
702c864
*: check delete unique key's handle to handle corner case (#52975) (#…
ti-chi-bot Jun 6, 2024
7380dfd
br: remove timeout context to scan regions when import sst files (#53…
ti-chi-bot Jun 6, 2024
36b47f6
dumpling: check table-list types before dumping (#53683) (#53773)
ti-chi-bot Jun 6, 2024
8a3d36c
lightning: fix some grafana panel json (#43356) (#53708)
ti-chi-bot Jun 6, 2024
9993669
planner: support query block alias for `leading` hint (#44700) (#53758)
ti-chi-bot Jun 7, 2024
69d56df
planner: fix the wrong result caused by `year_col cmp out-of-range-ui…
ti-chi-bot Jun 7, 2024
eb27609
br: remove evict slow store scheduler (#50776) (#53878)
ti-chi-bot Jun 7, 2024
5722930
planner: make `var_samp` can be used as a window function (#53130) (#…
ti-chi-bot Jun 8, 2024
b4f3a10
planner: resolve panic when the update lists contain complex subquery…
ti-chi-bot Jun 9, 2024
a03d354
planner: column pruning should use a shallow copy slice (#53237) (#53…
ti-chi-bot Jun 9, 2024
52021ec
planner: add projections to keep join keys as `col=col` (#52989) (#5…
ti-chi-bot Jun 9, 2024
be01bfb
parser: ignore schema name if WithoutSchemaNameFlag is set when resto…
ti-chi-bot Jun 10, 2024
c761650
planner: UPDATE's select plan's output col IDs should be stable (#532…
ti-chi-bot Jun 10, 2024
5806632
expression: fix the wrong behavior of `conv` function (#53681) (#53814)
ti-chi-bot Jun 10, 2024
236b1b7
planner: stop pushing TopN down through Projection if it has undeterm…
ti-chi-bot Jun 10, 2024
956e83d
executor: sync deletable columns to binlog when remove record (#53617…
ti-chi-bot Jun 11, 2024
e379c7f
hint: avoid duplicate hints in QBHintHandler (#53921) (#53934)
ti-chi-bot Jun 11, 2024
60b127f
infoschema: fix the issue txn state size is not defined (#53801) (#53…
ti-chi-bot Jun 11, 2024
88380f9
ddl: get latest old table ID before replace view (#53720) (#53774)
ti-chi-bot Jun 11, 2024
34687d9
planner: fix wrong empty projection (#53235) (#53238)
ti-chi-bot Jun 11, 2024
366ed7d
br: fix Log Backup unexpected paused when adding a already long-runni…
ti-chi-bot Jun 12, 2024
681b43f
*: bump client-go to fix #46602 (#53918)
zyguan Jun 12, 2024
2306250
*: add metadata lock when using the plan cache (#51897) (#52956)
ti-chi-bot Jun 12, 2024
1864261
planner: return an error when meeting unexpected operator under Union…
ti-chi-bot Jun 14, 2024
abf2386
planner: prevent pushing Projection with virtual columns down to Unio…
ti-chi-bot Jun 14, 2024
392b9d4
br: fix backoffer can't handle multierrs (#54077)
RidRisR Jun 18, 2024
9184366
br: retry more time to get pd leader (#54059)
Leavrth Jun 18, 2024
ff2feb6
planner: fix the issue that bindings with query-level hint can not ta…
ti-chi-bot Jun 18, 2024
4ffd88c
privilege: fix `auth_socket` bug, should only allow os user name to l…
ti-chi-bot Jun 20, 2024
718cb69
executor: setup mem tracker for CTE correctly (#54208) (#54320)
ti-chi-bot Jul 1, 2024
2c71fbb
gc: delete TiFlash placement rules in batch (#54071) (#54409)
ti-chi-bot Jul 10, 2024
f838d62
*: support memTracker.detach for HashJoin, Apply and IndexLookUp in C…
ti-chi-bot Jul 19, 2024
e07d004
executor: fix cte mem tracker failpoint condition again (#54523) (#54…
ti-chi-bot Jul 22, 2024
2345a86
expression: fix infinity loop in timestampadd (#54970)
ti-chi-bot Aug 1, 2024
05a1ad3
server: fix connection double close (#53690)
jackysp Aug 5, 2024
cc91206
lightning: adapt new behaviour that "write" may return epoch error (#…
lance6716 Aug 6, 2024
3ea0661
variable: fix data race in `GetTemporaryTable` (#55338) (#55339)
ti-chi-bot Aug 12, 2024
aa09937
makefile: update dumpling build options (#41165) (#55350)
ti-chi-bot Aug 12, 2024
ce5bdfe
domain: splite handleDDLEvent into new thread (#53734) (#55275)
ti-chi-bot Aug 12, 2024
fc70528
util: use runtime.Version() to get Go version (#53619) (#55536)
ti-chi-bot Aug 20, 2024
d36d14a
statistics: record last gc ts to avoid huge read on stats table (#461…
ti-chi-bot Aug 25, 2024
0e7b9d6
util: Resolve RuntimeStatsColl potential unlock mutex (#55118) (#55648)
ti-chi-bot Aug 26, 2024
70313bb
copIterator: return context error to avoid return incorrect result on…
ti-chi-bot Aug 26, 2024
e17bd5b
*: isolate more variables for `runWithSystemSession` (#54791) (#54937)
ti-chi-bot Aug 26, 2024
4ed49a0
executor: `runWithSystemSession` also copy snapshot status (#54989) (…
ti-chi-bot Aug 26, 2024
6610dd4
executor: fix query panic on INFORMATION_SCHEMA.CLUSTER_SLOW_QUERY wi…
ti-chi-bot Aug 26, 2024
05e577a
planer: fix invalid pointer caused by a recursive CTE query (#54450) …
ti-chi-bot Aug 27, 2024
01cf04d
store/copr: partly revert pr/35975, do it correctly this time (#55196…
ti-chi-bot Aug 27, 2024
5cbe32a
executor: add test for issue 55500 and it has been fixed by #53489 (#…
ti-chi-bot Aug 27, 2024
355d6da
ddl, partition: fix create strictly increasing range partition (#5483…
ti-chi-bot Aug 27, 2024
a1c8a89
expression: correct the erroneous scalar function equivalence check (…
ti-chi-bot Aug 27, 2024
14a1cb0
executor: do not track membuffer's memory in executor (#53985) (#55627)
ti-chi-bot Aug 27, 2024
d5c96a0
util, schematracker: mock sctx turn on EnableListTablePartition (#547…
ti-chi-bot Aug 28, 2024
6ea9184
executor: fix data race in the buildMemTableReader (#43431) (#55674)
ti-chi-bot Aug 28, 2024
8607475
br: fix get snapshot response pointer deref panic (#54510) (#54712)
ti-chi-bot Aug 28, 2024
16d9931
br: use tikv volume count for ebs backup progress (#54556) (#54754)
ti-chi-bot Aug 28, 2024
6634e52
executor: reset groupCount when `Close` is called in streamagg execut…
ti-chi-bot Aug 28, 2024
8740303
ebs br: fail backup when no tikv store (#53783) (#53963)
ti-chi-bot Aug 28, 2024
71e300b
*: update tikv/client-go for fix rpc client panic cause by concurrent…
ti-chi-bot Aug 29, 2024
b53c06e
executor, table: fix potienal data race (#55737)
Defined2014 Aug 29, 2024
ebf59d6
ddl: record get owner TS and compare it before runReorgJob quit (#550…
ti-chi-bot Aug 29, 2024
c54b3e2
planner: push necessary predicates without virtual column down throug…
ti-chi-bot Aug 29, 2024
232c348
executor: clear the disk files after sort spilling when exit unexpect…
wshwsh12 Aug 30, 2024
2253874
owners: update after Rustin170506 changed GitHub ID (#55760) (#55766)
ti-chi-bot Aug 30, 2024
9714f46
planner: add protection to avoid setting `tot_col_size` to negative n…
ti-chi-bot Aug 30, 2024
7759463
lightning: fix SET SESSION on connection pool (#54927) (#55771)
ti-chi-bot Aug 30, 2024
1211fb2
ddl: improve priority of suppressErrorTooLongKeyKey for DM (#55164) (…
ti-chi-bot Aug 30, 2024
7b27199
br: fix checkpoint path (#55266) (#55296)
ti-chi-bot Aug 30, 2024
006254b
br: resolve stuck in backup (#54736) (#55657)
ti-chi-bot Sep 2, 2024
1203ea2
executor: fix index_hash_join hang when context canceled (#54855) (#5…
ti-chi-bot Sep 2, 2024
a08c685
pkg/executor,tests: reset params in the PipelineWindow.Open (#54709) …
ti-chi-bot Sep 2, 2024
b9febb7
planner: fix the issue that cannot find column if using question mark…
ti-chi-bot Sep 3, 2024
6338796
ddl: set proper default flen of decimal(0) columns (#54028) (#55695)
ti-chi-bot Sep 3, 2024
fa1fa8e
statistics: merge global stats even if some partition stats are missi…
ti-chi-bot Sep 3, 2024
062b861
executor: Optimize slow log parsing's splitByColon function (#54630) …
ti-chi-bot Sep 3, 2024
b06e1a9
planner: fix CTE hang or wrong result when multiple Apply is used (#5…
ti-chi-bot Sep 4, 2024
1a305b3
backup: use history iterator to scan ddl jobs (#54100) (#54933)
ti-chi-bot Sep 4, 2024
ec5398b
Incremental restore: fix the issue that backfill data is not covered …
ti-chi-bot Sep 4, 2024
cd2bc64
br: fix backoffer can't handle multierrs (#54084) (#54109)
ti-chi-bot Sep 4, 2024
0ad9365
planner: fix the issue of reusing wrong point-plan for "select ... fo…
qw4990 Sep 5, 2024
390215e
br: redact ak/sk in logging (#55622) (#55779)
ti-chi-bot Sep 5, 2024
973b215
core: fix missing update on nested generated column (#55829) (#55852)
ti-chi-bot Sep 5, 2024
f184e16
infoschema: fix `sub_part` in `information_schema.statistics` table (…
ti-chi-bot Sep 6, 2024
be82a7d
planner: fix incorrect maintenance of `handleColHelper` for recursive…
ti-chi-bot Sep 6, 2024
52888b2
OWNERS: Auto Sync OWNERS files from community membership (#55485) (#5…
ti-chi-bot Sep 9, 2024
58bb25d
executor: fix data race in `IndexNestedLoopHashJoin` (#55824) (#55909)
ti-chi-bot Sep 9, 2024
ef4a74a
statstics: increase the synchronization offset size when to sync stat…
ti-chi-bot Sep 9, 2024
b334993
br/ebs: added log for EBS snapshot creation, increase backoff time fo…
ti-chi-bot Sep 9, 2024
996098e
*: fix a bug that update statement uses point get and update plan wit…
ti-chi-bot Sep 10, 2024
60c5fe4
*: bump client-go to fix correctness issue of membuffer snapshot read…
ti-chi-bot Sep 10, 2024
305cf42
expression: fix the return type of coalesce when arg type is DATE (#5…
xzhangxian1008 Sep 10, 2024
1097ba8
session: set EnableWindowFunction for all SessionVars (#55991) (#55992)
winoros Sep 10, 2024
337f4a0
ddl, parser: make generated column and expression index same as MySQL…
ti-chi-bot Sep 12, 2024
f7c80a7
planner: add nil check when handling empty charset in `setUnionFlen` …
ti-chi-bot Sep 12, 2024
af6aa91
statistics: fix the error that init stats might got failure when deco…
ti-chi-bot Sep 12, 2024
349f534
executor: handle the corner case that temp index is not exist but the…
ti-chi-bot Sep 17, 2024
3f20732
br: add new timestamp for download sst rewrite rule (#56063)
Leavrth Sep 18, 2024
116ffee
*: fix warning message when to meet strconv.ErrSyntax (#43358) (#56032)
ti-chi-bot Sep 23, 2024
64d4d21
GC : fix issue of delete range could not be executed again if the cle…
ystaticy Nov 1, 2024
bbf8742
br: cancel context when timer stop (#56948) (#57007)
ti-chi-bot Nov 4, 2024
869bae9
statistics: wrong NDV when to merge global stats with index (#57269)
hawkingrei Nov 11, 2024
ae4703a
executor: fix data inconsistency after `load data ... replace into ..…
ti-chi-bot Nov 13, 2024
5f4110d
ddl: use latest PD address to register lightning (#48687) (#55936)
ti-chi-bot Nov 25, 2024
d7b3aae
planner: fix cannot binding for deleting multi table with alias (#57…
ti-chi-bot Nov 28, 2024
858ba74
*: bump client-go with some regression tests (#57282) (#57763)
ti-chi-bot Dec 5, 2024
0f32738
executor: Fix the parse problematic slow log panic issue due to empty…
ti-chi-bot Dec 16, 2024
d97f0ee
lightning: fix data error summary table format (#58099)
lance6716 Dec 17, 2024
2675d9f
planner, CTE, view: Fix default inline CTE which contains orderby/lim…
ti-chi-bot Dec 23, 2024
e83dbdd
binlog: fix show pump/drainer status (#44764) (#44993)
ti-chi-bot Dec 24, 2024
1bdef59
domain: change some stats log level as WARN (#58316) (#58551)
ti-chi-bot Dec 27, 2024
896c0c1
executor: fix issue that query slow_query table return wrong result (…
ti-chi-bot Jan 7, 2025
7c3ca2e
planner: correct plan when scan tidb related cluster table with KeepO…
ti-chi-bot Jan 10, 2025
2ed1798
*: Use strict validation for stale read ts & flashback ts (#57050) (#…
ti-chi-bot Jan 16, 2025
eed6cc4
*: Update client-go and verify all read ts (#58054)
MyonKeminta Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
*: bump client-go with some regression tests (#57282) (#57763)
ref #55287, close #56837, ref #57338, close #57425
ti-chi-bot authored Dec 5, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 858ba74a09f38474a88d0b19675efbb34f033c49
4 changes: 2 additions & 2 deletions DEPS.bzl
Original file line number Diff line number Diff line change
@@ -3603,8 +3603,8 @@ def go_deps():
name = "com_github_tikv_client_go_v2",
build_file_proto_mode = "disable_global",
importpath = "github.com/tikv/client-go/v2",
sum = "h1:lKLA4jW6wj/A15+sb901WXvGd4xvdGuGDOndtyVTV/8=",
version = "v2.0.4-0.20240910032334-87841020c53e",
sum = "h1:0YcirnuxtXC9eQRb231im1M5w/n7JFuOo0IgE/K9ffM=",
version = "v2.0.4-0.20241125064444-5f59e4e34c62",
)
go_repository(
name = "com_github_tikv_pd_client",
2 changes: 1 addition & 1 deletion executor/adapter.go
Original file line number Diff line number Diff line change
@@ -593,7 +593,7 @@ func (a *ExecStmt) handleStmtForeignKeyTrigger(ctx context.Context, e Executor)
if stmtCtx.ForeignKeyTriggerCtx.HasFKCascades {
// If the ExecStmt has foreign key cascade to be executed, we need call `StmtCommit` to commit the ExecStmt itself
// change first.
// Since `UnionScanExec` use `SnapshotIter` and `SnapshotGetter` to read txn mem-buffer, if we don't do `StmtCommit`,
// Since `UnionScanExec` use `SnapshotIter` and `SnapshotGetter` to read txn mem-buffer, if we don't do `StmtCommit`,
// then the fk cascade executor can't read the mem-buffer changed by the ExecStmt.
a.Ctx.StmtCommit()
}
15 changes: 15 additions & 0 deletions executor/union_scan_test.go
Original file line number Diff line number Diff line change
@@ -595,6 +595,21 @@ func TestIssue36903(t *testing.T) {
tk.MustQuery("select pkey from t_vwvgdc where 0 <> 0 union select pkey from t_vwvgdc;").Sort().Check(testkit.Rows("15000", "228000"))
}

func TestSnapshotWithConcurrentWrite(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
tk.MustExec("create table t1 (id int auto_increment key, b int, index(b));")

tk.MustExec("begin")
tk.MustExec("insert into t1 (b) values (1),(2),(3),(4),(5),(6),(7),(8);")
for j := 0; j < 16; j++ {
tk.MustExec("insert into t1 (b) select /*+ use_index(t1, b) */ id from t1;")
}
tk.MustQuery("select count(1) from t1").Check(testkit.Rows("524288")) // 8 * 2^16 rows
tk.MustExec("rollback")
}

func BenchmarkUnionScanRead(b *testing.B) {
store := testkit.CreateMockStore(b)

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ require (
github.com/stretchr/testify v1.8.4
github.com/tdakkota/asciicheck v0.1.1
github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2
github.com/tikv/client-go/v2 v2.0.4-0.20240910032334-87841020c53e
github.com/tikv/client-go/v2 v2.0.4-0.20241125064444-5f59e4e34c62
github.com/tikv/pd/client v0.0.0-20230904040343-947701a32c05
github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144
github.com/twmb/murmur3 v1.1.3
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -948,8 +948,8 @@ github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpR
github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY=
github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2 h1:mbAskLJ0oJfDRtkanvQPiooDH8HvJ2FBh+iKT/OmiQQ=
github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2/go.mod h1:2PfKggNGDuadAa0LElHrByyrz4JPZ9fFx6Gs7nx7ZZU=
github.com/tikv/client-go/v2 v2.0.4-0.20240910032334-87841020c53e h1:lKLA4jW6wj/A15+sb901WXvGd4xvdGuGDOndtyVTV/8=
github.com/tikv/client-go/v2 v2.0.4-0.20240910032334-87841020c53e/go.mod h1:mmVCLP2OqWvQJPOIevQPZvGphzh/oq9vv8J5LDfpadQ=
github.com/tikv/client-go/v2 v2.0.4-0.20241125064444-5f59e4e34c62 h1:0YcirnuxtXC9eQRb231im1M5w/n7JFuOo0IgE/K9ffM=
github.com/tikv/client-go/v2 v2.0.4-0.20241125064444-5f59e4e34c62/go.mod h1:mmVCLP2OqWvQJPOIevQPZvGphzh/oq9vv8J5LDfpadQ=
github.com/tikv/pd/client v0.0.0-20230904040343-947701a32c05 h1:e4hLUKfgfPeJPZwOfU+/I/03G0sn6IZqVcbX/5o+hvM=
github.com/tikv/pd/client v0.0.0-20230904040343-947701a32c05/go.mod h1:MLIl+d2WbOF4A3U88WKtyXrQQW417wZDDvBcq2IW9bQ=
github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro=
26 changes: 26 additions & 0 deletions session/session_test/session_test.go
Original file line number Diff line number Diff line change
@@ -4259,3 +4259,29 @@ func TestMemBufferSnapshotRead(t *testing.T) {
tk.MustExec("set session tidb_max_chunk_size=default;")
tk.MustExec("set session tidb_index_join_batch_size = default")
}

func TestMemBufferCleanupMemoryLeak(t *testing.T) {
// Test if cleanup memory will cause a memory leak.
// When an in-txn statement fails, TiDB cleans up the mutations from this statement.
// If there's a memory leak, the memory usage could increase uncontrollably with retries.
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
tk.MustExec("create table t(a varchar(255) primary key)")
key1 := strings.Repeat("a", 255)
key2 := strings.Repeat("b", 255)
tk.MustExec(`set global tidb_mem_oom_action='cancel'`)
tk.MustExec("set session tidb_mem_quota_query=10240")
tk.MustExec("begin")
tk.MustExec("insert into t values(?)", key2)
for i := 0; i < 100; i++ {
// The insert statement will fail because of the duplicate key error.
err := tk.ExecToErr("insert into t values(?), (?)", key1, key2)
require.Error(t, err)
if strings.Contains(err.Error(), "Duplicate") {
continue
}
require.NoError(t, err)
}
tk.MustExec("commit")
}