Mnesia read timeout

Rajesh Bhat <>
Fri Dec 10 14:47:53 CET 2010


Hi,

I ran into an issue where Mnesia read operation timed out during a test. Following code is called from a gen_server call with a time out of 30 seconds. During test, the call timed out one time.  It has not happened since. However would like to understand under what scenario Mnesia read can time out. Reviewing the system report for any unusual activity (i/o, memory etc). has not yielded any clues

Following is the code snippet called from gen_server

get_state(Key) ->
                F = fun() ->
                                                   mnesia:read({key_val_tab, Key})
                   end,
                case mnesia:transaction(F) of
                                {atomic, [S]} ->
                                                S;
                                _Else ->
                                                not_found
                end.

Any thoughts?

Regards
--Rajesh

______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email


More information about the erlang-questions mailing list