Commit Graph

283 Commits

Author SHA1 Message Date
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
915d84d7ad executor: add pessimistic lock keys runtime information (#19547)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-01 20:46:31 +08:00
5d3cdf5d17 *: add execution retry time in slow log and slow_query and statement_summary (#19625)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-01 11:16:52 +08:00
db3c96b3ff executor: add transaction commit runtime information in slow log (#19366) 2020-08-27 16:18:47 +08:00
253d43fb51 *: add execution retry count in slow log and slow_query (#19487) 2020-08-27 14:18:06 +08:00
9620b710a0 executor: fix log desensitization bug in prestmt (#19392) 2020-08-24 17:31:51 +08:00
1905ea0f55 executor: reduce log spam on pessimistic conflict (#18365)
Fixes #18255

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-30 11:27:03 +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
b193db8b49 planner: ban tiflash engine when the statement is not read only (#18458)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-14 11:43:48 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
5405fcc4c3 add conn id into ctx (#18158)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-22 13:57:51 +08:00
dfca52cb0b executor: remove sensitive information in slow-log and statement (#18107) 2020-06-19 16:30:17 +08:00
c2c02cde4b *: support record kv/pd time for a SQL statement (#17591) 2020-06-18 21:17:48 +08:00
405a5d009d sessionctx: add optimization-time and wait-TS-time into the slow log (#17869) 2020-06-10 10:41:50 +08:00
0ec197fae0 sessionctx: add some information about the rewriting phase into the slow log (#17569) 2020-06-09 13:49:42 +08:00
35e2d3a081 *: add global variable tidb_slow_log_masking to control masking slow log query (#17637) 2020-06-05 09:15:41 +08:00
2c55650617 *: make QPS more realistic (#17560) 2020-06-04 20:00:43 +08:00
55d9d6ca1e sessionctx,infoschema,executor,util: Show disk usage of a query in slow query and statement summary (#17132) 2020-05-26 22:03:40 +08:00
f72b5984dd executor: set the DDL query string instead of execute (#17407) 2020-05-26 15:48:13 +08:00
72a789a247 planner, infoschema : add columns about plan cache in 'performance_schema.events_statements_summary_by_digest' (#16476) 2020-05-26 13:10:02 +08:00
3f2d35a60b RFC + executor: Support global memory tracker (#16777) 2020-05-13 15:49:53 +08:00
cfec13772b sessionctx: record if a query hits plan cache in slow log (#17088) 2020-05-12 15:49:05 +08:00
7facf07f2e infoschema: fix exec_count of prepared statements in statement summary (#17064) 2020-05-11 14:54:05 +08:00
fcfedb77fc executor: bootstrap SQLs are not treated as internal queries in statement summary (#17024) 2020-05-09 16:01:35 +08:00
b32e834a8d server: let select for update could be recorded for slow log and statements (#16743) 2020-04-28 12:11:56 +08:00