Commit Graph

46 Commits

Author SHA1 Message Date
55361cf75c linter: find inappropriate key in call to context.WithValue (#40769)
close pingcap/tidb#40796
2023-01-28 18:03:53 +08:00
b477b1c946 *: Supports create/alter/drop resource group (#40188)
ref pingcap/tidb#38825
2023-01-09 13:44:22 +08:00
669ba5cbae *: add warnings to slow log and slow query table (#39884)
ref pingcap/tidb#39893
2023-01-05 23:34:21 +08:00
a52656fde4 *: add binary plan in stmt summary and slow log/query (#35698)
close pingcap/tidb#35889
2022-07-20 18:21:09 +08:00
c56c036d2a *: refactor placement bundle in infoschema (#33967)
close pingcap/tidb#33968
2022-04-15 11:04:35 +08:00
11681b4895 infoschema: add column of Has_more_result into table of slow_query (#33840)
close pingcap/tidb#33733
2022-04-11 11:50:34 +08:00
94c57b3049 executor: migrate test-infra to testify for executor_test.go testSlowQuerySuite (#33561)
close pingcap/tidb#33439
2022-04-01 12:48:29 +08:00
62ec7468e7 executor: fix goroutine leak in querying slow log (#32757)
close pingcap/tidb#32656
2022-03-03 12:49:46 +08:00
d7d6afcd72 *: tiny refactor code to reduce txn conflict on 'table_cache_meta' (#32387)
close pingcap/tidb#32386
2022-03-01 18:33:46 +08:00
c30e8320d8 *: correct use require (#31904)
ref pingcap/tidb#31716
2022-02-07 18:11:35 +08:00
8fb83195c5 executor: migrate test-infra to testify for slow_query_test.go (#30521)
close pingcap/tidb#28615
2022-01-25 12:14:13 +08:00
2e79433b71 test: merge executor's serial tests to other tests (#30711) 2021-12-15 19:36:35 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
9a074f1dbe *: use the real StateRemote interface implementation for cached table (#30066) 2021-12-10 16:55:57 +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
c48db39846 *: support renew lease for read operation on cached table (#29840) 2021-11-22 22:37:49 +08:00
4aec743624 *: add IsExplicitTxn in slow log (#29413) 2021-11-04 14:09:02 +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
d3b1d4bc31 *: fix parsing slow log incorrectly (#28160) 2021-09-29 10:04:46 +08:00
d14566c7ed ddl: add sync bundles logic for creating and droping (#28037) 2021-09-24 00:22:46 +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
8f51a40798 *: optimize query slow query table by avoid decode plan for each row (#26219) 2021-07-19 16:33:34 +08:00
7f25d4f0cc executor, infoschema, planner: optimize query cluster_slow_query (#20750) 2021-01-04 14:23:06 +08:00
43a562f60e *: fix cancel query slow_query doesn't release resource and tiny optimize (#21456) 2020-12-04 15:04:12 +08:00
ea3e4fa519 executor: fix bug when parsing the slow logs if the logNum is small (#20959) 2020-11-23 15:43:14 +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
c808997d25 store, util: adapt scandetailv2 in coprocessor response (#20391) 2020-10-16 14:25:57 +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
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
1d6c62c2ce test: fix unstable tests using failpoint (#19561) 2020-08-31 09:32:26 +08:00
253d43fb51 *: add execution retry count in slow log and slow_query (#19487) 2020-08-27 14:18:06 +08:00
c04bda6db7 *:Speed up parse slow-log when query slow_query #15371 (#19139)
* speed up the slow log query

* speed up slow log query

* change the MaxRow num

* change channel location

* correct

* fix some bug

* fix error situation

* change ctx.Done() location

* update

* Update main.go

* change func name

* fix the len(rows)=0 bug

* remove else

* update slow_query_test

* update slow_query_test.go

* update slow_query_test.go

* update slow_query_test.go

* append offset var

* fix bug

* add notes

* remove fmt

* remove notes

* remove notes

* update

* update

* version back

* update offset

* update

* use len(log)==0 to check

* update

* update offset struct

* update offset

* defer recover

* update slow_query_test

* update offset

* remove fmt.print

* check error first

* update panic situation

* update failpoint test

* update failpoint test

* update panic test

* test

* test

* update test

* update failpoint name

* test

* update slow_query.go

* check err

* Code specification

* remove pointer

* update getLineIndex func

* update setFieldValue func

* debug

* update func name

Co-authored-by: crazycs <crazycs520@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-25 19:00:22 +08:00
37984d7cb0 tests: improve tests for Windows platform (#19088)
* tests: improve tests for Windows platform

* fix race build

* update badger to fix kill issue on Windows

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 17:17:19 +08:00
6a7ba4aafa executor: make the format of the DB field in slow logs be compatible with MySQL (#18389) 2020-07-13 18:39:41 +08:00
ef8ad55082 executor: make the format of user and host fields in slow logs be compatible with MySQL (#18162) 2020-07-06 10:40:21 +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
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
cfec13772b sessionctx: record if a query hits plan cache in slow log (#17088) 2020-05-12 15:49:05 +08:00
3a07cf7fcc executer: add Cop_time in slow log (#16873) 2020-04-28 15:08:09 +08:00
5e4a694897 executor: fix slow_query bug when query with time equal condit… (#16768) 2020-04-24 19:13:13 +08:00
5bdc0eaf50 executor: fix slow_query bug when query with time equal condition (#16445) 2020-04-20 10:52:03 +08:00
b439573a7b executor: fix DATA RACE in TestParseSlowLogFile (#14868) 2020-02-24 23:09:36 +08:00
b06e3e85b2 executor: make SLOW_QUERY support query slow log at any time (#14840) 2020-02-20 19:46:05 +08:00
db65a02402 *: support next chunk for slow_query (#14754) 2020-02-18 18:54:05 +08:00