{"id":269411,"date":"2023-04-22T09:00:49","date_gmt":"2023-04-22T01:00:49","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=269411"},"modified":"2023-04-21T23:40:34","modified_gmt":"2023-04-21T15:40:34","slug":"fixing-many-bugs","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/fixing-many-bugs.html","title":{"rendered":"TiDB 6.1.6 \u53d1\u5e03\uff0c\u4fee\u590d\u4e0d\u5c11bug"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nTiDB 6.1.6 \u53d1\u5e03,TiCDC \u4fee\u590d\u4e86 Avro \u7f16\u7801 FLOAT \u7c7b\u578b\u6570\u636e\u9519\u8bef\u7684\u95ee\u9898 #8490 @3AceShowHand\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u517c\u5bb9\u6027\u53d8\u66f4<\/strong><\/div>\n

TiCDC \u4fee\u590d\u4e86 Avro \u7f16\u7801 FLOAT \u7c7b\u578b\u6570\u636e\u9519\u8bef\u7684\u95ee\u9898 #8490 @3AceShowHand
\n\u5728\u5347\u7ea7 TiCDC \u96c6\u7fa4\u5230 v6.1.6 \u6216\u66f4\u9ad8\u7684 v6.1.x \u7248\u672c\u65f6\uff0c\u5982\u679c\u4f7f\u7528 Avro \u540c\u6b65\u7684\u8868\u5305\u542b FLOAT \u7c7b\u578b\u6570\u636e\uff0c\u8bf7\u5728\u5347\u7ea7\u524d\u624b\u52a8\u8c03\u6574 Confluent Schema Registry \u7684\u517c\u5bb9\u6027\u7b56\u7565\u4e3a None\uff0c\u4f7f changefeed \u80fd\u591f\u6210\u529f\u66f4\u65b0 schema\u3002\u5426\u5219\uff0c\u5728\u5347\u7ea7\u4e4b\u540e changefeed \u5c06\u65e0\u6cd5\u66f4\u65b0 schema \u5e76\u8fdb\u5165\u9519\u8bef\u72b6\u6001\u3002<\/p>\n

\u63d0\u5347\u6539\u8fdb<\/strong><\/div>\n
TiDB<\/strong><\/span><\/div>\n
    \n
  1. Prepared Plan Cache \u652f\u6301\u7f13\u5b58 BatchPointGet \u8ba1\u5212 #42125 @qw4990<\/li>\n
  2. Index Join \u652f\u6301\u66f4\u591a\u7684 SQL \u683c\u5f0f #40505 @Yisaer<\/li>\n<\/ol>\n
    TiKV<\/strong><\/span><\/div>\n

    \u652f\u6301\u5728\u5c0f\u4e8e 1 core \u7684 CPU \u4e0b\u542f\u52a8 TiKV #13586 #13752 #14017 @andreid-db<\/p>\n

    Bug \u4fee\u590d<\/strong><\/div>\n
    TiDB<\/strong><\/span><\/div>\n
      \n
    1. \u4fee\u590d ignore_plan_cache hint \u5bf9 INSERT \u8bed\u53e5\u53ef\u80fd\u4e0d\u751f\u6548\u7684\u95ee\u9898 #40079 #39717 @qw4990<\/li>\n
    2. \u4fee\u590d\u4e86 indexMerge \u9047\u5230\u9519\u8bef\u540e\u53ef\u80fd\u4f1a\u5bfc\u81f4 TiDB \u5d29\u6e83\u7684\u95ee\u9898 #41047 #40877 @guo-shaoge @windtalker<\/li>\n
    3. \u4fee\u590d\u9519\u8bef\u4e0b\u63a8\u5305\u542b\u865a\u62df\u5217\u7684 TopN \u7b97\u5b50\u5230 TiKV \u6216 TiFlash \u5bfc\u81f4\u7ed3\u679c\u9519\u8bef\u7684\u95ee\u9898 #41355 @Dousir9<\/li>\n
    4. \u4fee\u590d\u4e86\u4f7f\u7528 Prepare \u6216 Execute \u67e5\u8be2\u67d0\u4e9b\u865a\u62df\u8868\u65f6\u65e0\u6cd5\u5c06\u8868 ID \u4e0b\u63a8\uff0c\u5bfc\u81f4\u5728\u5927\u91cf Region \u7684\u60c5\u51b5\u4e0b PD OOM \u7684\u95ee\u9898 #39605 @djshow832<\/li>\n
    5. \u4fee\u590d Plan Cache \u5904\u7406 int_col in (decimal...) \u6761\u4ef6\u65f6\u53ef\u80fd\u7f13\u5b58 FullScan \u8ba1\u5212\u7684\u95ee\u9898 #40224 @qw4990<\/li>\n
    6. \u4fee\u590d IndexMerge \u8ba1\u5212\u5728 SET \u7c7b\u578b\u5217\u4e0a\u53ef\u80fd\u751f\u6210\u9519\u8bef\u533a\u95f4\u7684\u95ee\u9898 #41273 #41293 @time-and-fate<\/li>\n
    7. \u4fee\u590d\u4e86\u65e0\u7b26\u53f7\u7684 TINYINT\/SMALLINT\/INT \u548c\u5c0f\u4e8e 0 \u7684 DECIMAL\/FLOAT\/DOUBLE \u7c7b\u578b\u6bd4\u8f83\u65f6\uff0c\u7ed3\u679c\u53ef\u80fd\u51fa\u9519\u7684\u95ee\u9898 #41736 @LittleFall<\/li>\n
    8. \u4fee\u590d\u4e86\u67e5\u8be2 INFORMATION_SCHEMA.CLUSTER_SLOW_QUERY \u8868\u5bfc\u81f4 TiDB \u670d\u52a1\u5668 OOM \u7684\u95ee\u9898\uff0c\u5728 Grafana dashboard \u4e2d\u67e5\u770b\u6162\u67e5\u8be2\u8bb0\u5f55\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u89e6\u53d1\u8be5\u95ee\u9898 #33893 @crazycs520<\/li>\n
    9. \u4fee\u590d Range \u5206\u533a\u5141\u8bb8\u591a\u4e2a MAXVALUE \u5206\u533a\u7684\u95ee\u9898 #36329 @u5surf<\/li>\n
    10. \u4fee\u590d Plan Cache \u53ef\u80fd\u7f13\u5b58 Shuffle \u7b97\u5b50\u5bfc\u81f4\u8fd4\u56de\u9519\u8bef\u7ed3\u679c\u7684\u95ee\u9898 #38335 @qw4990<\/li>\n
    11. \u4fee\u590d\u4e86\u65f6\u533a\u4e2d\u7684\u6570\u636e\u4e89\u7528\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u548c\u7d22\u5f15\u4e0d\u4e00\u81f4\u95ee\u9898 #40710 @wjhuang2016<\/li>\n
    12. \u4fee\u590d\u4e86 indexMerge \u4e2d\u53ef\u80fd\u4f1a\u51fa\u73b0 goroutine \u6cc4\u9732\u7684\u95ee\u9898 #41545 #41605 @guo-shaoge<\/li>\n
    13. \u4fee\u590d\u5728\u4f7f\u7528 Cursor Fetch \u4e14\u5728 Execute\u3001Fetch\u3001Close \u4e4b\u95f4\u8fd0\u884c\u5176\u5b83\u8bed\u53e5\u540e\uff0cFetch \u4e0e Close \u547d\u4ee4\u53ef\u80fd\u4f1a\u8fd4\u56de\u9519\u8bef\u7ed3\u679c\u6216\u9020\u6210 TiDB Panic \u7684\u95ee\u9898 #40094 @YangKeao<\/li>\n
    14. \u4fee\u590d\u4e86\u4f7f\u7528 DDL \u4fee\u6539\u6d6e\u70b9\u7c7b\u578b\u65f6\uff0c\u4fdd\u6301\u957f\u5ea6\u4e0d\u53d8\u4e14\u51cf\u5c11\u5c0f\u6570\u4f4d\u540e\uff0c\u65e7\u6570\u636e\u4ecd\u7136\u4fdd\u6301\u539f\u6837\u7684\u95ee\u9898 #41281 @zimulala<\/li>\n
    15. \u4fee\u590d\u4e86 Join information_schema.columns \u8868\u4f1a\u9020\u6210 TiDB panic \u7684\u95ee\u9898 #32459 @tangenta<\/li>\n
    16. \u4fee\u590d\u4e86\u751f\u6210\u6267\u884c\u8ba1\u5212\u8fc7\u7a0b\u4e2d\uff0c\u56e0\u4e3a\u83b7\u53d6\u7684 InfoSchema \u4e0d\u4e00\u81f4\u800c\u5bfc\u81f4\u7684 TiDB panic \u7684\u95ee\u9898 #41622 @tiancaiamao<\/li>\n
    17. \u4fee\u590d TiFlash \u6267\u884c\u4e2d\u9047\u5230\u751f\u6210\u5217\u4f1a\u62a5\u9519\u7684\u95ee\u9898 #40663 @guo-shaoge<\/li>\n
    18. \u4fee\u590d\u5f53\u540c\u4e00\u4e2a SQL \u4e2d\u51fa\u73b0\u591a\u4e2a\u4e0d\u540c\u7684\u5206\u533a\u8868\u65f6\uff0cTiDB \u53ef\u80fd\u6267\u884c\u5f97\u5230\u9519\u8bef\u7ed3\u679c\u7684\u95ee\u9898 #42135 @mjonss<\/li>\n
    19. \u4fee\u590d Plan Cache \u53ef\u80fd\u7f13\u5b58 Shuffle \u7b97\u5b50\u5bfc\u81f4\u8fd4\u56de\u9519\u8bef\u7ed3\u679c\u7684\u95ee\u9898 #38335 @qw4990 @fzzf678<\/li>\n
    20. \u4fee\u590d\u4f7f\u7528 Index Merge \u7684\u65b9\u5f0f\u8bfb\u53d6\u5305\u542b SET \u7c7b\u578b\u5217\u7684\u8868\u65f6\uff0c\u7ed3\u679c\u53ef\u80fd\u51fa\u9519\u7684\u95ee\u9898 #41293 @time-and-fate<\/li>\n
    21. \u4fee\u590d\u5728\u5f00\u542f Prepared Plan Cache \u7684\u60c5\u51b5\u4e0b\uff0c\u7d22\u5f15\u5168\u8868\u626b\u53ef\u80fd\u4f1a\u62a5\u9519\u7684\u95ee\u9898 #42150 @fzzf678<\/li>\n
    22. \u4fee\u590d\u5728 DDL \u6267\u884c\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528 PointGet \u8bfb\u53d6\u8868\u7684 SQL \u8bed\u53e5\u53ef\u80fd\u4f1a\u5728\u6267\u884c\u65f6\u629b\u51fa panic \u7684\u95ee\u9898 #41622 @tiancaiamao<\/li>\n
    23. \u4fee\u590d\u4e8b\u52a1\u5185\u6267\u884c PointUpdate \u4e4b\u540e\uff0cSELECT \u7ed3\u679c\u4e0d\u6b63\u786e\u7684\u95ee\u9898 #28011 @zyguan<\/li>\n
    24. \u5b9a\u671f\u6e05\u7406\u8fc7\u671f\u7684 Region \u7f13\u5b58\uff0c\u907f\u514d\u5185\u5b58\u6cc4\u6f0f\u548c\u6027\u80fd\u4e0b\u964d\u95ee\u9898 #40461 @sticnarf @zyguan<\/li>\n
    25. \u4fee\u590d INSERT IGNORE \u548c REPLACE \u8bed\u53e5\u5bf9\u4e0d\u4fee\u6539 value \u7684 key \u6ca1\u6709\u52a0\u9501\u7684\u95ee\u9898 #42121 @zyguan<\/li>\n<\/ol>\n
      TiKV<\/strong><\/span><\/div>\n
        \n
      1. \u4fee\u590d\u8f6c\u6362 const Enum \u7c7b\u578b\u5230\u5176\u4ed6\u7c7b\u578b\u65f6\u62a5\u9519\u7684\u95ee\u9898 #14156 @wshwsh12<\/li>\n
      2. \u4fee\u590d CPU \u914d\u989d\u9650\u5236\u7684\u95ee\u9898 13084 @BornChanger<\/li>\n
      3. \u4fee\u590d Snapshot Last Index \u4e0d\u6b63\u786e\u7684\u95ee\u9898 12618 @LintianShi<\/li>\n<\/ol>\n
        PD<\/strong><\/span><\/div>\n
          \n
        1. \u4fee\u590d Region Scatter \u63a5\u53e3\u53ef\u80fd\u5bfc\u81f4 leader \u5206\u5e03\u4e0d\u5747\u5300\u7684\u95ee\u9898 #6017 @HunDunDM<\/li>\n
        2. \u4fee\u590d Online Unsafe Recovery \u8d85\u65f6\u673a\u5236\u4e0d\u751f\u6548\u7684\u95ee\u9898 #6107 @v01dstar<\/li>\n<\/ol>\n
          TiFlash<\/strong><\/span><\/div>\n
            \n
          1. \u4fee\u590d\u534a\u8fde\u63a5\u5728\u8ba1\u7b97\u7b1b\u5361\u5c14\u79ef\u65f6\uff0c\u4f7f\u7528\u5185\u5b58\u8fc7\u91cf\u7684\u95ee\u9898 #6730 @gengliqi<\/li>\n
          2. \u4fee\u590d TiFlash \u65e5\u5fd7\u641c\u7d22\u8fc7\u6162\u7684\u95ee\u9898 #6829 @hehechen<\/li>\n
          3. \u4fee\u590d\u4e86\u5f00\u542f new collation \u540e TopN\/Sort \u7b97\u5b50\u7ed3\u679c\u53ef\u80fd\u51fa\u9519\u7684\u95ee\u9898 #6807 @xzhangxian1008<\/li>\n
          4. \u4fee\u590d\u4e86 Decimal \u8f6c\u6362\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u8fdb\u4f4d\u9519\u8bef\u7684\u95ee\u9898 #6994 @windtalker<\/li>\n
          5. \u4fee\u590d TiFlash \u65e0\u6cd5\u8bc6\u522b\u751f\u6210\u5217\u7684\u95ee\u9898 #6801 @guo-shaoge<\/li>\n
          6. \u4fee\u590d\u4e86 Decimal \u9664\u6cd5\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u6700\u540e\u4e00\u4f4d\u672a\u8fdb\u4f4d\u7684\u95ee\u9898 #7022 @LittleFall<\/li>\n<\/ol>\n
            Tools<\/strong><\/span><\/div>\n

            TiCDC<\/strong><\/p>\n

              \n
            1. \u4fee\u590d\u540c\u6b65\u6570\u636e\u65f6\u7531\u4e8e UPDATE \u548c INSERT \u8bed\u53e5\u4e71\u5e8f\u53ef\u80fd\u5bfc\u81f4 Duplicate entry \u9519\u8bef\u7684\u95ee\u9898 #8597 @sdojjy<\/li>\n
            2. \u4fee\u590d\u7531\u4e8e PD \u548c TiCDC \u4e4b\u95f4\u7684\u7f51\u7edc\u9694\u79bb\u5f15\u8d77 TiCDC \u7a0b\u5e8f\u5f02\u5e38\u9000\u51fa\u7684\u95ee\u9898 #8562 @overvenus<\/li>\n
            3. \u4fee\u590d\u4e0b\u6e38\u4e3a TiDB \u6216 MySQL \u65f6\uff0c\u65e0\u4e3b\u952e\u4e14\u975e\u7a7a\u552f\u4e00\u7d22\u5f15\u6240\u5728\u5217\u6307\u5b9a\u4e86 CHARACTER SET \u540c\u6b65\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u95ee\u9898 #8420 @zhaoxinyu<\/li>\n
            4. \u4fee\u590d db sorter \u4f7f\u7528\u5185\u5b58\u65f6\u672a\u53d7 cgroup memory limit \u9650\u5236\u7684\u95ee\u9898 #8588 @amyangfei<\/li>\n
            5. \u4f18\u5316 cdc cli \u5728\u9047\u5230\u975e\u6cd5\u8f93\u5165\u65f6\u7684\u9519\u8bef\u63d0\u793a #7903 @CharlesCheung96<\/li>\n
            6. \u4fee\u590d redo log \u5bb9\u5fcd S3 \u5b58\u50a8\u6545\u969c\u7684\u65f6\u95f4\u8fc7\u77ed\u7684\u95ee\u9898 #8089 @CharlesCheung96<\/li>\n
            7. \u4fee\u590d\u5728 PD \u5f02\u5e38\u65f6\uff0c\u6682\u505c\u4e00\u4e2a changefeed \u4f1a\u9519\u8bef\u8bbe\u7f6e\u72b6\u6001\u7684\u95ee\u9898 #8330 @sdojjy<\/li>\n<\/ol>\n

              TiDB Lightning<\/strong><\/p>\n

                \n
              1. \u4fee\u590d\u51b2\u7a81\u5904\u7406\u903b\u8f91 (duplicate-resolution) \u53ef\u80fd\u5bfc\u81f4 checksum \u4e0d\u4e00\u81f4\u7684\u95ee\u9898 #40657 @gozssky<\/li>\n
              2. \u4fee\u590d TiDB Lightning \u5728 split-region \u9636\u6bb5\u53d1\u751f panic \u7684\u95ee\u9898 #40934 @lance6716<\/li>\n
              3. \u4fee\u590d\u4e86\u5728\u4f7f\u7528 Local Backend \u6a21\u5f0f\u5bfc\u5165\u6570\u636e\u65f6\uff0c\u5f53\u5bfc\u5165\u76ee\u6807\u8868\u7684\u590d\u5408\u4e3b\u952e\u4e2d\u5b58\u5728 auto_random \u5217\uff0c\u4e14\u6e90\u6570\u636e\u4e2d\u6ca1\u6709\u6307\u5b9a\u8be5\u5217\u7684\u503c\u65f6\uff0c\u76f8\u5173\u5217\u6ca1\u6709\u81ea\u52a8\u751f\u6210\u6570\u636e\u7684\u95ee\u9898 #41454 @D3Hunter<\/li>\n
              4. \u4fee\u590d\u5728\u5e76\u884c\u5bfc\u5165\u65f6\uff0c\u5f53\u9664\u6700\u540e\u4e00\u4e2a TiDB Lightning \u5b9e\u4f8b\u5916\u7684\u5176\u4ed6\u5b9e\u4f8b\u90fd\u9047\u5230\u672c\u5730\u91cd\u590d\u8bb0\u5f55\u65f6\uff0cTiDB Lightning \u53ef\u80fd\u4f1a\u9519\u8bef\u5730\u8df3\u8fc7\u51b2\u7a81\u5904\u7406\u7684\u95ee\u9898 #40923 @lichunzhu<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

                TiCDC \u4fee\u590d\u4e86 Avro \u7f16\u7801 FLOAT \u7c7b\u578b\u6570\u636e\u9519\u8bef\u7684\u95ee\u9898 #8490 @3AceShowHand \u5728 […]<\/p>\n","protected":false},"author":1481,"featured_media":269413,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-269411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=269411"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269411\/revisions"}],"predecessor-version":[{"id":270286,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269411\/revisions\/270286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/269413"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=269411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=269411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=269411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}