On 2005-09-01 01:14:14 -0400, studdugie (AT) gmail (DOT) com said:
Quote:
There is no way via the Java API to query the environment and find all
open cursors and/or transactions and close them. The key to a clean
shutdown is judicious use of try/finally blocks for cursors and
transactions. The good news is if you use transactions and logging you
can get away with a dirty shutdown and run recovery on startup to get
things back in pristine order. The bad news is it doesn't always work.
Berkeley DB can sometimes be very testy and brittle.
Good Luck. |
Berkeley DB Java Edition should manage the recovery of a failed process
in all cases when configured to run with transactions and recovery. If
it is ever "testy" or "brittle" that is a bug and we'd like to hear
about it so that we can fix it. Please email support (AT) sleepycat (DOT) com
with any such cases.
-greg
__________________________________________________ ___________________
Gregory Burd
Product Manager gburd (AT) sleepycat (DOT) com
Sleepycat Software, Inc. http://www.sleepycat.com/