Commit Graph

564 Commits

Author SHA1 Message Date
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
787b7d2db0 cmd: generate free port instead of hard-code port number (#18951) 2020-08-04 16:30:05 +08:00
6088e58fa7 ddl: check the tiflash replica count when setting tiflash replica (#18826) 2020-08-03 15:10:47 +08:00
5f393fde7e *: support user defined variable and SET clause in LOAD DATA statement (#18753) 2020-08-03 10:42:10 +08:00
c7c98d7380 ddl: add addingDefinition field for adding partition replica check (#18495) 2020-07-29 17:08:26 +08:00
4db32ba6fe server: try to make test TestAllServerInfo stable (#18842) 2020-07-29 13:15:04 +08:00
901d531ec5 server: support partitioned table for table scatter (#17624) (#17864) 2020-07-28 11:56:46 +08:00
1fed1fb895 tests: remove incorrect use of FLUSH PRIVILEGES (#18361) 2020-07-24 23:25:14 +08:00
9e5e2a933e metrics: add metrics for disconnections (#18441) 2020-07-15 17:46:11 +08:00
297acf7e82 log: add tidb_log_desensitization global variable to control whether do desensitization when log query (#18578)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-07-15 15:44:56 +08:00
8a6554a21f telemetry: disable telemetry by default for non-community edition (#18524)
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
2020-07-15 11:37:36 +08:00
9d536c426d *: add HTTP API to generate TiDB metric profile (#18272) 2020-07-14 11:10:47 +08:00
165bdfdec8 server: return the actual error when conn panic (#18494)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-13 12:47:27 +08:00
8a661044ce multi-query prefetch support pessimistic transaction (#18439)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-10 18:47:56 +08:00
2b0b34b88e executor: kill tableReader for each connection correctly (#18277) 2020-07-09 18:09:08 +08:00
75b254c8eb test: make TestDispatchClientProtocol41 stable (#18414) 2020-07-07 17:37:54 +08:00
de33068d26 *: refactor NewBackoffer (#18367) 2020-07-07 14:28:43 +08:00
ef355f8ce1 server: fix COM_STMT_FETCH returns wrong SERVER_STATUS_CURSOR_EXISTS (#18364) 2020-07-07 10:37:11 +08:00
6fa2badf38 util: move codec logic into tablecodec package (#18173)
* move codec logic into tablecodec package

* add key generation using physical table id

* remove using prefix

* change comment

* fix conclict

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-24 17:43:10 +08:00
9b16427628 server: prefetch point-get keys for multi-statement queries. (#18155) 2020-06-23 13:13:18 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
df6898d524 gcworker: export resolveLocks api for test (#18064) 2020-06-19 17:55:35 +08:00
c2c02cde4b *: support record kv/pd time for a SQL statement (#17591) 2020-06-18 21:17:48 +08:00
05b2e2bdcc *: refactor Execute() and clean up code (#17678)
- implement Execute using ExecuteStmt
- Execute is only for internal usage and accept only one statement
- clean up the old execute function
2020-06-09 13:58:39 +08:00
cf935151e6 server: check and report parser warnings (#17021) 2020-06-08 11:00:58 +08:00
2c55650617 *: make QPS more realistic (#17560) 2020-06-04 20:00:43 +08:00
1f451b33da server: change status port in test to 7090 (#17627) 2020-06-03 17:12:57 +08:00