Mnesia crash, when node name changes

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Mnesia crash, when node name changes

lankeanandrao

Hi All,

    I  have an application, which is running in distributed way. When first time the application is getting started the mnesia is created based on the node name which is created dynamically (for example; [hidden email]). The mnesia data is persistent data. When the node name is changed (for example; [hidden email]) the mnesia is not getting started in the node. Here in code I am trying to modify / replace the node name with new node name created dynamically.

Here I have attached the erl_crash.dump file.

    Anyone have idea, why the mnesia is not getting started & erlang is crashing ?

regards,
Anand Rao L
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

erl_crash.dump (22K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mnesia crash, when node name changes

Prakash Parmar-2

Are you trying to replace node name in schema ?

 

-cheers

Prakash

 

-----Original Message-----
From: "lankeanandrao" <[hidden email]>
Sent: Friday, April 20, 2018 3:37pm
To: [hidden email]
Subject: [erlang-questions] Mnesia crash, when node name changes

Hi All,

    I  have an application, which is running in distributed way. When first time the application is getting started the mnesia is created based on the node name which is created dynamically (for example; [hidden email]). The mnesia data is persistent data. When the node name is changed (for example; [hidden email]) the mnesia is not getting started in the node. Here in code I am trying to modify / replace the node name with new node name created dynamically.

Here I have attached the erl_crash.dump file.

    Anyone have idea, why the mnesia is not getting started & erlang is crashing ?

regards,
Anand Rao L



******* DISCLAIMER: This email and any files transmitted with it are privileged and confidential information and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Torry Harris Business Solutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. The recipient should check this email and any attachments for the presence of viruses. THBS reserves the right to monitor and review the content of all messages sent to or from this e-mail address********
******* DISCLAIMER: This email and any files transmitted with it are privileged and confidential information and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Torry Harris Business Solutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail.  The recipient should check this email and any attachments for the presence of viruses. THBS reserves the right to monitor and review the content of all messages sent to or from this e-mail address.********

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Mnesia crash, when node name changes

lankeanandrao
  Yes, I am updating the schema.DAT file when node name is different.

- Anand Rao L

On Friday 20 April 2018 03:46 PM, Prakash Parmar wrote:

Are you trying to replace node name in schema ?

 

-cheers

Prakash

 

-----Original Message-----
From: "lankeanandrao" [hidden email]
Sent: Friday, April 20, 2018 3:37pm
To: [hidden email]
Subject: [erlang-questions] Mnesia crash, when node name changes

Hi All,

    I  have an application, which is running in distributed way. When first time the application is getting started the mnesia is created based on the node name which is created dynamically (for example; [hidden email]). The mnesia data is persistent data. When the node name is changed (for example; [hidden email]) the mnesia is not getting started in the node. Here in code I am trying to modify / replace the node name with new node name created dynamically.

Here I have attached the erl_crash.dump file.

    Anyone have idea, why the mnesia is not getting started & erlang is crashing ?

regards,
Anand Rao L



******* DISCLAIMER: This email and any files transmitted with it are privileged and confidential information and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Torry Harris Business Solutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. The recipient should check this email and any attachments for the presence of viruses. THBS reserves the right to monitor and review the content of all messages sent to or from this e-mail address********
******* DISCLAIMER: This email and any files transmitted with it are privileged and confidential information and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Torry Harris Business Solutions has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail.  The recipient should check this email and any attachments for the presence of viruses. THBS reserves the right to monitor and review the content of all messages sent to or from this e-mail address.********



_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Mnesia crash, when node name changes

Vance Shipley
On Fri, Apr 20, 2018 at 4:07 PM, lankeanandrao <[hidden email]> wrote:
>   Yes, I am updating the schema.DAT file when node name is different.

The procedure for renaming a node is here:
http://erlang.org/doc/apps/mnesia/Mnesia_chap7.html#id85020

--
     -Vance
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions