[erlang-questions] Removing mnesia cluster node while mnesia is offline

Francesco Mazzoli f@REDACTED
Mon Jul 9 16:24:01 CEST 2012


At Fri, 06 Jul 2012 09:49:29 +0100,
Rudolph van Graan wrote:
> This scenario is impossible. I will rewrite it as follows, depending on your
> definition of "remove". One correct interpretation would be:

If I say "C gets removed" I mean that it goes offline and some other nodes
invokes `del_table_copy(schema, C)'. Sorry about the lack of clarity.

> 1. A,B & C are in the cluster
> 2. A goes down
> 3. C is turned off and the schema is destroyed on C (instead of your term "removed")
> 4. So B has [A,B,C] in the schema (and so does A)

With my definition of remove, B knows has [A,B], while A has [A,B,C].

> 5. A is started again.
> 6. A copies the data from B because it knows it was down and B has the latest
> data

Now I don't want to test it (I'm kind of sick of mnesia testing :P) but iirc
when A has [A,B,C] and B has [A,B], when A gets started B will get C has well,
which is what I wanted to avoid.

--
Francesco * Often in error, never in doubt



More information about the erlang-questions mailing list