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

1 #1

Merged
merged 1,021 commits into from
Mar 15, 2021
Merged

1 #1

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1021 commits
Select commit Hold shift + click to select a range
4fe72e5
store/tikv: move metrics shortcuts to /metrics (#22693)
disksing Feb 4, 2021
8ddaf03
executor: fix load data losing connection when batch_dml_size is set …
guo-shaoge Feb 5, 2021
9a2997f
statistics,executor: fix some unit tests that run twice (#22705)
tiancaiamao Feb 5, 2021
2d717c1
statistics: merge the partition-level stats to global-level stats (#2…
Reminiscent Feb 5, 2021
20ddc19
server: retry executing sql without tiflash after tiflash is down (#2…
xuyifangreeneyes Feb 5, 2021
75f7485
ddl: migrate part of ddl package code from Execute/ExecRestricted to …
AilinKid Feb 5, 2021
7f8935a
server: fix tcp-keep-alive config (#22745)
jackysp Feb 5, 2021
46accce
*: uprgade gopsutil to v3.20.12 (#22747)
wshwsh12 Feb 5, 2021
006e2fc
cmd: restore the old Execute API only for the test (#22692)
AilinKid Feb 5, 2021
6483b7d
store/tikv_driver: move gcworker into tikv_driver (#22698)
AndreMouche Feb 5, 2021
dedaabb
ddl: migrate part of ddl package code from Execute/ExecRestricted to …
AilinKid Feb 5, 2021
27db39b
*: use CLUSTERED and NONCLUSTERED to control primary key type (#22409)
tangenta Feb 5, 2021
38aaad2
util/timeutil: fix timeutil/time_test.go on Windows (#22758)
skyline75489 Feb 8, 2021
4c0c5db
docs/design: fix a typo (Mirgration → Migration) in the template (#20…
kennytm Feb 9, 2021
2ae8529
README.md: update links about CNCF and contribution guide (#20307)
dcalvin Feb 9, 2021
4a6e739
CircleCI: upgrade go version from 1.13 to 1.15 (#19170)
ngaut Feb 9, 2021
8fe8ecd
*: update mysql compatibility link (#20499)
prakashdivyy Feb 9, 2021
d6a2b9a
server: add tests for empty query hang (#22740)
morgo Feb 11, 2021
c9af430
expression: speed up Column.VecEvalReal by using MergeNulls (#22191)
Tjianke Feb 17, 2021
fb84db1
executor: make memory tracker for aggregate more accurate. (#22463)
wshwsh12 Feb 18, 2021
4031706
gcworker: remove handler interface (#22779)
disksing Feb 18, 2021
9cb9b69
session: ignore linearizability setting for auto-commit transactions …
sticnarf Feb 18, 2021
9374724
kv/typo: fix the description for `GetMemCache` (#22766)
mapleFU Feb 18, 2021
a06c22a
store/tikv: prepare for moving coprocessor out (#22732)
disksing Feb 18, 2021
59ccb29
statistics: merge the partition-level histograms to a global-level hi…
rebelice Feb 19, 2021
99d0b22
session, util: update session to use new APIs (#22652)
morgo Feb 19, 2021
a3a4a6c
executor: add new format specifier(%# %@ %.) for str_to_date express…
guo-shaoge Feb 19, 2021
8c2db1b
expression: fix enum and set type expression in where clause (#22785)
lzmhhh123 Feb 19, 2021
c9e85ec
expression: refine performance of EXTRACT function (#22701)
leiysky Feb 19, 2021
8842bbc
statistics: merge partition-level TopN to global-level TopN (#22433)
Reminiscent Feb 19, 2021
381ac81
store/tikv: extract GetTiFlashAddrs from MPPClient (#22802)
disksing Feb 19, 2021
3ad7f40
expression: Add warning info for exprs that can not be pushed to stor…
windtalker Feb 20, 2021
8184e69
planner,cascade: remove useless codes (#22770)
hidehalo Feb 20, 2021
4f56ab0
expression: do not adjust int when it is null and compared year (#22821)
lzmhhh123 Feb 20, 2021
023f17f
store/tikv: move some code (#22810)
disksing Feb 20, 2021
461cae1
planner, distsql: fix the behaviour of building ranges for TiFlash (#…
hanfei1991 Feb 21, 2021
78debe7
planner: fix where condition index out of range (#22833)
b41sh Feb 22, 2021
2bbec47
tikv: use timestamp from TSO instead of MaxVersion in point get retry…
sticnarf Feb 22, 2021
1cd390b
statistics: merge poped topn when generating the global histogram (#2…
rebelice Feb 22, 2021
f79f491
store/tikv: extract binlogExecutor (#22842)
disksing Feb 22, 2021
b74dfaf
mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
disksing Feb 22, 2021
04e5137
*: use `explain format = 'brief'` for tests (#22677)
eurekaka Feb 22, 2021
90ee6c6
store/tikv: resolve storeType dependency (#22854)
disksing Feb 22, 2021
7e92b4c
.github: change sig/infra to sig/sql-infra (#22870)
tangenta Feb 22, 2021
42dcec3
store: move mockoracle to tikv/oracle/oracles (#22855)
disksing Feb 22, 2021
49f3e29
ddl: scattering truncated tables without pre-split option (#22787)
jackysp Feb 22, 2021
50607db
expression: Optimize builtinArithmeticModRealSig and builtinGreatestD…
Tjianke Feb 22, 2021
99c0aba
tikv/interface:remove kv.Storage from tikv.Storage (#22868)
AndreMouche Feb 23, 2021
f3fe489
statistics: support to store FMSketch and add FMSketch to column stat…
Reminiscent Feb 23, 2021
339bc46
brie/: add GetVersion function for tidbGlueSession (#22731)
lichunzhu Feb 23, 2021
001b34e
server, sessionctx: Support for the status command of MySQL Shell (#2…
dveeden Feb 23, 2021
df9e730
stats, planner, sessionctx: handle compatibility between feedback and…
time-and-fate Feb 23, 2021
3d37230
expression: add integration test for partition pruning (#22836)
morgo Feb 23, 2021
fb34007
ddl: remove useless funtion (#22865)
zimulala Feb 23, 2021
3edbab3
executor: fix regression by Tracker.Consume in aggregate. (#22883)
wshwsh12 Feb 23, 2021
62354d0
statistics: merge partition-level FMSketch to global-level FMSketch a…
Reminiscent Feb 23, 2021
ae46cda
*: upgrade go version to 1.16 (#22895)
disksing Feb 24, 2021
b226130
session: fix linearizability for non-autocommit async-commit txn (#22…
sticnarf Feb 24, 2021
dd5457f
Revert "*: upgrade go version to 1.16 (#22895)" (#22906)
disksing Feb 24, 2021
2d48f95
planner: decorrelate LogicalApply with inner join as the inner child …
eurekaka Feb 24, 2021
270d497
statistics: introduce new estimation logic when index histogram fails…
winoros Feb 24, 2021
6d6c833
*: timezone insensetive test (#22880)
xhebox Feb 24, 2021
a30e24d
ddl: fix partition schemadiff operation (#22826)
xhebox Feb 24, 2021
b5c6c9f
statistics: make dump/load/show-stats be compatible with global-stats…
qw4990 Feb 24, 2021
8ea5930
*: separate use of kv.Storage and tikv.Storage (#22891)
disksing Feb 24, 2021
35534ae
*: apply golangci-lint to the new code (#22824)
tangenta Feb 24, 2021
e360454
util: fix `Host` column of `show processlist` to host_name:client_por…
Feb 24, 2021
eea52f5
expression: correct constant propagation for collation (#22666)
wjhuang2016 Feb 24, 2021
806097c
planner: fix wrong index merge selection (#22825)
wjhuang2016 Feb 24, 2021
1970a91
store/tikv: fix unstable tests in snapshot_fail_test.go (#22916)
sticnarf Feb 24, 2021
daf3337
oracle: make @@txn_scope only support local and global (#22784)
Yisaer Feb 25, 2021
745d20a
store/tikv_driver:move MemManager from KVStore to tikvStore (#22728)
AndreMouche Feb 25, 2021
5e832ed
store/*: mv tikv_driver to dir store/driver (#22942)
AndreMouche Feb 25, 2021
7151b4f
config: use tidb_enable_list_partition to enable list table partition…
crazycs520 Feb 25, 2021
df01fcc
planner, executor: reset NotNullFlag when merge schema for join (#22955)
XuHuaiyu Feb 25, 2021
31c13d6
expression: fix bugs in builtinfunction ArithmeticMinusInt logic (#22…
Tjianke Feb 26, 2021
3259243
ddl: loose alter column with foreign key in some cases (#22863)
AilinKid Feb 26, 2021
6136b00
Makefile: make linter check the commit from upstream master (#22939)
tangenta Feb 26, 2021
f89ab46
infoschema, executor: Resolve bug where show index from perf_schema h…
johan-j Feb 26, 2021
8a490e9
parser: quote identifier with backquote when getting SQL digest (#22893)
xiongjiwei Feb 26, 2021
f06ff9d
CircleCI: upgrade go version from 1.15 to 1.16 (#22882)
ngaut Feb 26, 2021
03109ad
*: remove useless FIXME tip in code (#22970)
xhebox Feb 26, 2021
d8c5ca3
planner/core: skip clustered index during admin check table (#22871)
tangenta Feb 26, 2021
4a413a4
config: remove async commit configs from example (#22945)
sticnarf Feb 26, 2021
5d8b99f
store/tikv: add 1PC grafana panel and lower 1PC log level (#22943)
sticnarf Feb 26, 2021
ec788ac
executor: reduce useless memory allocation in min/max aggregate (#22912)
wshwsh12 Feb 26, 2021
8357f80
*: remove some useless codes and do tiny update (#22972)
zimulala Feb 26, 2021
53a68b5
Makefile: remove some linters (#22978)
tangenta Feb 26, 2021
4b90ef4
planner: include "CREATE/DROP TEMPORARY TABLE" to noop functions (##6…
nayuta-yanagisawa Feb 28, 2021
4faf2c0
infoschema: fix err check (#22993)
Tjianke Mar 1, 2021
5706c0c
domain: fix err check (#22990)
Tjianke Mar 1, 2021
febac51
store/tikv: move coprocessor out (#22922)
disksing Mar 1, 2021
b1b7730
statistics: add more tests to check accurateness of global-stats (#22…
qw4990 Mar 1, 2021
e1004a2
*: modify the switch to control global stats (#22866)
rebelice Mar 1, 2021
93d3c04
cmd: fix err check (#22986)
Tjianke Mar 1, 2021
bc37f08
*: fix some varcheck lint warnings (#23011)
Willendless Mar 1, 2021
e2fdb00
config: fix data race caused by config.Labels (#22977)
Yisaer Mar 1, 2021
6bd6df7
planner: let tikv know primary prefix columns info (#22829)
lysu Mar 1, 2021
550ca8e
statistics: enables global-level stats to be generated in fast analyz…
Reminiscent Mar 1, 2021
2b977e4
store/tikv:make KVTxn in tikv public (#23019)
AndreMouche Mar 1, 2021
3d4def7
planner, statistics: allow (auto) analyze single partition in dynamic…
xuyifangreeneyes Mar 1, 2021
dc9ceb4
tablecodec: fix err check (#23005)
Tjianke Mar 1, 2021
bff0e7e
structure: fix err check (#23003)
Tjianke Mar 1, 2021
9dc2f10
table: fix err check (#23004)
Tjianke Mar 1, 2021
4e44674
server: support MVCC-get HTTP API for clustered index (#22904)
tangenta Mar 1, 2021
b336f83
config: fix err check (#22987)
Tjianke Mar 1, 2021
642527d
planner: choose non-prefix column when both index key and handle have…
lysu Mar 1, 2021
319e514
.build.ps1: enable varcheck for powershell building script (#23039)
jackysp Mar 1, 2021
8230f41
*: optimize analyze cluster index table (#21381)
lzmhhh123 Mar 1, 2021
10e5a34
execution: fix index's duplicate error message (#22858)
b41sh Mar 2, 2021
a8b5010
*: update PD client (#23043)
JmPotato Mar 2, 2021
80eed54
tests: fix err check (#23007)
Tjianke Mar 2, 2021
2a5aa13
util: fix vet (#23042)
jackysp Mar 2, 2021
3fcfefd
executor: track partialResultMap in unparalleled aggreagte. (#22962)
wshwsh12 Mar 2, 2021
d94920e
statistics: support dropping partition/global level statistics (#23023)
qw4990 Mar 2, 2021
6bb16e5
statistics: add static partition prune mode checks (#23016)
rebelice Mar 2, 2021
24c9df1
*: refactor table.Table interface, clean up unnecessay methods (#22430)
tiancaiamao Mar 2, 2021
80be93b
*: make binlog and clustered index exclusive (#22956)
tangenta Mar 2, 2021
d57b75e
docs/design: update template (#22903)
zz-jason Mar 2, 2021
17eca20
executor, privilege: fix failure on grant USAGE privilege operation (…
TszKitLo40 Mar 2, 2021
602bcd2
*: fix some structcheck lint warnings (#22983)
disksing Mar 2, 2021
5b12f92
*: check `tidb_enable_extended_stats` in analyze and row count estima…
eurekaka Mar 2, 2021
cb94139
ddl: fix err check (#22988)
Tjianke Mar 3, 2021
f343454
executor: introduce setWithMemoryUsage to track set memory in AggExec…
wshwsh12 Mar 3, 2021
a64d886
statistics: forbid global-stats in stats-ver1 and make analyze option…
qw4990 Mar 3, 2021
7daf743
planner: fix panic while get part of partition key values (#22452)
beihaiguaishou Mar 3, 2021
622f702
store/mockstore/unistore: refine and add more mpp tests (#22803)
hanfei1991 Mar 3, 2021
d3fe218
statistics: introduce a new kind of syntax to drop global-stats (#23061)
qw4990 Mar 3, 2021
39fc7db
store: fix incorrect information_schema.tikv_region_status for partit…
TszKitLo40 Mar 3, 2021
abbf3fe
tikv: drop store's regions when resolve store with tombstone status (…
lysu Mar 3, 2021
6087187
ddl, metrics: speed up the execution of the DDL job (#22932)
zimulala Mar 3, 2021
3f7a573
planner: fix range partition prune bug for IN expr (#22894) (#22938)
guo-shaoge Mar 3, 2021
8c8edae
owner: fix err check (#22996)
Tjianke Mar 3, 2021
b63337f
statistics: fix merge idx hist with poped topn (#23075)
rebelice Mar 3, 2021
39b50f5
bindinfo: fix error check (#22985)
Tjianke Mar 3, 2021
b911ee5
distsql: fix err check (#22989)
Tjianke Mar 3, 2021
b81e547
executor: fix err check (#22991)
Tjianke Mar 3, 2021
93c1779
*: support `show stats_extended` to inspect extended stats cache (#23…
eurekaka Mar 3, 2021
d6ee6d3
expression: fix err check (#22992)
Tjianke Mar 3, 2021
b5582e0
meta: fix err check (#22995)
Tjianke Mar 3, 2021
a4b4d7a
statistics: fix the correlation estimation for version 2 (#23057)
winoros Mar 3, 2021
b5a9076
*: new secondary index value format (#20220)
wjhuang2016 Mar 3, 2021
24b267d
plugin, privilege: fix err check (#22998)
Tjianke Mar 3, 2021
33c82d1
util: fix err check (#23009)
Tjianke Mar 3, 2021
6f250b6
*: fix a bug that collation is not handle for text type (#23045)
wjhuang2016 Mar 3, 2021
953de47
types: fix err check (#23008)
Tjianke Mar 4, 2021
bee6d37
executor: make the memory tracker of groupConcat more accurate. (#23034)
wshwsh12 Mar 4, 2021
263155a
statistics: make exponential backoff estimation more safe (#23086)
winoros Mar 4, 2021
8761adc
executor: make the memory tracker of Jsonobjectagg more accurate (#23…
wshwsh12 Mar 4, 2021
9768e45
session: add a test case for issue 19127 (#21010)
tiancaiamao Mar 4, 2021
13dbba6
ddl: remove unused code (#23014)
nolouch Mar 4, 2021
3cf2599
util: remove unused code (#23041)
b41sh Mar 4, 2021
50aec2b
planner: enable column pruning for common handle (#22940)
time-and-fate Mar 4, 2021
1ae775f
statistics: add more test cases for global-level stats (#23049)
Reminiscent Mar 4, 2021
51e5611
executor: fix correlated column range in table reader for the cluster…
wjhuang2016 Mar 4, 2021
2cdd8a3
statistics: report error for extended statistics register on partitio…
eurekaka Mar 4, 2021
db62e34
executor: fix wrong key range of index scan when filter is comparing …
guo-shaoge Mar 4, 2021
5f73c82
kv/union_store:remove tableinfo from union_store (#22976)
AndreMouche Mar 4, 2021
4a598ac
store/copr: polish the tiflash-tikv fallback function. (#23078)
hanfei1991 Mar 4, 2021
bafa0cc
planner/core: let mpp support partition tables (#22662)
hanfei1991 Mar 4, 2021
f33d02b
statistics: forbid getting global-stats through fast analyze and incr…
Reminiscent Mar 5, 2021
5a0ead5
store: fix linter --enable=deadcode check error (#23120)
An-DJ Mar 5, 2021
a1712a0
statistics: add more test cases about global-stats and fix some issue…
qw4990 Mar 5, 2021
505955a
planner: fix bug of mpp wrongly set schema of exchanger (#22845)
hanfei1991 Mar 5, 2021
8ae01ab
ddl, executor: fix creating unique index without partition column err…
TszKitLo40 Mar 5, 2021
7fdfc44
statistics: add tests for `analyze` with dynamic partition prune mode…
rebelice Mar 5, 2021
e83a8f6
executor: fix unexpected NotNullFlag in case when expr ret type (#23102)
guo-shaoge Mar 5, 2021
707cb0a
kv: unify the BeginWith... function into one (#23130)
Yisaer Mar 5, 2021
29908c6
store, executor: support stale read for tikv RPCContext (#22176)
Yisaer Mar 5, 2021
280d07c
sessionctx, executor: make the upper limit of tidb_ddl_reorg_worker_c…
TszKitLo40 Mar 5, 2021
4184f27
test: make test TestUpdateWithTableReadLockWillFail stable (#23122)
crazycs520 Mar 7, 2021
038264b
docs/design: fix broken link in 2018-10-08-online-DDL.md (#23124)
nayuta-yanagisawa Mar 7, 2021
e4d2499
expression: fix linter --enable=deadcode check error (#23118)
An-DJ Mar 7, 2021
3750320
executor: add close recordSet in executor (#22714)
Tjianke Mar 7, 2021
4218f28
expression: fix wrong error info (#22760)
Tjianke Mar 7, 2021
c0f7726
util: remove unused code #23013 (#23097)
knull-cn Mar 8, 2021
ae50555
planner: fix linter --enable=deadcode check error (#23117)
An-DJ Mar 8, 2021
3b016a9
planner: fix panic when building index merge plan (#23141)
eurekaka Mar 8, 2021
9a75e50
store/tikv: use original snapshot timestamp to resolve locks (#23044)
sticnarf Mar 8, 2021
31df40b
statistics: add some test cases of global-stats to cover more column …
qw4990 Mar 8, 2021
b3d4458
planner: refine explain info for batch cop (#20360)
windtalker Mar 8, 2021
9ac5b7a
planner: fix wrong table filters for index merge plan (#23132)
eurekaka Mar 8, 2021
d29febf
session,util/sqlexec: clean up code for deprecated API (#23153)
tiancaiamao Mar 8, 2021
4cc597a
statistics: add more test cases for global-stats with different analy…
qw4990 Mar 8, 2021
b42a6f4
statistics: add test for analyze single partition (#23167)
rebelice Mar 8, 2021
01be9ce
server: add HTTP API to enable/disable async commit and 1PC (#23115)
ekexium Mar 9, 2021
7c552f5
executor: track memory usage of map in agg partial result. (#23072)
wshwsh12 Mar 9, 2021
aa82a03
types: fix the bug about the wrong query result for decimal type (#2…
jyz0309 Mar 9, 2021
83e70f7
executor: inject random panic to AggExec (#23139)
wshwsh12 Mar 9, 2021
b8f6ac0
*: fix wrong replace or insert-on-dup behavior on prefixed clustered …
lysu Mar 9, 2021
5720831
parser: update parser to fix sql restore bug used in create view (#22…
xiongjiwei Mar 9, 2021
1ca62a0
planner: fixed a bug that prevented SPM from taking effect (#23197)
rebelice Mar 9, 2021
284da11
executor: fix cast function will ignore tht error for point-get key c…
AilinKid Mar 9, 2021
1e98567
planner: fix query range partition table got wrong result and TiDB pa…
TszKitLo40 Mar 9, 2021
944b91d
store: fix SetOption race error (#23200)
Yisaer Mar 9, 2021
2a909bf
Privileges: fix delete privilege check wrongly (#22971)
xiongjiwei Mar 9, 2021
a67f8e6
planner: fix indexJoin(also hash, merge) on prefixed clustered index …
lysu Mar 9, 2021
1ae9bfa
server: refine tiflash fallback testcase (#23103)
xuyifangreeneyes Mar 9, 2021
f3c64ce
executor: wrong result of nullif expr when used with is null expr. (#…
guo-shaoge Mar 9, 2021
579cf90
statistics: fix a case that auto-analyze is triggered outside its tim…
qw4990 Mar 9, 2021
bdfcaf8
executor: skip lock key if lock key is empty (#23188)
lysu Mar 9, 2021
5f1e205
store: Add status variables for tikv statistics (#22286)
morgo Mar 10, 2021
c382b9b
executor: hash join out of index panic when enum column value is zero…
guo-shaoge Mar 10, 2021
6f76357
statistics: test `tidb_partition_prune_mode` session variable (#23176)
rebelice Mar 10, 2021
610ac87
config: deprecate `tikv-client.copr-cache.enable` and invisible some …
lzmhhh123 Mar 10, 2021
50d840f
planner: fix incorrect duration between compare (#22830)
b41sh Mar 10, 2021
b6db450
statistics: update the count and modify variables of global-stats as …
qw4990 Mar 10, 2021
f8da635
*: refactor and fix the usages of DecodeIndexKV for clustered index (…
tangenta Mar 10, 2021
f6a61bc
plan/core: support mpp group by expressions. (#23133)
hanfei1991 Mar 10, 2021
c22cbc0
executor: truncate column values from index KV during admin check (#2…
tangenta Mar 10, 2021
9fe1bde
remote unary cop tiflash fallback (#23226)
xuyifangreeneyes Mar 10, 2021
587010f
planner: fix prepared execute panic when sql without clustered pk con…
lysu Mar 10, 2021
219aea4
executor: fix analyze prefix clustered index get wrong histogram buck…
lzmhhh123 Mar 10, 2021
168ef88
statistics: test the auto analyze and feedback for the global-level s…
Reminiscent Mar 10, 2021
d129737
planner: Fix problem that MPP query cannot work with STATEMENT_SUMMAR…
leiysky Mar 10, 2021
c1b8347
statistics: add a test case which builds global-stats on different ve…
qw4990 Mar 11, 2021
32d54d2
planner: fix a panic caused by unmatched FieldNames and ColsInfo in p…
qw4990 Mar 11, 2021
b298b86
executor: group_concat aggr panic when session.group_concat_max_len i…
guo-shaoge Mar 11, 2021
bc572f3
types: fix clustered keyword to hint regexp (#23247)
lysu Mar 11, 2021
67e4528
executor: initialize expensive query handler on domain creation (#21340)
hanlins Mar 11, 2021
07b19e0
config: disable prepare plan cache by default (#23240)
eurekaka Mar 11, 2021
f21c7dd
ddl: make TestNotifyDDLJob stable (#23232)
zimulala Mar 11, 2021
c4f3989
*: add infoschema client errors (#22382)
morgo Mar 11, 2021
362883c
expression, planner: allow pushdown count distinct when enumerate phy…
tisonkun Mar 11, 2021
22ff880
planner: fix analyze clustered index table can't trigger index primar…
lzmhhh123 Mar 11, 2021
7ea78e7
types: fix clustered keyword regexp (#23264)
tangenta Mar 12, 2021
2258ab7
statistics: add multi-column index test cases for global-statas (#23265)
qw4990 Mar 12, 2021
f0ccc57
store/tikv: remove tidb/metrics from store/tikv (#23221)
aierui Mar 12, 2021
6d258c7
statistics: delete extended stats cache item in current tidb synchron…
eurekaka Mar 12, 2021
413ba4c
server: add tiflash fallback testcase (#23248)
xuyifangreeneyes Mar 12, 2021
30da0a1
Revert "executor: open childExec during execution for UnionExec (#215…
XuHuaiyu Mar 12, 2021
1e2f1c0
statistics: add tests for global-stats when add and delete a single p…
Reminiscent Mar 12, 2021
920b70d
planner: set right null flag for constant value (#23172)
fzhedu Mar 12, 2021
276dd0e
util: optimize the performance of restore with db (#22910)
rebelice Mar 12, 2021
6b69883
MPP: Kill mpp queries (#23056)
fzhedu Mar 12, 2021
b578af4
store/tikv: fix typo (#23269)
Ahacad Mar 12, 2021
1d99292
*: hide the system variables `tidb_track_aggregate_memory_usage` (#23…
wshwsh12 Mar 12, 2021
035c15f
*: rename tiflash fallback switch (#22886)
xuyifangreeneyes Mar 12, 2021
f77bbc4
planner/core: pass the elems info to fieldtype only for exchanger (#2…
hanfei1991 Mar 12, 2021
0b68d8a
test: work around goroutine leak (#23288)
fzhedu Mar 12, 2021
b128c3c
expression: push down EXTRACT to TiFlash (#22832)
leiysky Mar 12, 2021
689a598
planner: fix the bug that wrong collation is used when try fast path …
wjhuang2016 Mar 12, 2021
088fe75
session: enable async commit in new clusters (#23274)
sticnarf Mar 12, 2021
fcf60e0
planner, table: set PrimaryPrefixColumnIds correctly (#23250)
wjhuang2016 Mar 12, 2021
cd199b2
planner: not push down mpp/join to TiFlash in some cases that TiFlash…
windtalker Mar 12, 2021
2bea06e
util, types: don't let SPM be affected by charset (#23161)
rebelice Mar 12, 2021
b534ec7
store/tikv: remove kv.Version from package store/tikv (#23282)
AndreMouche Mar 13, 2021
46f5f21
ddl: fix ddl hang over when it meets panic in cancelling path (#23204)
AilinKid Mar 13, 2021
3641cd4
executor: fix split table with large integers (#21277)
tangenta Mar 15, 2021
cad8e15
store/tikv: remove kv.Snaphost from store/tikv (#23318)
AndreMouche Mar 15, 2021
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 .build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ task DownloadLinter -If (-not (Test-Path $tools.Linter.Path)) {
}

task RunLinter DownloadLinter, {
exec { & $tools.Linter.Path run -v --disable-all --deadline=3m --enable=misspell --enable=ineffassign $directories }
exec { & $tools.Linter.Path run -v --disable-all --deadline=3m --enable=misspell --enable=ineffassign --enable=varcheck $directories }
}

task GoModTidy {
Expand Down
11 changes: 10 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sig/execution:
- distsql/*
- executor/*
- !executor/brie*
- util/chunk/*
- util/disk/*
- util/execdetails/*
Expand All @@ -22,12 +23,20 @@ sig/planner:
component/statistics:
- statistics/*

sig/DDL:
sig/sql-infra:
- ddl/*
- domain/*
- infoschema/*
- session/*
- server/*
- privilege/*
- plugin/*
- config/*
- meta/*
- owner/*

component/config:
- config/*

sig/migrate:
- executor/brie*
2 changes: 1 addition & 1 deletion .github/workflows/assign_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Run issues assignment to project SIG DDL Kanban
uses: srggrs/assign-one-project-github-action@1.2.0
if: |
contains(github.event.issue.labels.*.name, 'sig/DDL') ||
contains(github.event.issue.labels.*.name, 'sig/infra') ||
contains(github.event.issue.labels.*.name, 'component/binlog') ||
contains(github.event.issue.labels.*.name, 'component/charset') ||
contains(github.event.issue.labels.*.name, 'component/infoschema') ||
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ explain_test
cmd/explaintest/explain-test.out
cmd/explaintest/explaintest_tidb-server
cmd/explaintest/portgenerator
cmd/explaintest/s/
*.fail.go
tools/bin/
vendor
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ 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

Expand Down
89 changes: 14 additions & 75 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,63 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

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

# Ensure GOPATH is set before running build process.
ifeq "$(GOPATH)" ""
$(error Please set the environment variable GOPATH before running `make`)
endif
FAIL_ON_STDOUT := awk '{ print } END { if (NR > 0) { exit 1 } }'

CURDIR := $(shell pwd)
path_to_add := $(addsuffix /bin,$(subst :,/bin:,$(GOPATH))):$(PWD)/tools/bin
export PATH := $(path_to_add):$(PATH)

GO := GO111MODULE=on go
GOBUILD := $(GO) build $(BUILD_FLAG) -tags codes
GOBUILDCOVERAGE := GOPATH=$(GOPATH) cd tidb-server; $(GO) test -coverpkg="../..." -c .
GOTEST := $(GO) test -p $(P)
OVERALLS := GO111MODULE=on overalls
STATICCHECK := GO111MODULE=on staticcheck
TIDB_EDITION ?= Community

# Ensure TIDB_EDITION is set to Community or Enterprise before running build process.
ifneq "$(TIDB_EDITION)" "Community"
ifneq "$(TIDB_EDITION)" "Enterprise"
$(error Please set the correct environment variable TIDB_EDITION before running `make`)
endif
endif

ARCH := "`uname -s`"
LINUX := "Linux"
MAC := "Darwin"
PACKAGE_LIST := go list ./...| grep -vE "cmd"
PACKAGES ?= $$($(PACKAGE_LIST))
PACKAGE_DIRECTORIES := $(PACKAGE_LIST) | sed 's|github.com/pingcap/$(PROJECT)/||'
FILES := $$(find $$($(PACKAGE_DIRECTORIES)) -name "*.go")

FAILPOINT_ENABLE := $$(find $$PWD/ -type d | grep -vE "(\.git|tools)" | xargs tools/bin/failpoint-ctl enable)
FAILPOINT_DISABLE := $$(find $$PWD/ -type d | grep -vE "(\.git|tools)" | xargs tools/bin/failpoint-ctl disable)

LDFLAGS += -X "github.com/pingcap/parser/mysql.TiDBReleaseVersion=$(shell git describe --tags --dirty --always)"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBBuildTS=$(shell date -u '+%Y-%m-%d %H:%M:%S')"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBGitHash=$(shell git rev-parse HEAD)"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBGitBranch=$(shell git rev-parse --abbrev-ref HEAD)"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBEdition=$(TIDB_EDITION)"

TEST_LDFLAGS = -X "github.com/pingcap/tidb/config.checkBeforeDropLDFlag=1"
COVERAGE_SERVER_LDFLAGS = -X "github.com/pingcap/tidb/tidb-server.isCoverageServer=1"

CHECK_LDFLAGS += $(LDFLAGS) ${TEST_LDFLAGS}

TARGET = ""

# VB = Vector Benchmark
VB_FILE =
VB_FUNC =

include Makefile.common

.PHONY: all clean test gotest server dev benchkv benchraw check checklist parser tidy ddltest

Expand All @@ -88,7 +32,7 @@ dev: checklist check test
# Install the check tools.
check-setup:tools/bin/revive tools/bin/goword tools/bin/gometalinter tools/bin/gosec

check: fmt errcheck unconvert lint tidy testSuite check-static vet staticcheck
check: fmt errcheck unconvert lint tidy testSuite check-static vet staticcheck errdoc

# These need to be fixed before they can be ran regularly
check-fail: goword check-slow
Expand All @@ -108,6 +52,7 @@ check-static: tools/bin/golangci-lint
tools/bin/golangci-lint run -v --disable-all --deadline=3m \
--enable=misspell \
--enable=ineffassign \
--enable=varcheck \
$$($(PACKAGE_DIRECTORIES))

check-slow:tools/bin/gometalinter tools/bin/gosec
Expand All @@ -127,6 +72,10 @@ gogenerate:
@echo "go generate ./..."
./tools/check/check-gogenerate.sh

errdoc:tools/bin/errdoc-gen
@echo "generator errors.toml"
./tools/check/check-errdoc.sh

lint:tools/bin/revive
@echo "linting"
@tools/bin/revive -formatter friendly -config tools/check/revive.toml $(FILES)
Expand All @@ -147,10 +96,8 @@ testSuite:
@echo "testSuite"
./tools/check/check_testSuite.sh

clean:
clean: failpoint-disable
$(GO) clean -i ./...
rm -rf *.out
rm -rf parser

# Split tests for CI to run `make test` in parallel.
test: test_part_1 test_part_2
Expand All @@ -177,16 +124,16 @@ gotest: failpoint-enable
ifeq ("$(TRAVIS_COVERAGE)", "1")
@echo "Running in TRAVIS_COVERAGE mode."
$(GO) get github.com/go-playground/overalls
@export log_level=error; \
@export log_level=info; \
$(OVERALLS) -project=github.com/pingcap/tidb \
-covermode=count \
-ignore='.git,vendor,cmd,docs,LICENSES' \
-ignore='.git,vendor,cmd,docs,tests,LICENSES' \
-concurrency=4 \
-- -coverpkg=./... \
|| { $(FAILPOINT_DISABLE); exit 1; }
else
@echo "Running in native mode."
@export log_level=fatal; export TZ='Asia/Shanghai'; \
@export log_level=info; export TZ='Asia/Shanghai'; \
$(GOTEST) -ldflags '$(TEST_LDFLAGS)' $(EXTRA_TEST_ARGS) -cover $(PACKAGES) -check.p true -check.timeout 4s || { $(FAILPOINT_DISABLE); exit 1; }
endif
@$(FAILPOINT_DISABLE)
Expand All @@ -205,17 +152,6 @@ tikv_integration_test: failpoint-enable
$(GOTEST) ./store/tikv/. -with-tikv=true || { $(FAILPOINT_DISABLE); exit 1; }
@$(FAILPOINT_DISABLE)

RACE_FLAG =
ifeq ("$(WITH_RACE)", "1")
RACE_FLAG = -race
GOBUILD = GOPATH=$(GOPATH) $(GO) build
endif

CHECK_FLAG =
ifeq ("$(WITH_CHECK)", "1")
CHECK_FLAG = $(TEST_LDFLAGS)
endif

server:
ifeq ($(TARGET), "")
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o bin/tidb-server tidb-server/main.go
Expand Down Expand Up @@ -301,6 +237,9 @@ tools/bin/unconvert: tools/check/go.mod
tools/bin/failpoint-ctl: go.mod
$(GO) build -o $@ github.com/pingcap/failpoint/failpoint-ctl

tools/bin/errdoc-gen: go.mod
$(GO) build -o $@ github.com/pingcap/errors/errdoc-gen

tools/bin/golangci-lint:
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b ./tools/bin v1.29.0

Expand Down
80 changes: 80 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Copyright 2020 PingCAP, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.

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

# Ensure GOPATH is set before running build process.
ifeq "$(GOPATH)" ""
$(error Please set the environment variable GOPATH before running `make`)
endif
FAIL_ON_STDOUT := awk '{ print } END { if (NR > 0) { exit 1 } }'

CURDIR := $(shell pwd)
path_to_add := $(addsuffix /bin,$(subst :,/bin:,$(GOPATH))):$(PWD)/tools/bin
export PATH := $(path_to_add):$(PATH)

GO := GO111MODULE=on go
GOBUILD := $(GO) build $(BUILD_FLAG) -tags codes
GOBUILDCOVERAGE := GOPATH=$(GOPATH) cd tidb-server; $(GO) test -coverpkg="../..." -c .
GOTEST := $(GO) test -p $(P)
OVERALLS := GO111MODULE=on overalls
STATICCHECK := GO111MODULE=on staticcheck
TIDB_EDITION ?= Community

# Ensure TIDB_EDITION is set to Community or Enterprise before running build process.
ifneq "$(TIDB_EDITION)" "Community"
ifneq "$(TIDB_EDITION)" "Enterprise"
$(error Please set the correct environment variable TIDB_EDITION before running `make`)
endif
endif

ARCH := "`uname -s`"
LINUX := "Linux"
MAC := "Darwin"
PACKAGE_LIST := go list ./...| grep -vE "cmd|github.com\/pingcap\/tidb\/tests"
PACKAGES ?= $$($(PACKAGE_LIST))
PACKAGE_DIRECTORIES := $(PACKAGE_LIST) | sed 's|github.com/pingcap/$(PROJECT)/||'
FILES := $$(find $$($(PACKAGE_DIRECTORIES)) -name "*.go")

FAILPOINT_ENABLE := $$(find $$PWD/ -type d | grep -vE "(\.git|tools)" | xargs tools/bin/failpoint-ctl enable)
FAILPOINT_DISABLE := $$(find $$PWD/ -type d | grep -vE "(\.git|tools)" | xargs tools/bin/failpoint-ctl disable)

LDFLAGS += -X "github.com/pingcap/parser/mysql.TiDBReleaseVersion=$(shell git describe --tags --dirty --always)"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBBuildTS=$(shell date -u '+%Y-%m-%d %H:%M:%S')"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBGitHash=$(shell git rev-parse HEAD)"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBGitBranch=$(shell git rev-parse --abbrev-ref HEAD)"
LDFLAGS += -X "github.com/pingcap/tidb/util/versioninfo.TiDBEdition=$(TIDB_EDITION)"

TEST_LDFLAGS = -X "github.com/pingcap/tidb/config.checkBeforeDropLDFlag=1"
COVERAGE_SERVER_LDFLAGS = -X "github.com/pingcap/tidb/tidb-server.isCoverageServer=1"

CHECK_LDFLAGS += $(LDFLAGS) ${TEST_LDFLAGS}

TARGET = ""

# VB = Vector Benchmark
VB_FILE =
VB_FUNC =

RACE_FLAG =
ifeq ("$(WITH_RACE)", "1")
RACE_FLAG = -race
GOBUILD = GOPATH=$(GOPATH) $(GO) build
endif

CHECK_FLAG =
ifeq ("$(WITH_CHECK)", "1")
CHECK_FLAG = $(TEST_LDFLAGS)
endif
Loading