c283bc66bd
txn:support wait second grammar for "select for update" ( #19630 )
...
* support select for update wait seconds grammar
* use function
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-07 13:47:59 +08:00
4f9b3508dd
infoschema: add digest for process list ( #19622 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-07 13:23:39 +08:00
ce849c3e19
*: remove DirtyDB and DirtyTable to reduce memory usage ( #19042 )
2020-09-04 16:50:36 +08:00
f25360e3be
test: try to stable some tests ( #19710 )
...
Co-authored-by: Yiding Cui <winoros@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-03 14:22:19 +08:00
6f1311f4fc
session: enable clustered index by default for new clusters ( #19688 )
2020-09-02 12:00:58 +08:00
f82e5320ad
ddl: handle store closed in doDDLJob ( #18844 )
...
* ddl: handle store closed in doDDLJob
* fix typo
* fix test
* fix test
* address comment
* address comments
* fix test
* address comment
* address comment
* fix data race
* fix data race
* don't repeat code
* address comment
* adress comment
* avoid failpoint change between two injection
* add comments
* change behaviour, fix test
* fix build option
* remove used variable
* Revert "remove used variable"
This reverts commit df93c431163515a496015f20f323ea91480f0020.
* modify comment
* try fix deadlock
* try fix deadlock
* try fix test
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
Co-authored-by: Lynn <zimu_xia@126.com >
2020-09-01 11:27:33 +08:00
b133ae9d30
session/bootstrap: disable clustered index ( #19623 )
2020-08-31 19:44:54 +08:00
438945d294
*: enable clustered index by default ( #19582 )
2020-08-31 16:54:51 +08:00
6cba2702c0
session: fix mysql_list_fields leaking table info ( #19554 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-29 11:30:21 +08:00
117b3e4400
plan, partition: re-implement hash partition pruning to support in and or and some other functions ( #18574 )
2020-08-28 17:14:42 +08:00
e356136b72
*: annotate execution info in runtime/trace ( #19407 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-27 11:23:36 +08:00
945f7cc4a0
ddl, tables: support the column type change between the integer types ( #19059 )
2020-08-26 21:30:14 +08:00
b6560d0e00
update lease ( #19382 )
2020-08-24 18:14:58 +08:00
9620b710a0
executor: fix log desensitization bug in prestmt ( #19392 )
2020-08-24 17:31:51 +08:00
6b3964c75d
add system variable to control amend on or off ( #19321 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-20 20:20:51 +08:00
55bd479623
session: add mysql.schema_index_usage table ( #19254 )
2020-08-19 15:58:20 +08:00
c5c7bf87bb
*: support CREATE / DROP / ADMIN RELOAD STATISTICS ( #18880 )
2020-08-11 17:27:48 +08:00
3c9f790bb5
server: add shutdown, refresh, resetconnection RPCs ( #18893 )
...
* server: add shutdown and refresh RPCs
There are several legacy RPC commands which TiDB does not support. This reorganizes the main dispatcher to follow the same order as the protocol to make it clearer which ones are missing.
Support for ComRefresh (often used with mysqldump -F to rotate binary logs) and ComShutdown (legacy, but may still be used by an old client) are added.
I attempted to add ComStatistics, but the RPC is requires a different response packet. So I am going to skip for now.
* Add com_reset_connection rpc
* Add more tests
* Fix reset connection (lost privileges, current db)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-11 13:02:17 +08:00
b75a30fda8
transaction: always lock keys with presume not exists flag ( #19071 )
...
* transaction: lock delete unique index key
* always lock for key with presume not exists flag
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-09 22:50:48 +08:00
2d54976495
*: convert lockKeys to key flag ( #18966 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-07 10:23:59 +08:00
574540aa06
fix pessimistic check ( #19004 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 14:00:43 +08:00
931ff98df5
simple fixes for the staticcheck linter ( #18923 )
...
Note that this found 2 bugs where errors were being silently ignored.
These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 13:38:17 +08:00
031143abbb
brie: update test to create mutli tables ( #18993 )
2020-08-06 11:17:12 +08:00
b363937744
transaction: fix union select for update race ( #19006 )
...
* transaction: fix LockKeys race
* do not update delta for lock keys
* fix more race
* fix another race
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 09:24:17 +08:00
75d58d58e8
session: switch to pessimistic txn mode for autocommit statement retry. ( #18952 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-04 16:50:47 +08:00
22243f8e53
test: fix unstable TestPessimisticLockOnPartition ( #18963 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-04 13:47:33 +08:00
d0639b0056
*: use the newly designed memdb ( #18657 )
...
* *: use the newly designed memdb
* address comments
* remove duplicated comments
Co-authored-by: Evan Zhou <coocood@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-03 20:51:05 +08:00
6cf50d3f89
txn: amend pessimistic transactions for modify column ddl ( #18856 )
2020-08-03 17:07:17 +08:00
03003538d1
*: fix a lot of typos ( #18917 )
2020-08-03 11:03:33 +08:00
6ce8f0f56a
txn: support pessimistic transaction amend for specific ddls ( #18447 )
2020-07-29 11:35:31 +08:00
5973d144de
brie: add integration test for br ( #18797 )
...
* brie: add integration test for br
* update br dependency
* fix ci
* fix ci
* address comment
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-28 19:59:02 +08:00
29178dfa8d
planner, executor: support broadcast join for tiflash engine. ( #17232 )
...
* support batch cop for tiflash
* support batch cop
* support join push down to tiflash
* refine
* change pb
* push join
* fix
* add hint
* refine hint
* add ranges
* fix
* fix
* fix push down
* fix index
* enable distsql for join
* add a session var to disable/enable broadcast join
* fix bug
* fix bug
* tiny fix
* enable cast decimal pushdown to tiflash
* fix
* fix bc join bug
* make broadcast plan stable
* refine code
* fix bug
* basic support for multi table broadcast join
* fix bug
* basic cbo for broadcast join
* improve
* fix bug
* remote useless code
* add tests
* pass unit tests
* refine code
* support execute summary info for broadcast join
* fix bug in explain for broadcast join
* format code
* remove un-needed code
* fix make dev
* address comments
* Hanfei/join merge (#7 )
* enable exec details for batch cop
* format code
* fix test
* change tidb_opt_broadcast_join to global vars
* Ban cartesian join to be pushed down to TiFlash (#8 )
* merge master (#10 )
* merge master
* fix bug
* fix bug
* fix ut
* check session var conflict
* Add perfer local hint for broadcast join (#12 )
* update
* remove useless code
* remove useless code
* update parser
* add test for prefer local join
* use bcj_local
* update go.mod
* refine planner
* refine comments
* fix make dev
* fix make dev
* update parser
* address comments
* fix make dev
* disable broadcast join when new collation is enabled
* Update planner/core/exhaust_physical_plans.go
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com >
* address comments
* fix
* address comments
* fix tests
* address comments
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn >
Co-authored-by: xufei <xufei@pingcap.com >
Co-authored-by: 虎 <ichneumon.hu@foxmail.com >
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com >
2020-07-27 12:41:36 +08:00
1fed1fb895
tests: remove incorrect use of FLUSH PRIVILEGES ( #18361 )
2020-07-24 23:25:14 +08:00
596c0eb107
session: fix the problem that lost connection in the next sql after out of memory quota ( #18567 )
...
* fix lost connection in the next sql after out of memory quota
* Fix the problem that a statement panic in a transaction but the transaction did not rollback.
* add recover in StmtCommit
* Fix the problem that a statement panic in a transaction but the transaction did not rollback again.
* Fix the problem that a statement panic in a transaction but the transaction did not rollback again.
* fix lost connection
* fix errors
* remove memTracker from StmtCommit
Co-authored-by: Zejun Li <lizejun@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-22 18:49:04 +08:00
ef913dc0c8
*: fix some missing set kv variables ( #18620 )
...
Signed-off-by: Tina Fritz <tina77fritz@gmail.com >
2020-07-17 15:05:47 +08:00
2a5fb55194
session: stabilize test TestBatchCommit ( #18625 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-07-16 12:52:18 +08:00
c277e67ac9
session: add a mutex in TxnState.initStmtBuf ( #18617 )
2020-07-16 11:40:16 +08:00
297acf7e82
log: add tidb_log_desensitization global variable to control whether do desensitization when log query ( #18578 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-07-15 15:44:56 +08:00
761a961ba0
kv: refactor MemBuffer and reduce the memory usage ( #18372 )
2020-07-15 15:26:25 +08:00
b122d58ccb
executor: add deprecation warning for hash_join_concurrency ( #18453 )
...
Signed-off-by: niedhui <niedhui@gmail.com >
2020-07-13 19:29:37 +08:00
2b0b34b88e
executor: kill tableReader for each connection correctly ( #18277 )
2020-07-09 18:09:08 +08:00
2dfae9850a
executor: make hashjoin using executor_concurrency ( #18213 )
2020-07-08 13:41:10 +08:00
3cd5260773
ddl: collect actionTypes for schema change ( #18195 )
...
* record action types in schema change history
* change comments
* remove comment
* refactor, remove some params and return values
* change value to pointer, remove useless comments
* refactor comments
* change return value
* refactor
* remove all info
* fix action type append
* update comment
Co-authored-by: Lynn <zimu_xia@126.com >
2020-07-08 11:41:09 +08:00
180c021271
kv: fix KVVars not set on Transaction ( #18351 )
2020-07-03 16:20:02 +08:00
4eb9d83eae
*: allow different shard_row_id prefixes in one transaction ( #18181 )
...
* *: allow different shard_row_id prefixes in one transaction
* Apply suggestions from code review
Co-authored-by: tangenta <tangenta@126.com >
* Update sessionctx/variable/session.go
Co-authored-by: tangenta <tangenta@126.com >
* add comments
* add unit test
* add var validation
* update builtinGlobalVariable
Co-authored-by: tangenta <tangenta@126.com >
2020-06-29 14:38:06 +08:00
773b29102d
charset: add missing ascii check( #18193 )
2020-06-27 15:34:26 +08:00
3b63270909
telemetry: Add telemetry initial implementation ( #18180 )
...
Signed-off-by: Breezewish <me@breeswish.org >
Co-authored-by: crazycs <crazycs520@gmail.com >
Co-authored-by: Lynn <zimu_xia@126.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-06-24 14:41:46 +08:00
c98514e751
executor: unify executor concurrency ( #16999 )
2020-06-22 17:39:32 +08:00
63c0ef8e5d
planner: save explain result of plan in session for `explai ... ( #17687 )
2020-06-19 14:07:53 +08:00
c2c02cde4b
*: support record kv/pd time for a SQL statement ( #17591 )
2020-06-18 21:17:48 +08:00