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

*: merge master to feature/reorganize-partition #38613

Merged
merged 256 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
256 commits
Select commit Hold shift + click to select a range
50425f8
expression: corrected UNSINGED to UNSIGNED (#38462)
kolbe Oct 14, 2022
61eed5c
copr: increase extra concurrency for small coprocessor tasks (#37725)
you06 Oct 14, 2022
2b3b809
*: bazel jvm use zgc (#38171)
hawkingrei Oct 15, 2022
d25b507
linter: remove duplicate item in the revive and allrevive (#38468)
hawkingrei Oct 16, 2022
17fac8b
util: disable memory global tuner in ut to avoid leak (#38472)
wshwsh12 Oct 16, 2022
68305e9
lightning: specify collation when parquet value to string datum (#38391)
dsdashun Oct 17, 2022
287f5c9
bazel: only enable zgc on CI (#38495)
hawkingrei Oct 17, 2022
aa49a4c
dumpling: add recent speed to dump status (#38456)
okJiang Oct 17, 2022
5fa9da1
planner: make the meaning of displayed estimated row count consistent…
time-and-fate Oct 17, 2022
3e3028a
bazel: set servor more longer timeout (#38501)
hawkingrei Oct 17, 2022
dc22325
Isolation: Refactor resetting RCReadCheckTS internal flag (#38174)
TonsnakeLin Oct 17, 2022
c425b4e
bazel: update config (#38509)
hawkingrei Oct 18, 2022
5cb35c6
planner: fix unstable test TestDAGPlanBuilderUnionScan (#37895)
fzzf678 Oct 18, 2022
dd65832
*: add context for hook of getting/setting variables (#38379)
YangKeao Oct 18, 2022
d2295ca
unistore: remove repeated words in comment (#38521)
LittleFall Oct 18, 2022
e8d2659
statistics: support merge global topn in concurrency (#38358)
Yisaer Oct 18, 2022
bd014d6
*: add context for preprocess (#38360)
YangKeao Oct 18, 2022
22b85b9
statistics, planner: make the content in `HistColl.ColID2IdxIDs` stab…
time-and-fate Oct 18, 2022
d037637
*: don't use DSN to avoid some security problems (#38342)
lance6716 Oct 19, 2022
ff5fd4e
lightning: make default file router support compression (#38515)
lichunzhu Oct 19, 2022
9743a9a
txn: add table name in dup entry error message (#38243)
ekexium Oct 19, 2022
300d9e7
ddl: Support flashback schema (#37438)
erwadba Oct 19, 2022
7a9ed6f
planner: introduce some new hints for MPP plans (#38516)
qw4990 Oct 19, 2022
51e559c
bazel: update config and nogo (#38549)
hawkingrei Oct 19, 2022
298ce91
ddl: LINEAR HASH as HASH partitioned table (#38451)
mjonss Oct 19, 2022
e48f357
session: refactor non-transactional DML to make it ready for more DML…
ekexium Oct 19, 2022
93e0d36
extension: init tidb new extension framework (#38497)
lcwangchao Oct 19, 2022
5b0ae14
dump: fix dump large tables will timeout (#38540)
lance6716 Oct 20, 2022
17c7bcc
executor: fix the missing `Grantor` when querying `mysql`.`tables_pri…
CbcWestwolf Oct 20, 2022
c13a810
executor: fix TestIssue36903 which does not check result (#38565)
tiancaiamao Oct 20, 2022
4699c7d
*: support `ATTRIBUTE` and `COMMENT` in `CREATE USER` and `ALTER USER…
CbcWestwolf Oct 20, 2022
fb3c563
server, executor: allow showing session_states without TLS (#38529)
djshow832 Oct 20, 2022
7806b7c
planner: process over-optimization and skip plan-cache in some cases …
qw4990 Oct 20, 2022
4f5eafd
*: fix restore error typo (#38578)
xhebox Oct 20, 2022
431a9d8
planner: remove two useless hints `mpp_tidb_agg` and `mpp_scalar_agg`…
qw4990 Oct 20, 2022
c52b5a7
DDL: delete partition table tiflash replica progress from ETCD when t…
Oct 20, 2022
c1666d1
sessionctx: add tidb_gogc_tuner_threshold (#38432)
hawkingrei Oct 20, 2022
8d57ed9
bazel: remove useless config (#38581)
hawkingrei Oct 20, 2022
4346898
*: add foreign key cascade delete when execute delete statement (#38377)
crazycs520 Oct 21, 2022
873a3ea
json: add json_storage_free function (#38544)
YangKeao Oct 21, 2022
f65f4ba
planner: LRUPlanCache memory trace (#38069)
fzzf678 Oct 21, 2022
59886f5
sessionctx/variable: turn on range memory control by default (#38592)
xuyifangreeneyes Oct 21, 2022
9d606cd
parser, execution: support kill connection_id() (#37650)
hawkingrei Oct 21, 2022
85b53e1
*: fix docker script (#38602)
xhebox Oct 22, 2022
41518c9
executor: fix getting the more result when `select * from TIKV_REGION…
Defined2014 Oct 23, 2022
c9e47bd
Merge remote-tracking branch 'pingcap/master' into feature/reorganize…
mjonss Oct 23, 2022
ad0f7d2
extension: allow extension to custom functions (#38567)
lcwangchao Oct 24, 2022
fe09770
extension: support bootstrap for extension (#38589)
lcwangchao Oct 24, 2022
b80a39f
parser: supports `flashback table` and `flashback database` (#38546)
Defined2014 Oct 24, 2022
7596b03
variables, config: change tidb_auth_signing_cert from variables to co…
djshow832 Oct 24, 2022
64051f9
planner: avoid double scan for index prefix col is (not) null (#38555)
xuyifangreeneyes Oct 24, 2022
00169d2
inforschema: check the user permission before loading TIKV_REGION_STA…
CbcWestwolf Oct 25, 2022
44cd0b0
ddl, session: let ddl related tables controlled by `split-table` (#38…
Defined2014 Oct 25, 2022
06ed0e6
gctuner: remove limit for global memory limit (#38629)
hawkingrei Oct 25, 2022
70f3348
executor: support save partition stats in concurrency (#38239)
Yisaer Oct 25, 2022
b5e99ec
br/restore: fixed restore sys tables (#38547)
YuJuncen Oct 25, 2022
2cdfdf2
executor: fix issue of foreign key cascade delete very slow (#38633)
crazycs520 Oct 25, 2022
0c68f91
*: support foreign key on delete set null when execute delete stateme…
crazycs520 Oct 25, 2022
9d56ee9
log-backup: add progress bar for truncate (#36454)
YuJuncen Oct 26, 2022
ac0d36b
log-backup: set checkpoint-ts - 1 as safe-point-ts (#38249)
joccau Oct 26, 2022
6c55faf
planner: update the cost model ver2 (#38643)
qw4990 Oct 26, 2022
4bdd20b
*: support 2-phases flashback cluster (#38164)
Defined2014 Oct 26, 2022
0f6baa3
lightning: support extracting source/schema/table name to specific co…
lichunzhu Oct 26, 2022
e843278
executor: fix HashJoinExec panic of closed channel (#38576)
Qiaolin-Yu Oct 26, 2022
d27c706
util: reduce STW from ReadMemStats (#38632)
hawkingrei Oct 26, 2022
753e3da
extension: support extension to listen connection events (#38624)
lcwangchao Oct 26, 2022
cd531a4
*: support auto_random on composite clustered primary key (#38617)
tangenta Oct 27, 2022
ec93697
server: update dispatch behavior on mysql command SLEEP (#38645)
igxlin Oct 27, 2022
c4316fb
log-backup: support restart task after stop a log-backup task (#38381)
joccau Oct 27, 2022
1cf6e77
DDL: fix update progress of available table (#38677)
Oct 27, 2022
fb6a131
session: tidb_server_memory_limit inherits the value of server-memory…
wshwsh12 Oct 27, 2022
756c7b3
planner: update seek-factor in cost model ver2 (#38682)
qw4990 Oct 27, 2022
c3ecb04
executor: support record analzye merge job (#38672)
Yisaer Oct 27, 2022
bba321c
*: skip log timeout on maxExecutiontime as slow query for DDL stateme…
Benjamin2037 Oct 27, 2022
3b10b3c
planner: update some cost formulas of model ver2 (#38690)
qw4990 Oct 27, 2022
18698d1
extension: add more informations to extension context (#38693)
lcwangchao Oct 27, 2022
86dd999
session: set tidb_opt_range_max_size to 0 when upgrading to v6.4.0+ (…
xuyifangreeneyes Oct 28, 2022
9331f51
dumpling: fix consistency lock table when tables to dump is empty (#3…
lichunzhu Oct 28, 2022
95d177a
planner: add more tests for pushing IsNull to prefix index (#38697)
xuyifangreeneyes Oct 28, 2022
7806839
planner: revise isnullRejected check for `And` and `OR` (#38702)
Yisaer Oct 28, 2022
d760405
*: upgrade pingcap/log and uber-go/zap (#38696)
hawkingrei Oct 28, 2022
636a363
server: support dumpPartitionStats param for statsHandler (#38190)
Yisaer Oct 28, 2022
b9029f1
log-backup: using streaming to load metadata for preventing OOM (#38386)
YuJuncen Oct 28, 2022
e8e37b3
ddl: make "add foreign key" step in multiple schema versions (#38679)
crazycs520 Oct 28, 2022
40f059a
executor: add some memory tables to observe memory usage (#38452)
wshwsh12 Oct 28, 2022
1614991
cgroup: get right value when cgroup set max value (#38661)
hawkingrei Oct 28, 2022
925bc26
*: close resultset (#38704)
hawkingrei Oct 28, 2022
37349e1
planner: disable query-feedback thoroughly
qw4990 Oct 28, 2022
582d18a
executor: fix revoke result view bug (#38552)
wxbty Oct 28, 2022
275896c
br: fix broken integration test with tiflash (#38692)
3pointer Oct 28, 2022
e415cfa
DDL: use new PD API to get TiFlash replica table regionCount (#38571)
Oct 28, 2022
ba2e2c9
executor: show create table should distinguish between old and new fo…
crazycs520 Oct 28, 2022
6d6e9c4
*: show backfill type in `admin show ddl jobs` (#38733)
tangenta Oct 28, 2022
bc0b419
lightning: support custom file listing policy (#38599)
dsdashun Oct 30, 2022
312155a
lightning: Compress Reader/Writer supports reading/writing Snappy/Zst…
lyzx2001 Oct 31, 2022
7571d55
executor: fix inl_hash join performance regression because of Iterato…
guo-shaoge Oct 31, 2022
0e23da6
*: create a user using `tidb_auth_token` authentication (#38585)
CbcWestwolf Oct 31, 2022
f9b0e01
extension: allow the dynamic argument length of the extension's custo…
lcwangchao Oct 31, 2022
8355181
DDL: Remove TiFlash replica progress etcd dependency (#38564)
Oct 31, 2022
cff890a
*: add server ip in connection info (#38723)
lcwangchao Oct 31, 2022
65a318f
executor: add memory track in handle cop request (#38755)
crazycs520 Oct 31, 2022
a151383
util: fix panic cause by nil plan in memeory usage alarm (#38727)
mengxin9014 Oct 31, 2022
b7aae15
txn: fix false assertion error caused by loss of pessimistic locks (#…
ekexium Oct 31, 2022
37ed0ab
tests: added v1 test for iterators (#38765)
YuJuncen Oct 31, 2022
5a8fd6d
*: fix goleak when to use CreateMockStoreAndDomain (#38734)
hawkingrei Nov 1, 2022
08aa32e
*: update bazel config (#38745)
hawkingrei Nov 1, 2022
38e9aa0
*: support foreign key on update cascade and set null when execute up…
crazycs520 Nov 1, 2022
ecdc0f7
extension: add error and active roles info to `extension.ConnEventInf…
lcwangchao Nov 1, 2022
7e4d759
bazel: use --remote_download_minimal in ci (#38780)
hawkingrei Nov 1, 2022
cc2a038
sessionctx: fix TiDBGOGCTunerThreshold failing to ParseFloat (#38774)
hawkingrei Nov 1, 2022
be75669
dumpling: add progress to dumpling's status (#38625)
okJiang Nov 1, 2022
ba6ae45
*: add variables and support external timestamp read (#38276)
YangKeao Nov 1, 2022
a1de01d
executor: refine `EXPLAIN ANALYZE` info for `INSERT IGNORE` statement…
crazycs520 Nov 1, 2022
97add26
json: support array range selection and from last selection (#38584)
YangKeao Nov 1, 2022
863d352
ddl: support add foreign key constraint with auto-create index (#38763)
crazycs520 Nov 1, 2022
5b0be9a
nogo: enable filepermission during building and lint (#38801)
hawkingrei Nov 1, 2022
e245b84
planner: Add HashJoin<-Receiver specific physicalPlan column pruner (…
yibin87 Nov 2, 2022
ef95612
*: extend the semantic of mem-quota-query to mem-quota-session (#38423)
XuHuaiyu Nov 2, 2022
30f3130
planner: judge nil pointer before call MemoryUsage (#38764)
fzzf678 Nov 2, 2022
60b2aa6
sessionctx: support bytes format and percentage format for tidb_serve…
wshwsh12 Nov 2, 2022
acf1dcf
planner: supply Task memory usage and correct some accumulation (#38638)
fzzf678 Nov 2, 2022
5fa9e25
executor: support foreign key on update cascade in insert on duplicat…
crazycs520 Nov 2, 2022
49e7c70
executor: support checking killed during merge stats (#38708)
Yisaer Nov 2, 2022
1c5b837
planner: fix the cost model version in explain-tests (#38728)
qw4990 Nov 2, 2022
ba175c4
util: fix panic cause by concurrent map iteration and write in memory…
mengxin9014 Nov 2, 2022
a3d7420
planner: add monitor for prepared plan cache memory usage (#38507)
fzzf678 Nov 2, 2022
26ba9b6
executor: fix some bug for global memory control (#38798)
wshwsh12 Nov 2, 2022
722aa68
docs: Support global memory control design (#38121)
wshwsh12 Nov 2, 2022
17bba4d
ddl: correct the next key during adding index (#38804)
tangenta Nov 2, 2022
5cdfea6
*: bring back the 'make ut' (#38806)
tiancaiamao Nov 2, 2022
caa26a4
session: make min start ts reporter aware of internal session from `g…
tangenta Nov 2, 2022
17c6c48
executor: add CPU padding for chunk.Iterator4Slice (#38800)
guo-shaoge Nov 2, 2022
0f62d1f
planner: projection should not push the expr that is not fully substi…
winoros Nov 2, 2022
e6f020a
executor: fix issue of insert ignore with foreign key check (#38832)
crazycs520 Nov 2, 2022
64ca5d4
planner: udpate cost model ver2 and some related UT (#38833)
qw4990 Nov 2, 2022
07a0ef2
executor: refactor plan replayer exec (#38786)
Yisaer Nov 2, 2022
e1b2f7c
*: downgrade the dependencies (#38821)
okJiang Nov 2, 2022
8db7c3b
ci, Makefile: add make rule to check bazel prepare (#38818)
YangKeao Nov 2, 2022
adf1adf
br: calculate the global checkpoint-ts of log-back task. (#38815)
joccau Nov 3, 2022
0f5bcd2
bazel: upgrade bazel version to 5.3.2 (#38843)
shenqidebaozi Nov 3, 2022
7e5086c
br: add GetTSWithRetry func (#38663)
MoCuishle28 Nov 3, 2022
3baebdb
table/tables: fix unstable test TestCacheTableBasicReadAndWrite (#38820)
tiancaiamao Nov 3, 2022
cacd3c8
expression: unset the flen for string type builtin control (#38845)
tangenta Nov 3, 2022
99a5728
*: support switch auth when change user (#38830)
xhebox Nov 3, 2022
033b9ce
domain: unify replayer folder with oom and log (#38816)
Yisaer Nov 3, 2022
a65468e
planner: treat null as a different type compare to other types (#38840)
Reminiscent Nov 3, 2022
aafdf0e
util, executor: remove OOMAction after a query finishing (#38834)
XuHuaiyu Nov 3, 2022
510003d
planner: add switch for plan cache memory trace (#38824)
fzzf678 Nov 3, 2022
59bed2f
sessionctx: enable tidb_stats_load_sync_wait by default (#38841)
chrysan Nov 3, 2022
bd081f1
br: ebs volume snapshot backup and restore with flashback solution (#…
fengou1 Nov 3, 2022
4c75850
ddl: make test case TestCacheTableSizeLimit stable (#38822)
tiancaiamao Nov 3, 2022
5ee578c
planner, session: use SessionExtendedInfoSchema if snapshot isn't set…
wjhuang2016 Nov 3, 2022
bc7d0aa
variable: add global scope for tidb_opt_agg_push_down (#38868)
winoros Nov 3, 2022
fce4fda
sessionctx: fix tidb_gogc_tuner_threshold (#38851)
hawkingrei Nov 3, 2022
dd3bcee
*: support mysql compatible auto_increment, the server side changes (…
tiancaiamao Nov 3, 2022
c799b0f
*: disable global memory control by default (#38859)
wshwsh12 Nov 3, 2022
09f6295
ddl: fix issue of foreign key name too long (#38855)
crazycs520 Nov 3, 2022
4df8d85
metrics: update active connection promeQL and add metric: miss plan c…
Yui-Song Nov 3, 2022
74ac033
server: fix deadlock when call `killNonFlashbackConn` (#38872)
Defined2014 Nov 3, 2022
d7bd49a
session: support non-transactional insert statements (#38799)
you06 Nov 3, 2022
f9c7bbc
*: authentication using `tidb_auth_token` plugin (#38773)
CbcWestwolf Nov 3, 2022
12d9644
*: support mysql compatible auto_increment, the client side changes (…
tiancaiamao Nov 4, 2022
c6e1982
sessionctx: enable clustered index by default (#38447)
tangenta Nov 4, 2022
72407d9
util: set checkpoint during Sort for SortedRowContainer (#38865)
XuHuaiyu Nov 4, 2022
0ab5231
docs: add a proposal for `flashback to timestamp` (#38367)
Defined2014 Nov 4, 2022
e5d3195
executor: generate AST instead of SQL for foreign key cascade (#38796)
crazycs520 Nov 4, 2022
0b3e1e9
*: Chunkreuse try reuse chunk in operator (#38607)
keeplearning20221 Nov 4, 2022
fb89796
planner: update some UTs to use cost model2 (#38875)
qw4990 Nov 4, 2022
de568be
server: fix cannot listen on ipv6 address (#38861)
nexustar Nov 4, 2022
55f4a63
fix(sec): upgrade org.apache.kafka:kafka_2.12 to 3.2.3 (#38878)
645775992 Nov 4, 2022
4f9de19
*: fix check auth support (#38884)
xhebox Nov 4, 2022
0e33fc2
ddl: restricting MODIFY COLUMN on partitioning columns. (#38670)
mjonss Nov 4, 2022
2f03a8d
*: GitHub Workflows security hardening (#38880)
sashashura Nov 4, 2022
6ab1707
telemetry: telemetry supports count `flashback cluster` (#38901)
Defined2014 Nov 4, 2022
fd18bb0
telemetry: add telemetry for global memory control (#38905)
wshwsh12 Nov 4, 2022
570f9a1
test: remove useless fixme in join test (#38864)
Qiaolin-Yu Nov 4, 2022
963c4ee
test: fix unstable test (#38906)
xiongjiwei Nov 4, 2022
114d8c1
*: enable global memory control by default (#38899)
wshwsh12 Nov 4, 2022
d323b8d
planner: update some UTs to cost model2 (#38893)
qw4990 Nov 5, 2022
490e4c4
session, sessionctx: enable metadata lock by default (#38866)
wjhuang2016 Nov 7, 2022
21d6190
txn: tidb_constraint_check_in_place_pessimistic should not be global …
ekexium Nov 7, 2022
30a76ce
telemetry: add telemetry for the new autoid implementation (#38915)
tiancaiamao Nov 7, 2022
dc9b691
extension: add extension API to listen stmt events (#38789)
lcwangchao Nov 7, 2022
54ff6e3
planner: update some UTs from cost model1 to model2 (#38925)
qw4990 Nov 7, 2022
f79e67f
executor: insert ignore return errAutoincReadFailed warning (#38486)
hawkingrei Nov 7, 2022
32248e2
*: fix panic when reusing `OptimisticTxnContextProvider` (#38952)
lcwangchao Nov 7, 2022
3ad6f93
planner: update some UTs from cost model1 to model2 (#38947)
qw4990 Nov 8, 2022
97b0151
metrics: add metrics for multi-statement (#38931)
jackysp Nov 8, 2022
2643550
*: upgrade golang 1.19.3 (#38805)
hawkingrei Nov 8, 2022
6eb9379
planner: sync load shouldn't load items which isn't intiailized befor…
Yisaer Nov 8, 2022
473a03c
gcworker: update gc time format (#38942)
Defined2014 Nov 8, 2022
3208719
planner: update some UTs from cost model1 to model2 (#38959)
qw4990 Nov 8, 2022
96708ad
log-backup: truncate metadata streamingly (#38870)
Leavrth Nov 8, 2022
1691161
extension: provide more complete info in StmtEventInfo when error (#3…
lcwangchao Nov 8, 2022
952a5b9
*: fix variable problem during initialization (#38971)
hawkingrei Nov 8, 2022
ad4d432
planner: support record table runtime stats during optimize (#38876)
Yisaer Nov 8, 2022
ea26284
*: avoid special cases DATA RACE (#38918)
keeplearning20221 Nov 8, 2022
18cb721
autoid_service,server: handle TLS config of the etcd client (#38975)
tiancaiamao Nov 8, 2022
c498090
server: set the keepalive MinTime for gRPC server (#38987)
tangenta Nov 9, 2022
10115e0
executor/analyzetest: Stabilise analyze table tests due to SyncWaitSt…
mjonss Nov 9, 2022
ce62915
planner: update the scan-row-size calculation formula in model2 (#38968)
qw4990 Nov 9, 2022
9efcb88
ddl: fix rename partition column panic (#38932) (#38989)
mjonss Nov 9, 2022
9303bfe
ddl: set tidb_super_read_only=ON when do flashback cluster (#38986)
Defined2014 Nov 9, 2022
8653b1e
statisticstest: fix goleak on the statisticstest (#39005)
hawkingrei Nov 9, 2022
2ec3e91
executor,bindinfo: set number of rows affected for drop global bindin…
dveeden Nov 9, 2022
4aa89a6
br: refine IsLogBackupEnabled (#38997)
tangenta Nov 9, 2022
5426727
util: support intermediate certs when use TLS (#39016)
lance6716 Nov 9, 2022
39f35c0
executor: fix unstable test TestShuffleMergeJoinInDisk (#39015)
wshwsh12 Nov 9, 2022
6399e6c
planner: update some UTs from cost model1 to model2 (#39013)
qw4990 Nov 9, 2022
9dc8bc9
dump: change cfg to use TLS first (#39030)
Daemonxiao Nov 9, 2022
9761e67
*: enable the CI test for concurrent ddl (#38926)
wjhuang2016 Nov 9, 2022
7f9219c
types: Make use of the new time.ZoneBounds function in go-1.19 (#39038)
mjonss Nov 10, 2022
d970c9b
util: add lock for MergeBasicStats (#38998)
mengxin9014 Nov 10, 2022
cfbe3c9
ddl: improve the reorg task scheduling (#38646)
tangenta Nov 10, 2022
066e9c8
domain: support plan_replayer_status system table (#38957)
Yisaer Nov 10, 2022
94aa804
auto_inc,constraint: Ignore check constraint for auto-increment check…
YangKeao Nov 10, 2022
208478b
executor: fix hashjoin goleak (#39023)
xhebox Nov 10, 2022
a20b70f
lightning: fix cluster index (#39010)
lichunzhu Nov 10, 2022
f51227c
extension: provide more informations in `extension.FunctionContext` (…
lcwangchao Nov 10, 2022
063d819
*: upgrade pingcap/log (#39064)
sleepymole Nov 10, 2022
f5171e3
executor: fix admin show job panic when upgrade from v4.0 to v6.4 (#3…
tangenta Nov 10, 2022
42ff5e6
executor: split hashjoin into workers(part1) (#39063)
XuHuaiyu Nov 11, 2022
a3fff42
ddl: refine logic of OwnerCheckAllVersions (#39070)
wjhuang2016 Nov 11, 2022
3bbffdf
planner: update some UTs from cost model1 to model2 (#39065)
qw4990 Nov 11, 2022
ddb4355
domain: support plan_replayer_task system table (#39019)
Yisaer Nov 11, 2022
f16209f
dumpling: process nan when chunk is zero (#39083)
okJiang Nov 11, 2022
481f5ab
lightning: support checkpoint read for compress files (#38946)
lichunzhu Nov 11, 2022
b5e1f7a
executor: split hashjoin into workers(part2) (#39079)
XuHuaiyu Nov 11, 2022
80c8fea
planner: update some UTs from cost model1 to model2 (#39085)
qw4990 Nov 11, 2022
483d2bc
stmtctx: remove the empty values in `StatementContext.Tables` (#39086)
lcwangchao Nov 11, 2022
b702ac7
ddl: delete `pkIsHandle` log in drop index (#39088)
Defined2014 Nov 11, 2022
4b08ccc
statistics, executor: merge Count and ModifyCount for global stats (#…
time-and-fate Nov 11, 2022
238caf6
*: add statistic lock/unlock function (#38387)
pingandb Nov 11, 2022
c919985
systable: Adapt with tiflash_tables changes (#39001)
JaySon-Huang Nov 12, 2022
86d3b46
util: change record analyze to explain in oom alarm (#39099)
mengxin9014 Nov 13, 2022
71e66b2
domain: refactor plan replayer implemention (#39084)
Yisaer Nov 14, 2022
192eae2
binlog: update binlog status from Skippping to On when recover binlog…
joccau Nov 14, 2022
a8f56ee
planner: support the view hint (#38653)
Reminiscent Nov 14, 2022
78d1905
dumpling: compress supports snappy/zstd (#38910)
lyzx2001 Nov 14, 2022
9f9d289
dumpling: revert 39030 (#39108)
okJiang Nov 14, 2022
e939c9b
ddl: fix return duplicate schema version during multi-schema change (…
Defined2014 Nov 14, 2022
61b02ec
gogctuner: fix unstable test in the TestTuner (#39101)
hawkingrei Nov 14, 2022
e8c640e
*: enable race test for more components (#39097)
hawkingrei Nov 14, 2022
678aa56
planner: update some UTs from cost model1 to model2 (#39124)
qw4990 Nov 14, 2022
b0c3381
parser: allow drop stats of multiple tables (#38042)
YangKeao Nov 14, 2022
efa7010
executor: fix issue of show create table with foreign key comment (#3…
crazycs520 Nov 14, 2022
4dd00bc
gogctuner: support Max/Min GOGC (#39109)
hawkingrei Nov 14, 2022
d734cc8
*: refactor some functions for better reusability (#39133)
tangenta Nov 14, 2022
bdcb850
schematracker: treat TableInfo as immutable (#39103)
lance6716 Nov 14, 2022
307d44d
Merge remote-tracking branch 'pingcap/master' into reorg-part-merge
mjonss Nov 14, 2022
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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
startup --host_jvm_args=-Xmx6g
startup --host_jvm_args=-Xmx5g
startup --unlimit_coredumps

run:ci --color=yes
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.1
5.3.2
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git/
bazel-bin/
bazel-out/
bazel-tidb/
bazel-testlogs/
bin/
tidb-server/tidb-server
*.test.bin
cmd/
Dockerfile
1 change: 1 addition & 0 deletions .github/licenserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ header:
- "docs/"
- "br/"
- ".gitignore"
- ".dockerignore"
- ".gitattributes"
- ".cilinter.yaml"
- ".golangci.yml"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration-test-br-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration-test-compile-br.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
compile-windows:
if: github.event_name == 'push' || github.event_name == 'pull_request' && github.event.label.name == 'action/run-br-cross-platform-build'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration-test-dumpling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
integration-test:
strategy:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
check:
permissions:
contents: read # to fetch code (actions/checkout)
pull-requests: write # to comment on pull-requests

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
133 changes: 107 additions & 26 deletions DEPS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ def go_deps():
sum = "h1:zeZSRqj5yCg28tCkIV/z/lWbwvNm5qnKVS15PI8nhD0=",
version = "v0.1.0",
)
go_repository(
name = "com_github_acarl005_stripansi",
build_file_proto_mode = "disable",
importpath = "github.com/acarl005/stripansi",
sum = "h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=",
version = "v0.0.0-20180116102854-5a71ef0e047d",
)

go_repository(
name = "com_github_ajg_form",
Expand Down Expand Up @@ -711,6 +718,21 @@ def go_deps():
sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=",
version = "v1.1.1",
)
go_repository(
name = "com_github_decred_dcrd_crypto_blake256",
build_file_proto_mode = "disable",
importpath = "github.com/decred/dcrd/crypto/blake256",
sum = "h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0=",
version = "v1.0.0",
)
go_repository(
name = "com_github_decred_dcrd_dcrec_secp256k1_v4",
build_file_proto_mode = "disable",
importpath = "github.com/decred/dcrd/dcrec/secp256k1/v4",
sum = "h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4=",
version = "v4.1.0",
)

go_repository(
name = "com_github_denis_tingaikin_go_header",
build_file_proto_mode = "disable",
Expand Down Expand Up @@ -1235,6 +1257,14 @@ def go_deps():
sum = "h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo=",
version = "v1.0.2",
)
go_repository(
name = "com_github_goccy_go_json",
build_file_proto_mode = "disable",
importpath = "github.com/goccy/go-json",
sum = "h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk=",
version = "v0.9.11",
)

go_repository(
name = "com_github_godbus_dbus_v5",
build_file_proto_mode = "disable_global",
Expand Down Expand Up @@ -2239,6 +2269,49 @@ def go_deps():
sum = "h1:tC2y/ygPbMFSBOs3DcyaEMKnnwH7eYKzohOtRrf0SAg=",
version = "v1.1.0",
)
go_repository(
name = "com_github_lestrrat_go_blackmagic",
build_file_proto_mode = "disable",
importpath = "github.com/lestrrat-go/blackmagic",
sum = "h1:lS5Zts+5HIC/8og6cGHb0uCcNCa3OUt1ygh3Qz2Fe80=",
version = "v1.0.1",
)
go_repository(
name = "com_github_lestrrat_go_httpcc",
build_file_proto_mode = "disable",
importpath = "github.com/lestrrat-go/httpcc",
sum = "h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE=",
version = "v1.0.1",
)
go_repository(
name = "com_github_lestrrat_go_httprc",
build_file_proto_mode = "disable",
importpath = "github.com/lestrrat-go/httprc",
sum = "h1:bAZymwoZQb+Oq8MEbyipag7iSq6YIga8Wj6GOiJGdI8=",
version = "v1.0.4",
)
go_repository(
name = "com_github_lestrrat_go_iter",
build_file_proto_mode = "disable",
importpath = "github.com/lestrrat-go/iter",
sum = "h1:gMXo1q4c2pHmC3dn8LzRhJfP1ceCbgSiT9lUydIzltI=",
version = "v1.0.2",
)
go_repository(
name = "com_github_lestrrat_go_jwx_v2",
build_file_proto_mode = "disable",
importpath = "github.com/lestrrat-go/jwx/v2",
sum = "h1:RlyYNLV892Ed7+FTfj1ROoF6x7WxL965PGTHso/60G0=",
version = "v2.0.6",
)
go_repository(
name = "com_github_lestrrat_go_option",
build_file_proto_mode = "disable",
importpath = "github.com/lestrrat-go/option",
sum = "h1:WqAWL8kh8VcSoD6xjSH34/1m8yxluXQbDeKNfvFeEO4=",
version = "v1.0.0",
)

go_repository(
name = "com_github_lib_pq",
build_file_proto_mode = "disable",
Expand Down Expand Up @@ -2818,15 +2891,15 @@ def go_deps():
name = "com_github_pingcap_kvproto",
build_file_proto_mode = "disable_global",
importpath = "github.com/pingcap/kvproto",
sum = "h1:ceg4xjEEXNgPsScTQ5dtidiltLF4h17Y/jUqfyLAy9E=",
version = "v0.0.0-20220929075948-06e08d5ed64c",
sum = "h1:ho5XUD8DVCnkpEj8oiTR57FXDTXnH6znyLe0gyrtzKk=",
version = "v0.0.0-20221103025916-e7e21f0e9cd9",
)
go_repository(
name = "com_github_pingcap_log",
build_file_proto_mode = "disable_global",
importpath = "github.com/pingcap/log",
sum = "h1:ELiPxACz7vdo1qAvvaWJg1NrYFoY6gqAh/+Uo6aXdD8=",
version = "v1.1.0",
sum = "h1:T7e5Low0BU2ZazI2dz2mh3W1qv+w8wtvq1YR8DneA0c=",
version = "v1.1.1-0.20221110065318-21a4942860b3",
)
go_repository(
name = "com_github_pingcap_sysutil",
Expand All @@ -2839,8 +2912,8 @@ def go_deps():
name = "com_github_pingcap_tipb",
build_file_proto_mode = "disable_global",
importpath = "github.com/pingcap/tipb",
sum = "h1:kWYridgsn8xSKYJ2EkXp7uj5HwJnG5snpY3XP8oYmPU=",
version = "v0.0.0-20220824081009-0714a57aff1d",
sum = "h1:Yoo8j5xQGxjlsC3yt0ndsiAz0WZXED9rzsKmEN0U0DY=",
version = "v0.0.0-20221020071514-cd933387bcb5",
)
go_repository(
name = "com_github_pkg_browser",
Expand Down Expand Up @@ -3205,8 +3278,8 @@ def go_deps():
name = "com_github_shurcool_vfsgen",
build_file_proto_mode = "disable_global",
importpath = "github.com/shurcooL/vfsgen",
sum = "h1:y0cMJ0qjii33BnD6tMGcF/+gHYsoKQ6tbwQpy233OII=",
version = "v0.0.0-20180711163814-62bca832be04",
sum = "h1:ug7PpSOB5RBPK1Kg6qskGBoP3Vnj/aNYFTznWvlkGo0=",
version = "v0.0.0-20181202132449-6a9ea43bcacd",
)
go_repository(
name = "com_github_sirupsen_logrus",
Expand Down Expand Up @@ -3422,15 +3495,15 @@ 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:/13jzD/AR7v3dCLweFQ2JG8bihh3HLVIci2tbOHHGW0=",
version = "v2.0.1-0.20221012074856-6def8d7b90c4",
sum = "h1:nFVdyTXcQYZwQQCdSJcFI1vBFyzG1hVuZ39MAK6wqK4=",
version = "v2.0.3-0.20221108030801-9c0835c80eba",
)
go_repository(
name = "com_github_tikv_pd_client",
build_file_proto_mode = "disable_global",
importpath = "github.com/tikv/pd/client",
sum = "h1:REQOR1XraH1fT9BCoNBPZs1CAe+w7VPLU+d+si7DLYo=",
version = "v0.0.0-20221010134149-d50e5fe43f14",
sum = "h1:ckPpxKcl75mO2N6a4cJXiZH43hvcHPpqc9dh1TmH1nc=",
version = "v0.0.0-20221031025758-80f0d8ca4d07",
)
go_repository(
name = "com_github_timakin_bodyclose",
Expand Down Expand Up @@ -3584,12 +3657,20 @@ def go_deps():
sum = "h1:0R4NLDRDZX6JcmhJgXi5E4b8Wg84ihbmUKp/GvSPEzc=",
version = "v0.0.0-20161114210144-ceec8f93295a",
)
go_repository(
name = "com_github_vbauerster_mpb_v7",
build_file_proto_mode = "disable",
importpath = "github.com/vbauerster/mpb/v7",
sum = "h1:BkGfmb6nMrrBQDFECR/Q7RkKCw7ylMetCb4079CGs4w=",
version = "v7.5.3",
)

go_repository(
name = "com_github_vividcortex_ewma",
build_file_proto_mode = "disable_global",
importpath = "github.com/VividCortex/ewma",
sum = "h1:MnEK4VOv6n0RSY4vtRe3h11qjxL3+t0B8yOL8iMXdcM=",
version = "v1.1.1",
sum = "h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow=",
version = "v1.2.0",
)
go_repository(
name = "com_github_wangjohn_quickselect",
Expand Down Expand Up @@ -4250,8 +4331,8 @@ def go_deps():
name = "org_golang_x_crypto",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/crypto",
sum = "h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA=",
version = "v0.0.0-20220411220226-7b82a4e95df4",
sum = "h1:MDRAIl0xIo9Io2xV565hzXHw3zVseKrJKodhohM5CjU=",
version = "v0.1.0",
)
go_repository(
name = "org_golang_x_exp",
Expand Down Expand Up @@ -4300,8 +4381,8 @@ def go_deps():
name = "org_golang_x_net",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/net",
sum = "h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0=",
version = "v0.0.0-20220722155237-a158d28d115b",
sum = "h1:hZ/3BUoy5aId7sCpA/Tc5lt8DkFgdVS2onTpJsZ/fl0=",
version = "v0.1.0",
)
go_repository(
name = "org_golang_x_oauth2",
Expand All @@ -4321,22 +4402,22 @@ def go_deps():
name = "org_golang_x_sys",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/sys",
sum = "h1:BkDtF2Ih9xZ7le9ndzTA7KJow28VbQW3odyk/8drmuI=",
version = "v0.0.0-20220928140112-f11e5e49a4ec",
sum = "h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U=",
version = "v0.1.0",
)
go_repository(
name = "org_golang_x_term",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/term",
sum = "h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=",
version = "v0.0.0-20210927222741-03fcf44c2211",
sum = "h1:g6Z6vPFA9dYBAF7DWcH6sCcOntplXsDKcliusYijMlw=",
version = "v0.1.0",
)
go_repository(
name = "org_golang_x_text",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/text",
sum = "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
version = "v0.3.7",
sum = "h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=",
version = "v0.4.0",
)
go_repository(
name = "org_golang_x_time",
Expand Down Expand Up @@ -4489,6 +4570,6 @@ def go_deps():
name = "org_uber_go_zap",
build_file_proto_mode = "disable_global",
importpath = "go.uber.org/zap",
sum = "h1:WefMeulhovoZ2sYXz7st6K0sLj7bBhpiFaud4r4zST8=",
version = "v1.21.0",
sum = "h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY=",
version = "v1.23.0",
)
46 changes: 10 additions & 36 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019 PingCAP, Inc.
# Copyright 2022 PingCAP, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,45 +13,19 @@
# limitations under the License.

# Builder image
FROM golang:1.19.1-alpine as builder
FROM alpine:edge as builder

RUN apk add --no-cache \
wget \
make \
git \
gcc \
binutils-gold \
musl-dev
ADD . https://raw.githubusercontent.com/njhallett/apk-fastest-mirror/c4ca44caef3385d830fea34df2dbc2ba4a17e021/apk-fastest-mirror.sh ./proxy
RUN sh ./proxy/apk-fastest-mirror.sh -t 50 && apk add --no-cache git build-base go

RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 \
&& chmod +x /usr/local/bin/dumb-init
COPY . /tidb
ARG GOPROXY
RUN export GOPROXY=${GOPROXY} && cd /tidb && make server

RUN mkdir -p /go/src/github.com/pingcap/tidb
WORKDIR /go/src/github.com/pingcap/tidb
FROM alpine:latest

# Cache dependencies
COPY go.mod .
COPY go.sum .
COPY parser/go.mod parser/go.mod
COPY parser/go.sum parser/go.sum

RUN GO111MODULE=on go mod download

# Build real binaries
COPY . .
RUN make

# Executable image
FROM alpine

RUN apk add --no-cache \
curl

COPY --from=builder /go/src/github.com/pingcap/tidb/bin/tidb-server /tidb-server
COPY --from=builder /usr/local/bin/dumb-init /usr/local/bin/dumb-init
COPY --from=builder /tidb/bin/tidb-server /tidb-server

WORKDIR /

EXPOSE 4000

ENTRYPOINT ["/usr/local/bin/dumb-init", "/tidb-server"]
ENTRYPOINT ["/tidb-server"]
Loading