Erlang Mailing Lists

Author Message

<  Erlang questions mailing list  ~  Mnesia broken?

jocke
Posted: Mon Apr 26, 1999 9:47 am Reply with quote
User Joined: 19 Jan 2005 Posts: 32
Hi all,

I can't add a new Mnesia node to an already runnning set
of Mnesia nodes, i.e. inherit the db schema on the new
node.

It used to work (doesn't it always Wink, or is it just me
having a bad day?

Is this feature broken in Mnesia in 47.4.1?

/Jocke

The bug(?) in a simple example:

-- Start x_at_kaja

[jocke_at_kaja]$ erl -sname x
Erlang (JAM) emulator version 47.4.1

Eshell V47.4.1 (abort with ^G)
(x_at_kaja)1> mnesia:create_schema([node()]).
ok
(x_at_kaja)2> mnesia:start().
ok

-- Start y_at_kaja

[jocke_at_kaja]$ erl -sname y -mnesia extra_db_nodes [x_at_kaja]
Erlang (JAM) emulator version 47.4.1

Eshell V47.4.1 (abort with ^G)
(y_at_kaja)1> mnesia:start().
ok

-- Add y_at_kaja to x_at_kaja's mnesia context, i.e. inherit schema.

(x_at_kaja)4> mnesia:change_table_copy_type(schema,y_at_kaja,disc_copies).

Ohps! x_at_kaja hangs forever...

-- Ohps! Oh no y_at_kaja crashes...

(y_at_kaja)2>
=ERROR REPORT==== 26-Apr-1999::10:59:44 ===
Mnesia(y_at_kaja): ** ERROR ** (ignoring core) ** FATAL ** mnesia_monitor crashed: {badarg,
{ets,
lookup,
[disk_log_names,
latest_log]}} state: {state,
<0.59.0>,
[],
[]}

=ERROR REPORT==== 26-Apr-1999::10:59:54 ===
Mnesia(y_at_kaja): ** ERROR ** mnesia_event got unexpected event: {'EXIT',
<0.61.0>,
killed}

=INFO REPORT==== 26-Apr-1999::10:59:54 ===
application: mnesia
exited: killed
type: temporary


Post generated using Mail2Forum (http://m2f.sourceforge.net)
View user's profile Send private message
hakan at erix.ericsson.se
Posted: Wed Apr 28, 1999 7:25 am Reply with quote
Guest
On Mon, 26 Apr 1999, Joakim Greben
jocke
Posted: Thu Apr 29, 1999 9:09 pm Reply with quote
User Joined: 19 Jan 2005 Posts: 32
Hakan Mattsson wrote:
>
> On Mon, 26 Apr 1999, Joakim Greben
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum