Search in sources :

Example 1 with AtlasDbDependencyException

use of com.palantir.common.exception.AtlasDbDependencyException in project atlasdb by palantir.

the class TimeLockMigrator method tryInitialize.

@Override
// errorprone doesn't pick up "when=NEVER"
@SuppressWarnings({ "CheckReturnValue", "ResultOfMethodCallIgnored" })
protected synchronized void tryInitialize() {
    try {
        destination.ping();
    } catch (Exception e) {
        throw new AtlasDbDependencyException("Could not contact the Timelock Server.", e);
    }
    long currentTimestamp = source.backupAndInvalidate();
    destination.fastForwardTimestamp(currentTimestamp);
}
Also used : AtlasDbDependencyException(com.palantir.common.exception.AtlasDbDependencyException) AtlasDbDependencyException(com.palantir.common.exception.AtlasDbDependencyException)

Aggregations

AtlasDbDependencyException (com.palantir.common.exception.AtlasDbDependencyException)1