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);
}
Aggregations