<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-compose;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span lang="EN-US" style="color:black">In a cluster, during mnesia startup in one of the nodes, it fails to merge table definitions for some table replicas and fails to start.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">=ERROR REPORT==== 15-Nov-2020::01:37:47 ===<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">Mnesia ** ERROR ** ** FATAL **
<b>Failed to merge schema: Cannot merge definitions of table 'alternatesConfiguration|564D8EAD0A6C1F9BF00BF146A46A04F0'</b>.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">Local = {cstruct,'alternatesConfiguration|564D8EAD0A6C1F9BF00BF146A46A04F0',set,[],['clusterdb@*.*.*.*','clusterdb@*.*.*.*',..]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">,[],[],0,read_write,false<b>,[]</b>,[],false,alternatesConfiguration,[uuid,ip_address,cdb_address,index],[],[],[],{{1604409629078965299,-576460752303420079,1},'clusterdb@127.0.0.1'},{{222,0},{'clusterdb@*.*.*.*',{1605,393466,670334}}}},
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">Remote = {cstruct,'alternatesConfiguration|564D8EAD0A6C1F9BF00BF146A46A04F0',set,[],['clusterdb@*.*.*.*','clusterdb@*.*.*.*',…]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">,[],[],0,read_write,false<b>,[{3,ordered},{4,ordered},{5,ordered}]</b>,[],false,alternatesConfiguration,[uuid,ip_address,cdb_address,index],[],[],[],{{1604409629078965299,-576460752303420079,1},'clusterdb@127.0.0.1'},{{212,0},{'clusterdb@*.*.*',{1605,313445,524160}}}}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span lang="EN-US" style="color:black">Normally, schema merge fails when cookies differ between the table replicas, but in this case, the cookies seem to match. Looking at the mnesia code "mnesia_schema.erl", the error occurs whenever there's a mismatch in
 some of the table properties and from the error report, index properties of the local and remote replica of 'alternatesConfiguration' table differs during the time of merge. Local replica has an empty list for index whereas the remote replica has [\{3,ordered},\{4,ordered},\{5,ordered}]
 and there's a difference in version too. </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span lang="EN-US" style="color:black">Is it normal that this happens when the network is partitioned or there’s something wrong with the mnesia table or is there something that I’m missing to understand?
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span lang="EN-US" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify;background:white">
<span lang="EN-US" style="color:black">The question is, Under which scenarios this is likely to happen? Thanks.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>