Dan Washusen
2008-05-20 00:34:40 UTC
Hi All,
I'm just working through an issue regarding error while shutting down our
application. I've noticed that despite my code explicitly turning off the
'autoShutdownEnabled' feature via the ShutdownCapability class, the
repository still automatically shuts down.
I've started digging through the carbonado code and noticed that start
method in the com.amazon.carbonado.repo.sleepycat.BDBRepository class is
Dan
I'm just working through an issue regarding error while shutting down our
application. I've noticed that despite my code explicitly turning off the
'autoShutdownEnabled' feature via the ShutdownCapability class, the
repository still automatically shuts down.
I've started digging through the carbonado code and noticed that start
method in the com.amazon.carbonado.repo.sleepycat.BDBRepository class is
464 void start(long checkpointInterval, long deadlockDetectorInterval) {
465 getLog().info("Opening repository \"" + getName() + '"');
466
467 if (mRunCheckpointer && checkpointInterval > 0) {
468 mCheckpointer = new Checkpointer(this, checkpointInterval);
469 mCheckpointer.start();
470 } else {
471 mCheckpointer = null;
472 }
473
474 if (mRunDeadlockDetector && deadlockDetectorInterval > 0) {
475 mDeadlockDetector = new DeadlockDetector(this, deadlockDetectorInterval);
476 mDeadlockDetector.start();
477 } else {
478 mDeadlockDetector = null;
479 }
480
481 *setAutoShutdownEnabled(true);*
482 }
Am I on the right track?
Cheers,465 getLog().info("Opening repository \"" + getName() + '"');
466
467 if (mRunCheckpointer && checkpointInterval > 0) {
468 mCheckpointer = new Checkpointer(this, checkpointInterval);
469 mCheckpointer.start();
470 } else {
471 mCheckpointer = null;
472 }
473
474 if (mRunDeadlockDetector && deadlockDetectorInterval > 0) {
475 mDeadlockDetector = new DeadlockDetector(this, deadlockDetectorInterval);
476 mDeadlockDetector.start();
477 } else {
478 mDeadlockDetector = null;
479 }
480
481 *setAutoShutdownEnabled(true);*
482 }
Am I on the right track?
Dan