Commit Graph

32 Commits

Author SHA1 Message Date
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