{"id":2477,"date":"2018-08-13T06:15:05","date_gmt":"2018-08-13T06:15:05","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=2477"},"modified":"2024-01-27T17:28:56","modified_gmt":"2024-01-27T17:28:56","slug":"galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key","title":{"rendered":"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this post we will see a case study of a Galera Cluster migration to AWS Aurora and quick solution to the replication issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A friend received an error in a Master-Master replication as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Could not execute Write_rows event on table _database._table; Duplicate entry '65eJ8RmzASppBuQD2Iz73AAy8gPKIEmP-2018-08-03 08:30:03' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log mysql-bin-changelog.000010, end_log_pos 1107814\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We talked about it and I immediately started blabbering cons of writing on both masters, how to handle, roles of apps and so on. I was pointing to him regarding the error duplicate key about primary key.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">He intervened and revealed, it is Galera Cluster replicated to Aurora and he is not writing on Aurora.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">He was actually migrating his Galera Cluster to Aurora and master-master was to support his rollback plans.&nbsp;Consider following diagram for simplicity of understanding:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full wp-image-2478\"><img decoding=\"async\" width=\"800\" height=\"600\" src=\"http:\/\/kedar.nitty-witty.com\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-architecture.png\" alt=\"galera to aws migration - sample architecture\" class=\"wp-image-2478\" srcset=\"https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-architecture.png 800w, https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-architecture-300x225.png 300w, https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-architecture-768x576.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">                                                          Galera to AWS migration &#8211; sample architecture<\/figcaption><\/figure>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Okay, so we had replication errors on glr-3 node. The next check we made sure that Aurora instance is not being written. We further looked into binary log to confirm source or server-id that&#8217;s being replicated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download Aurora binary log and review:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$] mysqlbinlog --read-from-remote-server --host=aurora.cluster-xxxx.us-east-1.rds.amazonaws.com --port=3306 --user mysql_user --password mysql_pass --result-file=\/tmp\/mysql-bin-changelog.000010\n\n$] less mysql-bin-changelog.000010\n...\n#180803 8:03:41 server id <strong>1<\/strong> end_log_pos 2279 CRC32 0x3e912bce Xid = 42555\nCOMMIT\/*!*\/;\n# at 2279\n#180803 8:03:41 server id <strong>1<\/strong> end_log_pos 2347 CRC32 0xd193b55a Query thread_id=7214612 exec_time=722 error_code=0\n...\n#180803 8:03:54 server id <strong>2<\/strong> end_log_pos 10455 CRC32 0xa4dca5a2 Query thread_id=986300 exec_time=709 error_code=0\nSET TIMESTAMP=1533283434\/*!*\/;\n<\/pre>\n\n\n\n<figure class=\"wp-block-image alignnone size-full wp-image-2479\"><img decoding=\"async\" width=\"800\" height=\"600\" src=\"http:\/\/kedar.nitty-witty.com\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-err.png\" alt=\"Galera to Aurora - replication error\" class=\"wp-image-2479\" srcset=\"https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-err.png 800w, https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-err-300x225.png 300w, https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-err-768x576.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">                                                                          Galera to Aurora &#8211; replication error<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That revealed the second server-id which gave another pointer: all the nodes of Galera Cluster are being written. Of-Course then, this is bound to happen when mysql finds different server-id than master, it is going to write the changes eventually resulting into duplicate key errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Asynchronous replication in MySQL depends on server-id to determine the source of the query. This is particularly important to avoid endless loops in master-master or circular replication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now in this scenario, it was found that all the nodes Galera Cluster had unique server-ids and all were being written. Thus binary log had entries from all the nodes while only one node was participating in master-master replication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since the changes for server-ids 2 and 3 were already applied by Galera-replication, we are getting duplicate key errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, here I thought of two solutions:<br>1. Write on only one node (and replicate from there).<br>2. Use same server-ids on all the Galera nodes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3rd option could have been disabling log-slave-updates but that\u2019s not possible in Aurora cluster (or actually any server which has chained replication further). Also, consider that this is a problem because we&#8217;re setting master-master replication; had it been master-slave, we&#8217;d have not noticed this.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone size-full wp-image-2480\"><img decoding=\"async\" width=\"1226\" height=\"145\" src=\"http:\/\/kedar.nitty-witty.com\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-log-slave-updates.png\" alt=\"log-slave-updates\" class=\"wp-image-2480\" srcset=\"https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-log-slave-updates.png 1226w, https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-log-slave-updates-300x35.png 300w, https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-log-slave-updates-768x91.png 768w, https:\/\/kedar.nitty-witty.com\/blog\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-log-slave-updates-1024x121.png 1024w\" sizes=\"(max-width: 1226px) 100vw, 1226px\" \/><figcaption class=\"wp-element-caption\">log-slave-updates<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Write on only one galera node and replicate from there.<\/strong><br>This can be configured on maxscale or any load balancer in order to configure &amp; route the write traffic, though that option was denied.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Use same server-ids on all Galera nodes.<\/strong><br>Galera is certification based replication. On a cluster, before transaction commit, a certification test is performed on each node for determining whether or not the write-set (changes) can be applied to each of the node. If certification fails, write-set is dropped and cluster rollbacks the transaction.<br>This all happens based on a GTID comprises of UUID (dataset-id, cluster-id) and sequence number.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Sample: kdar8582-r271-00d2-8582-1jdgnv05e21d:8518<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">where kdar8582-r271-00d2-8582-1jdgnv05e21d is dataset-id while 8518 is sequence number.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can read more about Galera Replication on documentation <a href=\"http:\/\/galeracluster.com\/documentation-webpages\/certificationbasedreplication.html\" target=\"_blank\" rel=\"nofollow noopener\">page<\/a>. My idea to cover some of the basics here was to show that <span style=\"text-decoration: underline;\">server-id<\/span> has no role to play in Galera Replication. We can surely configure same server-id on each Galera Cluster node. That will nullify the multiple server-ids and hence tackle the duplicate key errors in multi-master replication with Aurora Cluster.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My friend went that way to complete the migration successfully. Consider sharing in comments if you have more information on &#8220;using same server-id in Galera and its effects&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"In this post we will see a case study of a Galera Cluster migration to AWS Aurora and quick solution to the replication issue. A friend received an error in&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[868,864,8,377,865],"tags":[464,460,465,381,461,463,466,462,100],"class_list":["post-2477","post","type-post","status-publish","format-standard","category-aws-rds","category-mysql-galera-cluster","category-mysql","category-mysql-articles","category-percona-xtradb-cluster","tag-aurora-migration","tag-could-not-execute-write_rows-event","tag-error_code-1062","tag-galera","tag-galera-cluster-to-aws","tag-galera-replication","tag-ha_err_found_dupp_key","tag-migration","tag-replication"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"aurora migration,could not execute write_rows event,error_code: 1062,galera,galera cluster to aws,galera replication,ha_err_found_dupp_key,migration,replication\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Galera cluster to AWS Aurora migration &amp; HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2018-08-13T06:15:05+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-01-27T17:28:56+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Galera cluster to AWS Aurora migration &amp; HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#article\",\"name\":\"Galera cluster to AWS Aurora migration & HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable\",\"headline\":\"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/kedar.nitty-witty.com\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/Galera-to-AWS-Aurora-_-RDS-Migration-architecture.png\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key\\\/#articleImage\"},\"datePublished\":\"2018-08-13T06:15:05+00:00\",\"dateModified\":\"2024-01-27T17:28:56+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#webpage\"},\"articleSection\":\"AWS RDS, Galera Cluster, MySQL, MySQL-Articles, Percona Xtradb Cluster, aurora migration, Could not execute Write_rows event, Error_code: 1062, Galera, Galera Cluster to AWS, Galera Replication, HA_ERR_FOUND_DUPP_KEY, Migration, replication\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"position\":3,\"name\":\"MySQL-Articles\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#listItem\",\"name\":\"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#listItem\",\"position\":4,\"name\":\"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key\",\"name\":\"Galera cluster to AWS Aurora migration & HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable\",\"description\":\"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2018-08-13T06:15:05+00:00\",\"dateModified\":\"2024-01-27T17:28:56+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Galera cluster to AWS Aurora migration & HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable","description":"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key","robots":"max-image-preview:large","keywords":"aurora migration,could not execute write_rows event,error_code: 1062,galera,galera cluster to aws,galera replication,ha_err_found_dupp_key,migration,replication","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#article","name":"Galera cluster to AWS Aurora migration & HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable","headline":"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/kedar.nitty-witty.com\/wp-content\/uploads\/2018\/08\/Galera-to-AWS-Aurora-_-RDS-Migration-architecture.png","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key\/#articleImage"},"datePublished":"2018-08-13T06:15:05+00:00","dateModified":"2024-01-27T17:28:56+00:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#webpage"},"articleSection":"AWS RDS, Galera Cluster, MySQL, MySQL-Articles, Percona Xtradb Cluster, aurora migration, Could not execute Write_rows event, Error_code: 1062, Galera, Galera Cluster to AWS, Galera Replication, HA_ERR_FOUND_DUPP_KEY, Migration, replication"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","position":2,"name":"MySQL","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","position":3,"name":"MySQL-Articles","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#listItem","name":"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#listItem","position":4,"name":"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key","name":"Galera cluster to AWS Aurora migration & HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable","description":"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2018-08-13T06:15:05+00:00","dateModified":"2024-01-27T17:28:56+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"Galera cluster to AWS Aurora migration &amp; HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable","og:description":"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key","article:published_time":"2018-08-13T06:15:05+00:00","article:modified_time":"2024-01-27T17:28:56+00:00","twitter:card":"summary","twitter:title":"Galera cluster to AWS Aurora migration &amp; HA_ERR_FOUND_DUPP_KEY | Change Is Inevitable","twitter:description":"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it."},"aioseo_meta_data":{"post_id":"2477","title":null,"description":"MySQL case study for Galera Cluster migration to AWS Aurora causing Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY error and solution around it.","keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:40:44","updated":"2025-08-16 19:17:35","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\" title=\"MySQL\">MySQL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles\" title=\"MySQL-Articles\">MySQL-Articles<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGalera cluster to AWS Aurora migration &amp; HA_ERR_FOUND_DUPP_KEY\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql"},{"label":"MySQL-Articles","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles"},{"label":"Galera cluster to AWS Aurora migration &#038; HA_ERR_FOUND_DUPP_KEY","link":"https:\/\/kedar.nitty-witty.com\/blog\/galera-cluster-to-aws-aurora-migration-ha_err_found_dupp_key"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=2477"}],"version-history":[{"count":5,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2477\/revisions"}],"predecessor-version":[{"id":2835,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2477\/revisions\/2835"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=2477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=2477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=2477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}