{"id":7764,"date":"2021-08-26T10:22:47","date_gmt":"2021-08-26T02:22:47","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=7764"},"modified":"2021-08-26T10:24:31","modified_gmt":"2021-08-26T02:24:31","slug":"gbase-8a%e6%a3%80%e6%9f%a5hash%e5%88%86%e5%b8%83%e8%a1%a8%e5%90%84%e5%88%86%e7%89%87%e6%98%af%e5%90%a6%e4%b8%80%e8%87%b4","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/7764","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u68c0\u67e5Hash\u5206\u5e03\u8868\u5404\u5206\u7247\u662f\u5426\u4e00\u81f4\u7684\u53c2\u6570"},"content":{"rendered":"<p>GBase 8a\u81ea\u8eab\u7684\u9ad8\u53ef\u7528\u673a\u5236\uff0c\u662f\u80fd\u4fdd\u8bc1\u4e3b\u526f\u672c\u4e00\u81f4\u7684\uff0c\u4f46\u8fd8\u662f\u5b58\u5728\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u5df2\u7ecf\u9047\u5230\u8fc7\u7684\u5305\u62ec\uff1a\u6e05\u7406\u4e86\u9519\u8bef\u7684event\uff0c\u610f\u5916\u65ad\u7535\u800c\u6570\u636e\u6ca1\u6709\u6b63\u786e\u5199\u5230\u7269\u7406\u78c1\u76d8(RAID\u5361\u65e0\u7535\u6c60)\uff0c\u4eba\u5de5\u64cd\u4f5c\u76f4\u63a5\u64cd\u4f5c\u4e86\u8ba1\u7b97\u8282\u70b9\u7b49\u3002\u672c\u6587\u4ecb\u7ecd\u4e00\u4e2a\u65b9\u6848\uff0c\u68c0\u67e5\u5404\u4e2a\u5206\u7247\u662f\u5426\u4e00\u81f4\u3002<\/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-6a2b3529f1ded\" 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-6a2b3529f1ded\"  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\/7764\/#%E5%8F%82%E6%95%B0\" >\u53c2\u6570<\/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\/7764\/#%E8%AF%B4%E6%98%8E\" >\u8bf4\u660e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/7764\/#%E6%A0%B7%E4%BE%8B\" >\u6837\u4f8b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/7764\/#%E6%89%93%E5%BC%80%E5%8F%82%E6%95%B0\" >\u6253\u5f00\u53c2\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/7764\/#%E6%A3%80%E6%9F%A5\" >\u68c0\u67e5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.gbase8.cn\/en\/7764\/#%E5%85%B3%E9%97%AD%E5%8F%82%E6%95%B0\" >\u5173\u95ed\u53c2\u6570<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/7764\/#%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88\" >\u5904\u7406\u65b9\u6848<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E6%95%B0\"><\/span>\u53c2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>_t_gcluster_temp_table_trace<\/code><\/pre>\n\n\n\n<p>\u4e0d\u662f\u6240\u6709\u7248\u672c\u90fd\u652f\u6301\uff0c\u53ef\u4ee5\u901a\u8fc7show\u9884\u8ba1\u67e5\u770b\u662f\u5426\u652f\u6301\u8be5\u53c2\u6570\u3002\u9ed8\u8ba4\u503c\u662f0 \u5173\u95ed\uff1b1 \u662f\u5f00\u542f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; show variables like '%_t_gcluster_temp_table_trace%';\n+------------------------------+-------+\n| Variable_name                | Value |\n+------------------------------+-------+\n| _t_gcluster_temp_table_trace | 0     |\n+------------------------------+-------+\n1 row in set (Elapsed: 00:00:00.01)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AF%B4%E6%98%8E\"><\/span>\u8bf4\u660e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5f00\u542f\u8be5\u53c2\u6570\u540e\uff0c\u6267\u884cSQL\u8bed\u53e5\uff0c\u5c06\u68c0\u67e5\u5404\u4e2a\u5206\u7247\u7684\u4e3b\u526f\u672c\u662f\u5426\u4e00\u81f4\uff0c\u5efa\u8bae\u68c0\u67e5\u540e\uff0c\u7acb\u5373\u5173\u95ed\u6b64\u53c2\u6570\uff0c\u907f\u514d\u6d6a\u8d39\u8d44\u6e90\u3002<\/p>\n\n\n\n<p><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u8be5\u53c2\u6570\u4ee5\u4e0b\u5212\u7ebf\u5f00\u5934\uff0c\u4e0d\u4fdd\u8bc1\u540e\u7eed\u7248\u672c\u4e00\u5b9a\u652f\u6301\u3002<\/span><\/p>\n\n\n\n<p>\u5f02\u5e38\u4fe1\u606f\uff0c\u5728warnings\u91cc\u4f53\u73b0\u3002<br>\u8be5\u53c2\u6570\u652f\u6301session\u7ea7\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A0%B7%E4%BE%8B\"><\/span>\u6837\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%89%93%E5%BC%80%E5%8F%82%E6%95%B0\"><\/span>\u6253\u5f00\u53c2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; set _t_gcluster_temp_table_trace=1;\nQuery OK, 0 rows affected (Elapsed: 00:00:00.00)\n\ngbase&gt; show variables like '%_t_gcluster_temp_table_trace%';\n+------------------------------+-------+\n| Variable_name                | Value |\n+------------------------------+-------+\n| _t_gcluster_temp_table_trace | 1     |\n+------------------------------+-------+\n1 row in set (Elapsed: 00:00:00.00)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A3%80%E6%9F%A5\"><\/span>\u68c0\u67e5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u901a\u8fc7count(*)\u7b49\u67e5\u8be2\u8bed\u53e5\u540e\u53f0\u81ea\u52a8\u68c0\u67e5\u3002\u5982\u4e0b\u662f\u4e00\u4e2an1\u5206\u7247\u4e3b\u526f\u672c\u884c\u6570\u4e0d\u4e00\u81f4\u7684\u6837\u4f8b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; select count(*) from d1;\n+----------+\n| count(*) |\n+----------+\n|  1000000 |\n+----------+\n1 row in set, 2 warnings (Elapsed: 00:00:00.03)\n\ngbase&gt; show warnings;\n+-------+------+------------------------------------------------------+\n| Level | Code | Message                                              |\n+-------+------+------------------------------------------------------+\n| Note  | 1702 | testdb.d1_n1: Different row number in pri\/dup node   |\n| Note  | 1702 | Diagnosing hash tables failed, detail in express.log |\n+-------+------+------------------------------------------------------+\n2 rows in set (Elapsed: 00:00:00.00)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B3%E9%97%AD%E5%8F%82%E6%95%B0\"><\/span>\u5173\u95ed\u53c2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> set _t_gcluster_temp_table_trace=0;\r\nQuery OK, 0 rows affected (Elapsed: 00:00:00.00)\r\n\r\ngbase> show variables like '%_t_gcluster_temp_table_trace%';\r\n+------------------------------+-------+\r\n| Variable_name                | Value |\r\n+------------------------------+-------+\r\n| _t_gcluster_temp_table_trace | 0     |\r\n+------------------------------+-------+\r\n1 row in set (Elapsed: 00:00:00.00)\r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88\"><\/span>\u5904\u7406\u65b9\u6848<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e3b\u526f\u672c\u4e0d\u4e00\u81f4\uff0c\u4e14\u96c6\u7fa4\u4e5f\u6ca1\u6709\u5bf9\u5e94\u7684\u6570\u636e\u6545\u969c\u6807\u5fd7\uff0c\u53ef\u4ee5\u53c2\u8003 <a href=\"https:\/\/www.gbase8.cn\/en\/176\/\">GBase 8a\u96c6\u7fa4\u901a\u8fc7gc_sync_client\u624b\u5de5\u540c\u6b65\u5206\u7247\u6570\u636e<\/a> \uff0c \u4e5f\u53ef\u4ee5\u624b\u5de5\u8bbe\u7f6e\u6545\u969c\u6807\u5fd7\uff1a<a href=\"https:\/\/www.gbase8.cn\/en\/5799\/\">GBase 8a\u624b\u5de5\u8bbe\u7f6e\u8868\u67d0\u4e2a\u5206\u7247\u4e3a\u6545\u969c\u72b6\u6001\u7684\u65b9\u6cd5<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u68c0\u67e5Hash\u5206\u5e03\u8868\u5404\u5206\u7247\u662f\u5426\u4e00\u81f4<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-7764","post","type-post","status-publish","format-standard","hentry","category-gbase8a"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/7764","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=7764"}],"version-history":[{"count":4,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/7764\/revisions"}],"predecessor-version":[{"id":7769,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/7764\/revisions\/7769"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=7764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=7764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=7764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}