Commit Graph

183 Commits

Author SHA1 Message Date
04292a00de session: annotate the previous statement to the error when transaction commit failed (#12087) 2019-09-16 15:15:07 +08:00
0f55274760 infoschema, session: support for events_statements_summary_by_digest (#12017) 2019-09-12 19:53:16 +08:00
57da569736 store/tikv,session: invalidate snapshot cache under pessimistic transaction (#12147) 2019-09-11 20:14:15 +08:00
4ee517cea4 conn: fix lost connection when insert from select panic cause by out of memory quota (#12090) 2019-09-10 15:10:03 +08:00
1ef81a8620 *: replace word error in warning, info, debug logs (#12050) 2019-09-09 18:51:12 +08:00
dffe29355a *: not send tso request when point get with max tso (#11981) 2019-09-03 23:11:49 +08:00
994e14e2e7 *: record previous statement when commit is slow (#11908) 2019-09-03 21:39:35 +08:00
59ea7460a8 planner: PointGet don't rely on names in expression.Column (#11779) 2019-08-26 15:40:39 +08:00
396b094675 *: record query start time to session variables (#11822) 2019-08-22 21:46:17 +08:00
1b998ce4f6 *: record index name in the slow log instead of index id (#11795) 2019-08-22 14:27:47 +08:00
ec681598b6 *: change the query start time to the parsing time (#11159) 2019-08-20 20:35:16 +08:00
2de480855b executor: refine an error log message (#11758) 2019-08-20 15:08:47 +08:00
1c1faab678 *: convert key to hex for logs (#11781) 2019-08-20 11:10:16 +08:00
bc2036987a executor: record prepared stmt in handle_query_duration (#11753) 2019-08-19 15:43:18 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
02ab1ed7ee executor,session: display the tree-like format of the trace statement (#11633) 2019-08-06 14:18:31 +08:00
3f3ead2d59 executor: fix #10513, alias identifier maximum length compatible with MySQL (#10597) 2019-08-05 19:14:11 +08:00
86d8f9a4bb *: add succ filed to slow log and fix shallow copy problem when parse slow log file. (#11417)
Test pass, auto merge by Bot
2019-07-24 19:20:18 +08:00
abbca5375e *: add trace support for subquery (#11182)
Test pass, auto merge by Bot
2019-07-24 19:03:47 +08:00
bedd1b07b0 plugin: add "exec start-time" to GeneralEvent (#11293) 2019-07-18 19:21:01 +08:00
47f449a07d executor: explain analyze panic when processing explain analyze insert ... select ... (#11162) 2019-07-11 11:18:00 +08:00
0d984d8ffc executor: locks key in point get executor for pessimistic transaction (#10972) 2019-06-28 14:06:43 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00
91b889d2b5 store/tikv: fix insert on dup update for pessimistic transaction (#10905) 2019-06-24 14:56:46 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
8183f35563 executor: tiny clean up (#10875)
code refactor for the tracing related code
2019-06-20 16:35:59 +08:00
421de5ef20 executor,server: re-implement the kill statement by checking the Next() function (#10841) 2019-06-20 11:03:21 +08:00
f6be085bc6 executor: tiny refactor the Executor interface (#10846)
Introduce a base() method to get the baseExecutor, so we don't need to add
method from baseExecutor to the Executor interface any more

Before:
```
type Executor interface {
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema

	retTypes() []*types.FieldType
	newFirstChunk() *chunk.Chunk
}
```

After:
```
type Executor interface {
        base() *baseExecutor
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema
}
```
2019-06-19 15:55:28 +08:00
f67352d238 *: print an expensive log when a query exceeds time threshold (#10350) 2019-06-05 20:38:11 +08:00
08e4bd988f store/tikv: support single statement rollback for pessimistic transaction (#10654) 2019-06-05 13:40:12 +08:00
abd013c82f Add tidb_low_resolution_tso session scope variable on master (#10428) 2019-05-22 21:42:57 +08:00
0afa567046 store/tikv: use ConflictCommitTS in WriteConflict error (#10517) 2019-05-17 23:10:58 +08:00
d97e7d93c7 *: refine transaction retry error messages (#10466) 2019-05-15 17:51:07 +08:00
118a88c860 fix pessimistic txn and run pessimistic test (#10432) 2019-05-14 14:57:54 +08:00
373748adf7 *: support pessimistic transaction (experimental feature) (#10297) 2019-05-11 09:48:45 +08:00
d8149580bc session: add the transaction commit time to slow log (#10294) 2019-04-29 11:50:17 +08:00
98dbbffceb executor: fix IsPointGet judgment condition (#10278)
index lookup should not the max ts optimization
2019-04-28 17:47:02 +08:00
f834e5d56f executor: show memory consumption in slow query log (#10162) 2019-04-18 15:16:44 +08:00
2a6c8d610a executor: show more information about cop tasks in slow log (#10165) 2019-04-18 13:39:57 +08:00
7666f688b3 *: add stats version in slow_query and slow log. (#10082) 2019-04-15 18:04:48 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
6125f49baf *: fix the read-only check for the prepare/execute statement (#9723) 2019-04-01 13:27:49 +08:00
0313cbbbde plugin: add audit plugin extension point (#9136) 2019-03-25 15:18:34 +08:00
b8a7328940 executor: fix slow log output format (#9759) 2019-03-18 13:40:04 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
e3983227b4 log: generate digest and log it in slow log (#9662) 2019-03-14 13:45:32 +08:00
80110fbf78 *: refactor slow log format and parse slow query log to SLOW_QUERY table. (#9290) 2019-03-11 14:42:29 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00