Commit Graph

590 Commits

Author SHA1 Message Date
92c012c449 log: desensitize of dispatching error and parsing error (#21141) 2020-11-20 15:39:54 +08:00
aa9f7584f8 server: remove prepare stmt if no retry in stmt close() (#20867)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-19 16:20:33 +08:00
27c59c7363 server: make dump binary time more compatible with MySQL (#21127) 2020-11-19 12:03:47 +08:00
160cb9b814 *: fix set tidb_general_log not work (#20993)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-12 13:54:23 +08:00
8eaccd41a9 variable: add txn_scope sys var (#20721) 2020-11-12 11:09:54 +08:00
8d35f17c17 Update the errors dependence to the latest version (#20917) 2020-11-10 09:50:39 +08:00
ae5dc3f69a executor: fix issue of load data statement doesn't record into slow query and statements_summary (#20713)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-04 16:27:01 +08:00
3ba36dcb76 config, server: Add graceful shutdown option (#20649) 2020-11-03 22:55:32 +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
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
9660283d2d infoschema: Provide a system table to query placement rules (#20616) 2020-10-27 14:35:38 +08:00
b8685c5dbf executor: fix float data result (#20525) 2020-10-27 11:37:35 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
04d38f5a9f server: Add table range api to http status server (#20456)
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
2020-10-21 12:40:57 +08:00
d8155e9b66 executor: fix float data accuracy (#20440) 2020-10-15 14:26:25 +08:00
3d4016fe46 *: change file mode to 0644 (#20443)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-10-14 16:35:31 +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
bcdb63b258 executor: fix MAX_EXECUTION_TIME doesn't take effect when query INSPECTION_RESULT table (#20375)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-10-13 21:44:31 +08:00
b892fd8391 server: support for client multi-statement option (#19459) 2020-10-12 13:29:12 +08:00
ba58f9c1f6 opentracing: fix missing opentracing span issue (#20330) 2020-10-09 11:55:41 +08:00
fa81ec51b4 *: refactor sysvars to allow component registration (#20289) 2020-09-29 14:04:24 +08:00
4b98dbaa0a http: add /debug/gogc to set GOGC on the fly (#20247) 2020-09-27 19:54:12 +08:00
92a04ef024 trace: tee logs to runtime/trace output (#19994) 2020-09-23 18:45:38 +08:00
c679f847fc *: Bug Fix/CLUSTER_INFO system table may not work after PD is scaled-in (#19355) 2020-09-16 11:50:03 +08:00
70a567e4cb session: refine error message desensitization (#19409) 2020-09-15 16:00:01 +08:00
e48c4b0a38 server: add auth switch to mysql_native_password (#19603) 2020-09-11 20:35:41 +08:00
8f188b567a server: remove useless code (#15568) 2020-09-11 10:25:25 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
47270445d9 server: fix the missing detachment for the mem/disk tracker (#19794) 2020-09-08 10:48:51 +08:00
48eb295925 *: change some tests using failpoint to serialSuite (#19753)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-03 21:12:58 +08:00
438945d294 *: enable clustered index by default (#19582) 2020-08-31 16:54:51 +08:00
9ed4159619 server: listen port 0 when testing (#19478)
* server: change all port uesd in test to `0`

* fix panic

Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 14:55:52 +08:00
e356136b72 *: annotate execution info in runtime/trace (#19407)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 11:23:36 +08:00
cf0297590e server: fix region table http response (#19437)
Signed-off-by: disksing <i@disksing.com>
2020-08-26 20:50:52 +08:00
7c5cfd7bff server: change dispatch failed log to info level (#19217)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-08-26 10:03:00 +08:00
69bfa3bf26 executor, server: reduce connect/disconnect log spam (#19308)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: goroutine <ngaut@users.noreply.github.com>
2020-08-25 19:17:51 +08:00
d99830ae4e server: support new frame item for cluster index (#19283)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-20 15:45:29 +08:00
18b4e2b1a1 schemas: decrease fetchSchemaConcurrency (#18881)
* decrease fetchSchemaConcurrency

* remove useless code

Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: HuaiyuXu <391585975@qq.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-20 15:06:40 +08:00
172a2d3214 server: make http test listen on port 0 (#19266) 2020-08-19 23:55:48 +08:00
a2e2ce6339 *: use int instead of fmt.Stringer as executor id (#19207) 2020-08-19 13:39:31 +08:00
04b7492c73 server: try to make test TestAllServerInfo stable (#19257) 2020-08-18 18:43:13 +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
acea442814 metrics: add metrics for packet IO (#19087)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-08-11 13:49:47 +08:00
3c9f790bb5 server: add shutdown, refresh, resetconnection RPCs (#18893)
* server: add shutdown and refresh RPCs

There are several legacy RPC commands which TiDB does not support. This reorganizes the main dispatcher to follow the same order as the protocol to make it clearer which ones are missing.

Support for ComRefresh (often used with mysqldump -F to rotate binary logs) and ComShutdown (legacy, but may still be used by an old client) are added.

I attempted to add ComStatistics, but the RPC is requires a different response packet. So I am going to skip for now.

* Add com_reset_connection rpc

* Add more tests

* Fix reset connection (lost privileges, current db)

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-11 13:02:17 +08:00
25bd46b68f server: dump time length as 0 directly for zero value in date/datetime/timestamp type for prepare stmt (#18825) 2020-08-10 13:55:03 +08:00
07ae6078e8 *: support clustered index for fast analyze (#18767) 2020-08-07 19:22:14 +08:00
eb76676221 server: stable tls test in go1.15 (#19064)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-07 19:07:40 +08:00
ceff1fcaf9 *: support generates metrics profile by different type (#18972) 2020-08-06 21:39:23 +08:00
cd3e5ed826 *: update kvproto, PD, BR and unistore dependencies (#18938) 2020-08-05 13:30:26 +08:00
4490148b4e server: correct the length field in reply packets to the client for enum and set column types (#18897) 2020-08-04 20:15:32 +08:00