[erlang-questions] mnesia silent failure and table corruption

Janos Hary janos.n.hary@REDACTED
Tue Aug 27 17:06:14 CEST 2013

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


-----Original Message-----
From: hawk.mattsson@REDACTED [mailto:hawk.mattsson@REDACTED] 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 <janos.n.hary@REDACTED> 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).


More information about the erlang-questions mailing list