[erlang-questions] mnesia silent failure and table corruption

Janos Hary <>
Tue Aug 27 17:06:14 CEST 2013


Thanks, but no luck. It behaves the same with sync_transaction.

Janos

-----Original Message-----
From:  [mailto:] On Behalf Of
Håkan Mattsson
Sent: Tuesday, August 27, 2013 4:02 PM
To: Janos Hary
Cc: erlang-questions
Subject: Re: [erlang-questions] mnesia silent failure and table corruption

On Tue, Aug 27, 2013 at 3:05 PM, Janos Hary <> wrote:
> All,
>
> I started to write records into a table from a simple test function. 
> When the table size reaches 2GB write transactions still report 
> success, but they are silently ignored. The table became unusable, 
> read operations return error, and mnesia cannot recover the table. How 
> shall I avoid such situation?

Try using mnesia:sync_transaction() instead of mnesia:transaction().
Then Mnesia will use syncronized calls to disk_log (and syncronized commits
when several nodes are involved).

/Håkan



More information about the erlang-questions mailing list