|
|
|
|||||
|
Db::del: DB_RUNRECOVERY: Fatal error, run database recovery
HI bernard:
when I use Freeze Map in my mutlithread environment . it oftern occured the error : DB_RUNRECOVERY: Fatal error, run database recovery, But when I restart my program , it's ok, what's wrong ? The following is my db environment: I use 2 connector, one for read (mutlithread) and another for write, how can I avoid this error? |
|
|||||
|
HI bernard:
I found another problem, when I read freeze map in one Connection (mutlithread and with high load ), but when write to freeze map in other connection (they are same database file) , the written thread hang up. and after that all ICE has hang up, can't do anything, I think this problem is in Berkeley DB and it has no any exception return. it has occured deadlock. my question is : did any Connection want to use lock to lock each other? |
|
||||||
|
Freeze configures Berkeley DB with deadlock detection, so if your application creates a database deadlock (with only Berkeley DB locks involved), you'll get an exception.
If you use iterators, you must be very careful to close them when no longer needed. Otherwise, these iterators will keep database read locks and will "lock out" your writer. Cheers, Bernard |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Db_runrecovery Error | pradeep | Help Center | 5 | 11-30-2006 12:26 AM |
| ICE connection lifecycle information/implementing recovery | mcrystal | Help Center | 1 | 09-28-2006 06:04 PM |
| fatal error C1189: #error : WINDOWS.H already included | delloby | Help Center | 1 | 02-05-2006 02:58 AM |
| fatal error C1189: #error : "Ice for Visual C++ 6.0 requires STLport" | richardma | Help Center | 4 | 01-13-2006 07:23 AM |
| create proxy and database | Mr.Freeze | Help Center | 3 | 09-04-2003 03:16 AM |