@Test public void testDigestsMatch() { try (FDBRecordContext context = database.openContext()) { seedDirectoryLayer(context, primary, 50); } ResolverMappingReplicator replicator = new ResolverMappingReplicator(primary, 10); replicator.copyTo(replica); ResolverMappingDigest primaryDigest = new ResolverMappingDigest(primary); ResolverMappingDigest replicaDigest = new ResolverMappingDigest(replica); assertThat("digests match", primaryDigest.computeDigest().join(), is(replicaDigest.computeDigest().join())); }
public void copyTo(LocatableResolver replica) { runner.asyncToSync(FDBStoreTimer.Waits.WAIT_LOCATABLE_RESOLVER_MAPPING_COPY, copyToAsync(replica)); }
ResolverMappingReplicator implements AutoCloseable { public void copyTo(LocatableResolver replica) { runner.asyncToSync(FDBStoreTimer.Waits.WAIT_LOCATABLE_RESOLVER_MAPPING_COPY, copyToAsync(replica)); } }
ResolverMappingReplicator implements AutoCloseable { public void copyTo(LocatableResolver replica) { runner.asyncToSync(FDBStoreTimer.Waits.WAIT_LOCATABLE_RESOLVER_MAPPING_COPY, copyToAsync(replica)); } ResolverMappingReplicator(@Nonnull LocatableResolver primary);  ResolverMappingReplicator(@Nonnull LocatableResolver primary,
                                     final int transactionRowLimit);  ResolverMappingReplicator(@Nonnull LocatableResolver primary,
                                     final int transactionRowLimit,
                                     final long transactionTimeLimitMillis); }
ResolverMappingReplicator implements AutoCloseable { public void copyTo(LocatableResolver replica) { runner.asyncToSync(FDBStoreTimer.Waits.WAIT_LOCATABLE_RESOLVER_MAPPING_COPY, copyToAsync(replica)); } ResolverMappingReplicator(@Nonnull LocatableResolver primary);  ResolverMappingReplicator(@Nonnull LocatableResolver primary,
                                     final int transactionRowLimit);  ResolverMappingReplicator(@Nonnull LocatableResolver primary,
                                     final int transactionRowLimit,
                                     final long transactionTimeLimitMillis); @Override void close(); void copyTo(LocatableResolver replica); CompletableFuture<Void> copyToAsync(@Nonnull final LocatableResolver replica); @Override String toString(); }
ResolverMappingReplicator implements AutoCloseable { public void copyTo(LocatableResolver replica) { runner.asyncToSync(FDBStoreTimer.Waits.WAIT_LOCATABLE_RESOLVER_MAPPING_COPY, copyToAsync(replica)); } ResolverMappingReplicator(@Nonnull LocatableResolver primary);  ResolverMappingReplicator(@Nonnull LocatableResolver primary,
                                     final int transactionRowLimit);  ResolverMappingReplicator(@Nonnull LocatableResolver primary,
                                     final int transactionRowLimit,
                                     final long transactionTimeLimitMillis); @Override void close(); void copyTo(LocatableResolver replica); CompletableFuture<Void> copyToAsync(@Nonnull final LocatableResolver replica); @Override String toString();  }