Commit Graph

329 Commits

Author SHA1 Message Date
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
811253785c planner, executor: add stale read compatibility for temporary table (#25206) 2021-06-07 21:06:28 +08:00
0f151af7c5 *: add telemetry support for CTE (#25022) 2021-06-03 14:46:27 +08:00
7811bf9a37 *: use pprof profile to collect CPU time group by SQL and plan digest (#24892) 2021-06-02 12:51:39 +08:00
f3557bb591 planner, executor: supports select statement with AS OF (#24613) 2021-05-27 21:11:35 +08:00
f79dc8b218 executor: pessimistic lock on the temporary table should not be written to TiKV (#24737) 2021-05-26 12:41:34 +08:00
eeb6641046 *: fix missing reset for DurationParse (#24468) 2021-05-25 20:57:34 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
xhe
bfdad7c752 *: milisecond test and infoschema fix (#24820) 2021-05-24 18:27:34 +08:00
d2bdfd51b7 store/tikv: move transaction options out to /kv (#24619) 2021-05-13 17:49:39 +08:00
b1d134d7d9 txn: Add txn state's view (#22908) 2021-05-12 19:25:40 +08:00
xhe
5e9e0e6e37 *: consitent get infoschema (#24230) 2021-05-10 21:00:36 +08:00
0ec8f2d9fb store/tikv: remove use of Priority transaction options in store/tikv (#24360) 2021-04-29 13:59:57 +08:00
6bea505237 store/tikv:move error from kv into package error (#24294) 2021-04-27 15:21:56 +08:00
a53cf42075 execdetails: move execdetails to store/tikv (#23985) 2021-04-15 15:13:55 +08:00
7d1a6a373d executor: fix logging format of prepared statements (#16062) (#22984) 2021-04-14 16:59:52 +08:00
69675ead57 store/tikv: move CommitDetails and LockDetails to tikv/util (#23854)
Signed-off-by: disksing <i@disksing.com>

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-04-09 20:56:24 +08:00
f9708e6043 *: collect transaction write duration/throughput metrics for SLI/SLO (#23462) 2021-03-30 11:19:24 +08:00
f08e76cb1c store/tikv/kv:move tikv/error.go to tikv/kv/error.go (#23627) 2021-03-30 11:03:23 +08:00
5715eefd2b *: Add the metric about the SQL with TiFlash Success (#23426) 2021-03-24 22:15:37 +08:00
efe172b0e0 store/tikv:move option from kv to tikv, and make define as a normal int (#23171) 2021-03-22 20:13:36 +08:00
f34afc4e28 executor: fix linter --enable=deadcode check error in executor(#22979) (#23111) 2021-03-18 16:17:36 +08:00
83e70f74f0 executor: inject random panic to AggExec (#23139) 2021-03-09 16:38:55 +08:00
4c0fe88a71 store/tikv: resolve sessionctx dependency (#22584)
Signed-off-by: disksing <i@disksing.com>
2021-01-29 17:09:14 +08:00
8d6ddedfb1 session,executor: fix point get under @@tidb_snapshot (#22460)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-21 14:43:19 +08:00
42edd7a29f executor: metrics slow query is divided into internal and general (#22350) 2021-01-15 14:26:57 +08:00