Commit Graph

307 Commits

Author SHA1 Message Date
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
fe9d3161fa executor: store correct plan hint in statements_summary when log level is 'debug' (#22219) 2021-01-08 14:03:10 +08:00
fb4426b675 executor: avoid log duplicate index name in slow-log (#22057)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-30 20:13:43 +08:00
8144e1395d *:Adapt ScanDetailV2 in KvGet and KvBatchGet Response (#21562) 2020-12-30 17:02:44 +08:00
9ef7246d29 executor: fix data race in extractTxnScope (#21929) 2020-12-23 15:34:30 +08:00
7b76edcfe1 *: support baseline capture for prepared statements (#21271) 2020-12-22 16:21:59 +08:00
259a89ade2 executor: set StmtType correctly in SummaryStmt for failed queries (#21855)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-12-17 18:41:15 +08:00
22e5ebd310 *: use the Local TSO to update ForUpdateTS (#21490)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-04 13:41:47 +08:00
29a83c2cd8 executor hptc ycsb-worloade: Make use of AppendRows in all cases (#21163) 2020-11-29 16:21:00 +08:00
4caa23e8d2 session: add encoded plan cache to avoid repeated encode plan when recording slow-log and statement (#21139) 2020-11-23 15:30:27 +08:00
2c66371d8b planner, sessionctx : Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding (#18017) 2020-11-20 20:43:23 +08:00
3ed192eb0d executor,server: fix pessimistic "insert select for update" return malformed packet (#20584)
Signed-off-by: lysu <sulifx@gmail.com>
2020-10-27 19:50:24 +08:00
e302200999 executor: force print slow log when trace is enabled (#20569) 2020-10-22 11:02:25 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
5996c5681c *: Support query backoff detail in SLOW_QUERY and add runtime stats columns to STATEMENTS_SUMMARY、SLOW_QUERY (#20300) 2020-10-14 17:27:07 +08:00
98f5ca4a8d txn: support Oracle-like serializable isolation (#20265)
Signed-off-by: Tina Fritz <tina77fritz@gmail.com>
2020-10-14 13:46:24 +08:00
c704b9756e executor: add runtime information for DML statement in explain analyze (#19106) 2020-10-10 13:34:53 +08:00
92a04ef024 trace: tee logs to runtime/trace output (#19994) 2020-09-23 18:45:38 +08:00
91b6d9eedc executor: fix unexpected 'invalid auto-id' error in pessimistic txn retry (#20123) 2020-09-22 10:21:41 +08:00
70a567e4cb session: refine error message desensitization (#19409) 2020-09-15 16:00:01 +08:00
bada2801ac *: fix cop task runtime information is wrong in the concurrent executor (#19849)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-11 14:14:37 +08:00
0fc03a9f71 session: use new PD TS as forUpdateTS on pessimistic write conflict (#19916)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-09-10 16:35:20 +08:00
47270445d9 server: fix the missing detachment for the mem/disk tracker (#19794) 2020-09-08 10:48:51 +08:00