Commit Graph

73 Commits

Author SHA1 Message Date
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
d7c2333e63 server: Fix unstable tests with FakeAuthSwitch (#30287) 2021-12-06 18:13:55 +08:00
7fc6ebbda4 privilege, session, server: consistently map user login to identity (#30204) 2021-11-30 17:01:53 +08:00
6756bd2ea8 server: Combined fix for authentication issues (#29738) 2021-11-29 18:33:52 +08:00
0f86a53d41 server: fix bug https://asktug.com/t/topic/213082/11 (#29577) 2021-11-23 15:17:50 +08:00
2a89d126bc variable: make the default value of wait_timeout the same as MySQL (#29569) 2021-11-11 14:41:05 +08:00
a0cd121f19 copr: do not hide original error for MPP query that will not faillback to TiKV (#29342) 2021-11-03 16:25:01 +08:00
36bc41ad05 *: reduce object allocation by reuse chunk column (#29064) 2021-10-28 13:14:48 +08:00
64167a000f *: Change default for unix socket (#28486) 2021-10-21 00:16:46 +08:00
fd42198c39 server: handle clients without authplugin support (#27931) 2021-10-11 23:39:25 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
a85ed79d84 server: migrate test-infra to testify for server/conn_test.go (#27407) 2021-08-31 13:24:13 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
07c804bfab server: fix tests when tidb-server already listening (#26068) 2021-07-19 12:11:34 +08:00
c6680e999b *: update client-go and update mocktikv usages (#25911) 2021-07-09 10:57:32 +08:00
f23e1004ac *: Support for caching_sha2_password authentication (#24991) 2021-07-05 11:15:28 +08:00
1ad33d8da4 ddl: fix drop table show errors (#25071) 2021-06-15 12:46:36 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
a8ea9a75f2 store/tikv: make failpoints without code generations (#25247) 2021-06-10 17:58:29 +08:00
37472dc06b store/tikv: move region_* into package store/tikv/region (#25205) 2021-06-10 15:54:30 +08:00
d1b3e47111 server, store: speed up server test (#24833) 2021-05-25 10:37:33 +08:00
8913c8c1d7 store/tikv:remove "tidb/tablecodec" from snapshot.go (#23686)
Signed-off-by: shirly <AndreMouche@126.com>
2021-04-07 16:16:50 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
a909037110 planner/core: inject project for tiflash agg (#23480) 2021-03-26 12:31:23 +08:00
aa3f0414d9 store/copr: return ErrTiFlashServerTimeout when MPP meets network error (#23434)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-24 15:24:09 +08:00
1cebae21a7 planner, sessionctx: turn on the mpp by default (#23401) 2021-03-23 21:01:37 +08:00
3cfb984211 server: fix err check (#22999) 2021-03-18 10:28:56 +08:00
cad8e15db2 store/tikv: remove kv.Snaphost from store/tikv (#23318) 2021-03-15 18:54:55 +08:00
035c15f7da *: rename tiflash fallback switch (#22886)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-12 18:21:48 +08:00
413ba4c30e server: add tiflash fallback testcase (#23248)
Co-authored-by: Yiding Cui <winoros@gmail.com>
2021-03-12 14:39:05 +08:00
9fe1bded7a remote unary cop tiflash fallback (#23226)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-10 19:01:33 +08:00
1ae9bfad71 server: refine tiflash fallback testcase (#23103) 2021-03-09 19:58:55 +08:00
4a598acf63 store/copr: polish the tiflash-tikv fallback function. (#23078) 2021-03-04 20:42:54 +08:00
febac515b1 store/tikv: move coprocessor out (#22922) 2021-03-01 11:42:54 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
20ddc19f22 server: retry executing sql without tiflash after tiflash is down (#22459) 2021-02-05 12:14:41 +08:00
d19a21d92a ddl, server, session: make gocritic happy (#21544) 2020-12-08 12:09:48 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
b892fd8391 server: support for client multi-statement option (#19459) 2020-10-12 13:29:12 +08:00
e48c4b0a38 server: add auth switch to mysql_native_password (#19603) 2020-09-11 20:35:41 +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
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
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
787b7d2db0 cmd: generate free port instead of hard-code port number (#18951) 2020-08-04 16:30:05 +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
75b254c8eb test: make TestDispatchClientProtocol41 stable (#18414) 2020-07-07 17:37:54 +08:00
ef355f8ce1 server: fix COM_STMT_FETCH returns wrong SERVER_STATUS_CURSOR_EXISTS (#18364) 2020-07-07 10:37:11 +08:00