Commit Graph

114 Commits

Author SHA1 Message Date
5d9bb45815 config: add tcp4only for lvs whitelist! (#21552) 2020-12-09 14:44:35 +08:00
d19a21d92a ddl, server, session: make gocritic happy (#21544) 2020-12-08 12:09:48 +08:00
d67a102118 server: return results of ongoing queries when graceful shutdown (#19669) 2020-12-03 14:29:00 +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
3ba36dcb76 config, server: Add graceful shutdown option (#20649) 2020-11-03 22:55:32 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +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
fa81ec51b4 *: refactor sysvars to allow component registration (#20289) 2020-09-29 14:04:24 +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
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
2b0b34b88e executor: kill tableReader for each connection correctly (#18277) 2020-07-09 18:09:08 +08:00
6d02bc72d9 server: fix SIGSEGV caused by port probing with audit plugin (#16038) 2020-04-03 20:34:30 +08:00
e42c825979 server, session: refine mysql handshake error log (#15731) 2020-03-28 19:18:35 +08:00
7a67ff482b config, server: change the default value of max-server-connections (#15726) 2020-03-26 17:55:13 +08:00
f8b2d96764 server: if status address already in use, return an error (#15177) 2020-03-18 17:51:09 +08:00
aec6143179 *: support require-secure-transport startup option (#15341) 2020-03-17 08:46:45 +08:00
d052f5c41d server: stop the server when writing binlog failed (#15324) 2020-03-12 16:25:32 +08:00
6c67561ee0 server: fix tls setup and error log (#15287) 2020-03-11 20:55:47 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
d9406058ac *: update memdb to use new fast random util (#15218) 2020-03-10 14:24:32 +08:00
5c68d537f4 *: support reload tls used by mysql protocol in place (#14749) 2020-03-03 10:01:39 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
a644d67fb2 plugin: support logging rejected connection attempts in audit log (#14594) 2020-02-04 14:08:53 +08:00
d65e23f39e *: support for limiting the number of client connections (#14409) 2020-01-15 18:31:56 +08:00
5a9f2fa5ab server, tikv: enable unit test run parallel and add parallel f… (#14296) 2020-01-09 15:12:45 +08:00
5da10ffecc *: refine some error code (#14002) 2019-12-12 11:09:58 +08:00
41c7d7e943 server: set system_time_zone from systemTZ (#13934) 2019-12-09 12:11:19 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
826e1d712b *: cleanup error code (#13874) 2019-12-03 20:29:09 +08:00
9fd3e92318 server: add rpcserver to get other tidb server info for diagnostics (#13693) 2019-11-26 17:46:19 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
a08918ab74 fixup (#11688) 2019-08-12 11:53:03 +08:00
7715341cb7 server: tiny refactor, more go style (#11478) 2019-08-01 17:36:05 +08:00
8f51214533 server: move log operation out of lock scope (#11536)
It's a bad style to print log under a lock, tiny refactor to make the code better.
Lock() is also changed to RLock() to reduce lock contend
2019-07-31 17:24:44 +08:00
8104494b91 plugin: support dynamic enable/disable plugins (#11122) 2019-07-09 13:02:50 +08:00
98274ccbf2 plugin: setup connection info in session when audit plugin be enabled (#10923) 2019-06-27 11:29:40 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
421de5ef20 executor,server: re-implement the kill statement by checking the Next() function (#10841) 2019-06-20 11:03:21 +08:00
b0d6c5b35b *: print an expensive query log when a query is out of memQuota (#10799) 2019-06-18 16:18:48 +08:00
f67352d238 *: print an expensive log when a query exceeds time threshold (#10350) 2019-06-05 20:38:11 +08:00
278c3e81b4 *: support EXPLAIN FOR CONNECTION (#10030) 2019-04-09 10:45:22 +08:00
c04bda6b76 server: improve error message (#10034) 2019-04-03 13:47:32 -06:00
77e91d1327 executor: kill tidb [session id] can't stop executors and release resources quickly (#9844) 2019-04-01 16:51:24 +08:00
1f018576bc server: ConnectionEvent error from plugins should not make TiDB exit (#9889) 2019-03-27 15:15:11 +08:00
5ffa06b6c3 *: unify and normalize the format of the log in the pkg of server (#9878) 2019-03-25 16:10:36 +08:00