{"id":5529,"date":"2021-04-25T08:13:57","date_gmt":"2021-04-25T00:13:57","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=5529"},"modified":"2021-04-25T16:19:46","modified_gmt":"2021-04-25T08:19:46","slug":"tidb-5-0-1-release-notes","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/5529","title":{"rendered":"TiDB 5.0.1 \u53d1\u7248\u58f0\u660e Release Notes"},"content":{"rendered":"<p>\u53d1\u7248\u65e5\u671f\uff1a2021 \u5e74 4 \u6708 24 \u65e5<\/p>\n\n\n\n<p>TiDB \u7248\u672c\uff1a5.0.1<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2ad3f22afcf\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2ad3f22afcf\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/5529\/#%E6%94%B9%E8%BF%9B%E6%8F%90%E5%8D%87\" >\u6539\u8fdb\u63d0\u5347<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/5529\/#Bug_%E4%BF%AE%E5%A4%8D\" >Bug \u4fee\u590d<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"\u6539\u8fdb\u63d0\u5347\"><span class=\"ez-toc-section\" id=\"%E6%94%B9%E8%BF%9B%E6%8F%90%E5%8D%87\"><\/span><a href=\"https:\/\/docs.pingcap.com\/zh\/tidb\/stable\/release-5.0.1#%E6%94%B9%E8%BF%9B%E6%8F%90%E5%8D%87\"><\/a>\u6539\u8fdb\u63d0\u5347<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>TiKV<ul><li>\u4f7f\u7528&nbsp;<code>zstd<\/code>&nbsp;\u538b\u7f29 Region Snapshot&nbsp;<a href=\"https:\/\/github.com\/tikv\/tikv\/pull\/10005\">#10005<\/a><\/li><\/ul><\/li><li>PD<ul><li>\u8c03\u6574 Region \u5206\u6570\u516c\u5f0f\u4f7f\u5176\u66f4\u9002\u7528\u4e8e\u5f02\u6784\u96c6\u7fa4&nbsp;<a href=\"https:\/\/github.com\/pingcap\/br\/pull\/3605\">#3605<\/a><\/li><li>\u907f\u514d\u5728\u6dfb\u52a0&nbsp;<code>scatter region<\/code>&nbsp;\u8c03\u5ea6\u5668\u540e\u51fa\u73b0\u7684\u975e\u9884\u671f\u7edf\u8ba1\u884c\u4e3a&nbsp;<a href=\"https:\/\/github.com\/pingcap\/pd\/pull\/3602\">#3602<\/a><\/li><\/ul><\/li><li>Tools<ul><li>Backup &amp; Restore (BR)<ul><li>\u5220\u9664 Summary \u65e5\u5fd7\u4e2d\u4e00\u4e9b\u5bb9\u6613\u88ab\u8bef\u89e3\u7684\u4fe1\u606f&nbsp;<a href=\"https:\/\/github.com\/pingcap\/br\/pull\/1009\">#1009<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"bug-\u4fee\u590d\"><span class=\"ez-toc-section\" id=\"Bug_%E4%BF%AE%E5%A4%8D\"><\/span><a href=\"https:\/\/docs.pingcap.com\/zh\/tidb\/stable\/release-5.0.1#bug-%E4%BF%AE%E5%A4%8D\"><\/a>Bug \u4fee\u590d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>TiDB<ul><li>\u4fee\u590d\u6295\u5f71\u6d88\u9664\u5728\u6295\u5f71\u7ed3\u679c\u4e3a\u7a7a\u65f6\u6267\u884c\u7ed3\u679c\u53ef\u80fd\u9519\u8bef\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24093\">#24093<\/a><\/li><li>\u4fee\u590d\u5217\u5305\u542b&nbsp;<code>NULL<\/code>&nbsp;\u503c\u65f6\u67e5\u8be2\u7ed3\u679c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u9519\u8bef\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24063\">#24063<\/a><\/li><li>\u5f53\u6709\u865a\u62df\u5217\u53c2\u4e0e\u626b\u63cf\u65f6\u4e0d\u5141\u8bb8\u751f\u6210 MPP \u8ba1\u5212&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24058\">#24058<\/a><\/li><li>\u4fee\u590d Plan Cache \u4e2d\u5bf9&nbsp;<code>PointGet<\/code>&nbsp;\u548c&nbsp;<code>TableDual<\/code>&nbsp;\u9519\u8bef\u7684\u91cd\u590d\u4f7f\u7528&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24043\">#24043<\/a><\/li><li>\u4fee\u590d\u4f18\u5316\u5668\u5728\u4e3a\u805a\u7c07\u7d22\u5f15\u6784\u5efa&nbsp;<code>IndexMerge<\/code>&nbsp;\u6267\u884c\u8ba1\u5212\u65f6\u51fa\u73b0\u7684\u9519\u8bef&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24042\">#24042<\/a><\/li><li>\u4fee\u590d BIT \u7c7b\u578b\u76f8\u5173\u9519\u8bef\u7684\u7c7b\u578b\u63a8\u5bfc&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24027\">#24027<\/a><\/li><li>\u4fee\u590d\u67d0\u4e9b\u4f18\u5316\u5668 Hint \u5728&nbsp;<code>PointGet<\/code>&nbsp;\u7b97\u5b50\u5b58\u5728\u65f6\u65e0\u6cd5\u751f\u6548\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/23685\">#23685<\/a><\/li><li>\u4fee\u590d DDL \u9047\u5230\u9519\u8bef\u56de\u6eda\u65f6\u53ef\u80fd\u5931\u8d25\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24080\">#24080<\/a><\/li><li>\u4fee\u590d\u4e8c\u8fdb\u5236\u5b57\u9762\u503c\u5e38\u91cf\u7684\u7d22\u5f15\u8303\u56f4\u6784\u9020\u9519\u8bef\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24041\">#24041<\/a><\/li><li>\u4fee\u590d\u67d0\u4e9b\u60c5\u51b5\u4e0b&nbsp;<code>IN<\/code>&nbsp;\u8bed\u53e5\u7684\u6267\u884c\u7ed3\u679c\u53ef\u80fd\u9519\u8bef\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24023\">#24023<\/a><\/li><li>\u4fee\u590d\u67d0\u4e9b\u5b57\u7b26\u4e32\u51fd\u6570\u7684\u8fd4\u56de\u7ed3\u679c\u9519\u8bef\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/23879\">#23879<\/a><\/li><li>\u6267\u884c&nbsp;<code>REPLACE<\/code>&nbsp;\u8bed\u53e5\u9700\u8981\u7528\u6237\u540c\u65f6\u62e5\u6709&nbsp;<code>INSERT<\/code>&nbsp;\u548c&nbsp;<code>DELETE<\/code>&nbsp;\u6743\u9650&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/23939\">#23939<\/a><\/li><li>\u4fee\u590d\u70b9\u67e5\u65f6\u51fa\u73b0\u7684\u7684\u6027\u80fd\u56de\u9000&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/24070\">#24070<\/a><\/li><li>\u4fee\u590d\u56e0\u9519\u8bef\u6bd4\u8f83\u4e8c\u8fdb\u5236\u4e0e\u5b57\u8282\u800c\u5bfc\u81f4\u7684&nbsp;<code>TableDual<\/code>&nbsp;\u8ba1\u5212\u9519\u8bef\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/tidb\/pull\/23918\">#23918<\/a><\/li><\/ul><\/li><li>TiKV<ul><li>\u4fee\u590d\u4e86 Coprocessor \u672a\u6b63\u786e\u5904\u7406&nbsp;<code>IN<\/code>&nbsp;\u8868\u8fbe\u5f0f\u6709\u7b26\u53f7\u6574\u6570\u6216\u65e0\u7b26\u53f7\u6574\u6570\u7c7b\u578b\u6570\u636e\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/tikv\/tikv\/pull\/10018\">#10018<\/a><\/li><li>\u4fee\u590d\u4e86\u5728\u6279\u91cf ingest SST \u6587\u4ef6\u540e\u4ea7\u751f\u5927\u91cf\u7a7a Region \u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/tikv\/tikv\/pull\/10015\">#10015<\/a><\/li><li>\u4fee\u590d\u4e86\u5728&nbsp;<code>cast_string_as_time<\/code>&nbsp;\u4e2d\u8f93\u5165\u975e\u6cd5\u7684 UTF-8 \u5b57\u8282\u540e\u5bfc\u81f4\u5d29\u6e83\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/tikv\/tikv\/pull\/9995\">#9995<\/a><\/li><li>\u4fee\u590d\u4e86 file dictionary \u6587\u4ef6\u635f\u574f\u4e4b\u540e TiKV \u65e0\u6cd5\u542f\u52a8\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/tikv\/tikv\/pull\/9992\">#9992<\/a><\/li><\/ul><\/li><li>TiFlash<ul><li>\u4fee\u590d\u5b58\u50a8\u5f15\u64ce\u65e0\u6cd5\u5220\u9664\u67d0\u4e9b\u8303\u56f4\u6570\u636e\u7684\u95ee\u9898<\/li><li>\u4fee\u590d&nbsp;<code>TIME<\/code>&nbsp;\u7c7b\u578b\u8f6c\u6362\u4e3a&nbsp;<code>INT<\/code>&nbsp;\u7c7b\u578b\u65f6\u4ea7\u751f\u9519\u8bef\u7ed3\u679c\u7684\u95ee\u9898<\/li><li>\u4fee\u590d&nbsp;<code>receiver<\/code>&nbsp;\u53ef\u80fd\u65e0\u6cd5\u5728 10 \u79d2\u5185\u627e\u5230\u5bf9\u5e94\u4efb\u52a1\u7684\u95ee\u9898<\/li><li>\u4fee\u590d&nbsp;<code>cancelMPPQuery<\/code>&nbsp;\u4e2d\u53ef\u80fd\u5b58\u5728\u65e0\u6548\u8fed\u4ee3\u5668\u7684\u95ee\u9898<\/li><li>\u4fee\u590d&nbsp;<code>bitwise<\/code>&nbsp;\u7b97\u5b50\u548c TiDB \u884c\u4e3a\u4e0d\u4e00\u81f4\u7684\u95ee\u9898<\/li><li>\u4fee\u590d\u5f53\u4f7f\u7528&nbsp;<code>prefix key<\/code>&nbsp;\u65f6\u51fa\u73b0\u8303\u56f4\u91cd\u53e0\u62a5\u9519\u7684\u95ee\u9898<\/li><li>\u4fee\u590d\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a&nbsp;<code>INT<\/code>&nbsp;\u65f6\u4ea7\u751f\u9519\u8bef\u7ed3\u679c\u7684\u95ee\u9898<\/li><li>\u4fee\u590d\u8fde\u7eed\u5feb\u901f\u5199\u5165\u53ef\u80fd\u5bfc\u81f4 TiFlash \u5185\u5b58\u6ea2\u51fa\u7684\u95ee\u9898<\/li><li>\u4fee\u590d\u5217\u540d\u91cd\u590d\u4f1a\u5f15\u53d1\u62a5\u9519\u7684\u95ee\u9898<\/li><li>\u4fee\u590d MPP \u6267\u884c\u8ba1\u5212\u65e0\u6cd5\u88ab\u89e3\u6790\u7684\u95ee\u9898<\/li><li>\u4fee\u590d Table GC \u65f6\u4f1a\u5f15\u53d1\u7a7a\u6307\u9488\u7684\u95ee\u9898<\/li><li>\u4fee\u590d\u5411\u5df2\u88ab\u5220\u9664\u7684\u8868\u5199\u6570\u636e\u65f6 TiFlash \u8fdb\u7a0b\u5d29\u6e83\u7684\u95ee\u9898<\/li><li>\u4fee\u590d\u5f53\u4f7f\u7528 BR \u6062\u590d\u6570\u636e\u65f6 TiFlash \u8fdb\u7a0b\u53ef\u80fd\u5d29\u6e83\u7684\u95ee\u9898<\/li><\/ul><\/li><li>Tools<ul><li>TiDB Lightning<ul><li>\u4fee\u590d\u5bfc\u5165\u8fc7\u7a0b\u4e2d\u8fdb\u5ea6\u65e5\u5fd7\u4e2d\u7684\u8868\u6570\u91cf\u4e0d\u51c6\u786e\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/br\/pull\/1005\">#1005<\/a><\/li><\/ul><\/li><li>Backup &amp; Restore (BR)<ul><li>\u4fee\u590d\u5b9e\u9645\u7684\u5907\u4efd\u901f\u5ea6\u8d85\u8fc7&nbsp;<code>--ratelimit<\/code>&nbsp;\u9650\u5236\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/br\/pull\/1026\">#1026<\/a><\/li><li>\u4fee\u590d\u5907\u4efd\u671f\u95f4\u5c11\u6570 TiKV \u8282\u70b9\u4e0d\u53ef\u7528\u5bfc\u81f4\u7684\u5907\u4efd\u4e2d\u65ad\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/br\/pull\/1019\">#1019<\/a><\/li><\/ul><\/li><li>TiCDC<ul><li>\u4fee\u590d Unified Sorter \u4e2d\u7684\u5e76\u53d1\u95ee\u9898\u5e76\u8fc7\u6ee4\u65e0\u7528\u7684\u9519\u8bef\u6d88\u606f&nbsp;<a href=\"https:\/\/github.com\/pingcap\/ticdc\/pull\/1678\">#1678<\/a><\/li><li>\u4fee\u590d\u540c\u6b65\u5230 MinIO \u65f6\uff0c\u91cd\u590d\u521b\u5efa\u76ee\u5f55\u4f1a\u5bfc\u81f4\u540c\u6b65\u4e2d\u65ad\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/ticdc\/pull\/1672\">#1672<\/a><\/li><li>\u9ed8\u8ba4\u5f00\u542f\u4f1a\u8bdd\u53d8\u91cf&nbsp;<code>explicit_defaults_for_timestamp<\/code>\uff0c\u4f7f\u5f97\u4e0b\u6e38 MySQL 5.7 \u548c\u4e0a\u6e38 TiDB \u7684\u884c\u4e3a\u4fdd\u6301\u4e00\u81f4&nbsp;<a href=\"https:\/\/github.com\/pingcap\/ticdc\/pull\/1659\">#1659<\/a><\/li><li>\u4fee\u590d\u9519\u8bef\u5730\u5904\u7406&nbsp;<code>io.EOF<\/code>&nbsp;\u53ef\u80fd\u5bfc\u81f4\u540c\u6b65\u4e2d\u65ad\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/ticdc\/pull\/1648\">#1648<\/a><\/li><li>\u4fee\u6b63 TiCDC \u9762\u677f\u4e2d\u7684 TiKV CDC endpoint CPU \u7edf\u8ba1\u4fe1\u606f&nbsp;<a href=\"https:\/\/github.com\/pingcap\/ticdc\/pull\/1645\">#1645<\/a><\/li><li>\u589e\u52a0&nbsp;<code>defaultBufferChanSize<\/code>&nbsp;\u6765\u907f\u514d\u67d0\u4e9b\u60c5\u51b5\u4e0b\u540c\u6b65\u963b\u585e\u7684\u95ee\u9898&nbsp;<a href=\"https:\/\/github.com\/pingcap\/ticdc\/pull\/1632\">#1632<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<p><a href=\"https:\/\/github.com\/pingcap\/docs-cn\/blob\/release-5.0\/releases\/release-5.0.1.md\" target=\"_blank\" rel=\"noreferrer noopener\">TiDB 5.0.1 Release Notes<\/a>&nbsp;\u66f4\u65b0\u4e8e&nbsp;2021-04-24T22:37:54Z:&nbsp;<a href=\"https:\/\/github.com\/pingcap\/docs-cn\/commit\/8c7c86060b34694fcd96b9c13e87f73a99e8c910\" target=\"_blank\" rel=\"noreferrer noopener\">releases: add tidb 5.0.1 release notes (#6061) (#6130)<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>TiDB 5.0.1 Release Notes<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[84],"class_list":["post-5529","post","type-post","status-publish","format-standard","hentry","category-79","tag-tidb"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=5529"}],"version-history":[{"count":2,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5529\/revisions"}],"predecessor-version":[{"id":5531,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5529\/revisions\/5531"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=5529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=5529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=5529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}