Commit Graph

354 Commits

Author SHA1 Message Date
856e82ad6a txn: add methods to handle error for TxnManager (#34489)
close pingcap/tidb#34533
2022-05-13 16:00:37 +08:00
0703a64f76 planner: plan cache always check scheme valid in RC isolation level (#34523)
close pingcap/tidb#34447
2022-05-13 10:42:35 +08:00
bbd7541322 *: refine 'tidb_snapshot' behavior (#34573)
close pingcap/tidb#34529
2022-05-11 20:54:34 +08:00
33236ba8d7 *: track analyze memory usage separately with quota (#33054)
ref pingcap/tidb#29938, close pingcap/tidb#33065
2022-05-10 20:32:35 +08:00
2258bc54c4 txn: Add EnterNewTxn and OnStmtStart methods to TxnManager (#34263)
close pingcap/tidb#34390
2022-05-07 21:02:32 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
698a4ffe00 *: move config file option query-log-max-len to sysvar (#34305)
ref pingcap/tidb#33769
2022-05-04 00:46:54 +08:00
0d5ac6f3cb sysvar, config: mapping config settings to system variables. (#33279)
ref pingcap/tidb#32887
2022-04-29 13:20:52 +08:00
fb342ff861 topsql: fix issue of topsql failed catch the running SQL when topsql is enabled in execution (#33861)
close pingcap/tidb#33859
2022-04-26 13:16:51 +08:00
d23a81488a *: Move stale read context to TxnManager (#33812)
close pingcap/tidb#31954, close pingcap/tidb#33014, close pingcap/tidb#33832
2022-04-25 16:52:51 +08:00
cff88d7bc3 topsql: remove redundant attach sql information (#33806)
close pingcap/tidb#33805
2022-04-08 17:02:32 +08:00
fef98f2239 domain,server,session: optimize gc safepoint advancing for internal transaction (#32726)
close pingcap/tidb#32725
2022-04-07 14:14:32 +08:00
d4d43ba0b4 txn: support read consistency read with ts checking (#32922)
close pingcap/tidb#33159
2022-03-16 20:49:52 +08:00
00e96229c1 planner: add more test cases for auto-capture and support to capture more hints (#33051) 2022-03-15 20:01:51 +08:00
9c64224c49 *: Reduce data inconsistencies (#31547)
ref pingcap/tidb#26833
2022-02-11 13:51:36 +08:00
d8fd06dc84 metrics,executor: add metrics for reading from table cache (#32171)
close pingcap/tidb#29958
2022-02-11 12:17:36 +08:00
34ce5b5e60 topsql: optimize life cycle of stmtstats (#31727)
ref pingcap/tidb#31704
2022-01-17 21:11:45 +08:00
3688609096 executor: fix prepare 'do 1' statement panic (#31142)
close pingcap/tidb#31141
2021-12-30 15:09:50 +08:00
8a83d01ac6 topsql: add sql sum execution duration information (#31143) 2021-12-30 10:53:50 +08:00
e9ab05f90f topsql: move topsql variable to topsql/state for avoid import cycle (#31134)
close pingcap/tidb#31136
2021-12-29 19:51:50 +08:00
88232307df executor: fix stmt summary nil pointer panic on the cached table (#31079)
close pingcap/tidb#31077
2021-12-29 15:31:50 +08:00
1f6d2ddfb9 *: Use TxnManager.GetTxnInfoSchema() to get the txn infoschema (#30934)
close pingcap/tidb#30933
2021-12-22 17:39:47 +08:00
529ce88c1c *: add TxnManager to manage txn in session (#30574)
* *: add TxnManager to manage txn in session

* modify

* add tests

* move failpoint content to a single file
2021-12-22 13:53:43 +08:00
fe1aaf2fd7 topsql: introduce stmtstats and sql execution count (#30277) 2021-12-21 15:43:47 +08:00
d83ee8cfda executor,util: write slow query to slow log no matter what log level (#30461) 2021-12-07 20:49:56 +08:00
891517f23e config: make EnableSlowLog atomic (#30346) 2021-12-03 11:47:54 +08:00
426a527a93 * : statement summary should know the slow write is blocked on read lock lease (#30166) 2021-12-01 09:47:53 +08:00
759aab5909 executor: remove useless parameter (#30043) 2021-11-23 14:51:50 +08:00
4aec743624 *: add IsExplicitTxn in slow log (#29413) 2021-11-04 14:09:02 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
36bc41ad05 *: reduce object allocation by reuse chunk column (#29064) 2021-10-28 13:14:48 +08:00
a94150a338 *: support select for update of tables (#27861) 2021-10-14 19:17:26 +08:00
d5bd9f030b *: record result_rows in statements_summary and slow log (#28479) 2021-10-12 16:51:25 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
33ac1865c8 session: validate and change tidb_read_staleness input (#28194) 2021-09-22 13:14:45 +08:00
2866e1dfd4 sessionctx: support session variable tidb_read_staleness (#27858) 2021-09-16 15:20:43 +08:00
193b74ecbb executor: rename txnScope as readReplicaScope instead (#27987) 2021-09-14 12:54:40 +08:00
5f674e2547 *: Audit plugin should handle errors and stmt start (#27269) 2021-08-20 11:16:01 +08:00
eb418f3b5a bindinfo: fix SPM doesn't work for CTE (#25583) 2021-08-16 20:47:59 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
155ead5370 executor: fix unstable TestSelectAsOf (#27163) 2021-08-16 11:51:59 +08:00
a8adc4cf8e *: fix many leaks of the test case (#26909) 2021-08-06 13:55:12 +08:00
072cf2791e *: fix some audit log error (#26767) 2021-08-05 19:39:12 +08:00
2b192e3149 topsql: refine collect information for DDL and internal SQL (#26047) 2021-07-15 16:13:36 +08:00
59d835eac5 executor: support forbid tiflash for stale read (#25828) 2021-07-06 13:33:28 +08:00
ec7240edba planner: Rename ExplicitStaleness to IsStaleness (#25791) 2021-06-28 16:15:25 +08:00
799591a06f session: read local dc replicas automatically for stale read (#25525)
* fix select

Signed-off-by: yisaer <disxiaofei@163.com>
2021-06-18 17:13:38 +08:00
xhe
9189ec66ac *: stale reads compatible with prepare (#25156) 2021-06-11 19:32:35 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
d37062fe51 metrics: Add err label for TiFlashQueryTotalCounter (#25317) 2021-06-10 14:28:30 +08:00