Commit Graph

625 Commits

Author SHA1 Message Date
d6a2b9a372 server: add tests for empty query hang (#22740) 2021-02-11 10:46:42 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
7f8935a61c server: fix tcp-keep-alive config (#22745)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2021-02-05 15:13:42 +08:00
20ddc19f22 server: retry executing sql without tiflash after tiflash is down (#22459) 2021-02-05 12:14:41 +08:00
8ddaf03db1 executor: fix load data losing connection when batch_dml_size is set (#22724) 2021-02-05 10:51:42 +08:00
825c98f3cc config: use label key instead of txn-scope (#22639)
Signed-off-by: Song Gao <disxiaofei@163.com>
2021-02-04 12:08:15 +08:00
b35e15c8cf store:move tikv/gcworker to store/gcworker (#22678)
Signed-off-by: shirly <AndreMouche@126.com>
2021-02-03 15:16:28 +08:00
7a275a77bb store/tikv: move EtcdBackend out (#22676)
Signed-off-by: disksing <i@disksing.com>
2021-02-03 14:59:57 +08:00
17a65ab98b statistics: refactor the statistics package use the RestrictedSQLExecutor API (#22636) 2021-02-03 13:28:57 +08:00
4e4968c501 metric: record prepare execute fail as "Failed Query OPM" in monitor (#22596)
Signed-off-by: lysu <sulifx@gmail.com>
2021-02-02 17:31:59 +08:00
3dff7cd348 store/tikv: resolve variable dependency (#22609)
Signed-off-by: disksing <i@disksing.com>
2021-01-29 15:52:14 +08:00
ea6ccf82e9 *: refactor the RestrictedSQLExecutor interface (#22579) 2021-01-29 12:56:44 +08:00
d4796a82fa server: remove TokenLimitGauge and use ConfigStatus instead. (#22590)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-01-28 14:58:31 +08:00
f5399b6b55 config: add config metrics (#22586)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2021-01-28 12:39:00 +08:00
c54932640b server: add token usage gauge for tidb (#22511)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-01-27 18:08:31 +08:00
fbcf75acc9 store/tikv: refactor: remove import tidb.config.security in store/tikv (#22538)
Signed-off-by: shirly <AndreMouche@126.com>
2021-01-27 12:08:24 +08:00
6931ece23d server: use ParseWithParams to avoid injection (#22545) 2021-01-27 11:14:54 +08:00
c5e147196b server, sessionctx: change default for tidb_multi_statement_mode (#22484) 2021-01-22 13:51:58 +08:00
57eef1333b server, sessionctx: add multi statement workaround (#22351) 2021-01-21 15:14:58 +08:00
8ef1031623 *: remove tidb-lightning pkg to fix unexpected config change (#22164) 2021-01-06 14:17:34 +08:00
960dab5444 executor:return warning when load data meet no partition for incompatiable mysql,but err and abort (#22042) 2021-01-04 12:49:43 +08:00
b1bd2856ca config: disable list partition by default since it's an experimental feature (#22045) 2020-12-29 09:56:18 +08:00
32d8cad845 server: double type column from table should ignore its decimal (#21788)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-22 11:27:02 +08:00
e90b93098c server: cleanup authswitchrequest (#20970) 2020-12-16 11:56:35 +08:00
a02660e2dd *: fix tiny bug and add more DML test for list partition table (#21423)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-11 21:32:22 +08:00
499a31f3c3 server: fix float fmt returned to mysql client (#21660) 2020-12-11 15:37:16 +08:00
e87d9d75d8 session: set default connect collation to utf8mb4_bin (#21179) 2020-12-10 15:33:22 +08:00
836bf75f1b server: check LOAD DATA is into a base table (#20924) 2020-12-10 15:18:21 +08:00
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
ba57d5c34e ddl: fix a bug that doesn't add NoDefaultValueFlag when creating a table (#21468)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-03 17:46:18 +08:00
d67a102118 server: return results of ongoing queries when graceful shutdown (#19669) 2020-12-03 14:29:00 +08:00
ab9ddcce4a executor: fix issue of explain for connection can't show the last query plan (#21242) 2020-11-26 14:19:17 +08:00
727d8f195c server: add metric for connection idle time (#21265) 2020-11-25 21:16:00 +08:00
1a91c1a10c executor: fix sum(double) result if value is +Inf or -Inf (#21058) 2020-11-25 11:21:54 +08:00
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