Commit Graph

89 Commits

Author SHA1 Message Date
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
0313cbbbde plugin: add audit plugin extension point (#9136) 2019-03-25 15:18:34 +08:00
4188ae19c0 log,server: add contextual log util & test it in conn.go (#9548) 2019-03-09 11:23:45 +08:00
c3f64b2629 *: tiny update for the whitelist plugin (#9271) 2019-02-12 15:54:45 +08:00
504b10c27c server: try graceful close connection first (#8711) 2019-01-11 18:44:53 +08:00
692693a1ff server, tidb-server: improve unix socket handling (#8836) 2019-01-09 09:51:26 +08:00
e5b9fc079a server: close all connection directly when terminate tidb (#8692) 2018-12-17 15:51:08 +08:00
H
808eab1911 session: support system variable interactive_timeout (#8487) (#8573) 2018-12-14 22:22:25 +08:00
654964a35b server: close connection when tidb server closed. (#8446) 2018-11-27 17:51:47 +08:00
e69aa2749b server: unix socket should verify user's authentication (#8381) 2018-11-22 13:43:38 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
6e3bbe8e35 *: add HIGH_PRIORITY for the bootstrap SQLs. (#7616) 2018-09-06 00:49:12 +08:00
a7ae09b8e1 metrics,server: add a get_token_duration_seconds metrics (#7110)
* metrics,server: add a get_token_duration_seconds metrics
2018-07-23 14:29:19 +08:00
f9a5686f9b executor: make set system variable log shorter (#7029) 2018-07-11 14:09:22 +08:00
7682a74d15 *: kill one's own connection doesn't require SUPER privilege (#6954)
`kill tidb connID`, if the user is the owner of that connection, there
is no need to check the SUPER privilege.
SessionManager interface is slightly modified.
2018-07-05 20:17:17 +08:00
c0cb89ea6b server: fix CI nil pointer panic (#6733)
server.ShutDown(ctx), it would panic if ctx is nil, because http package
calls <-ctx.Done()

replace ShutDown() with Close()
2018-06-02 22:18:13 +08:00
1a896a3b11 server: remove once.Do for HTTP server in tests (#6691) 2018-06-01 15:28:57 +08:00
93efc51b96 *: unify the connection ID format in log (#6670)
Makes tracing the events of a session easier.
2018-05-29 00:31:16 +08:00
fecd91a530 server: do not log on handshake error (#6552)
Load balancers connects to TiDB server and close immediately, we don't need to log them.
2018-05-15 13:45:11 +08:00
50e98f427e config: add validation for configuration (#5864) 2018-03-06 14:56:28 +08:00
eb71063db1 metrics, ddl, server: Add metrics for ddl and server (#5840)
DDL: is owner
Server events: start/stop/kill/hang
2018-02-09 16:08:49 +08:00
08720d01f9 executor: add more comments (#5728) 2018-02-08 19:55:59 -06:00
14a9a3df76 server, metrics: move and refine server metrics (#5766) 2018-02-01 19:04:31 +08:00
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00