use of org.neo4j.causalclustering.readreplica.UpstreamDatabaseSelectionException in project neo4j by neo4j.
the class CatchupPollingProcess method pullTransactions.
private void pullTransactions() {
MemberId upstream;
try {
upstream = selectionStrategyPipeline.bestUpstreamDatabase();
} catch (UpstreamDatabaseSelectionException e) {
log.warn("Could not find upstream database from which to pull.", e);
return;
}
StoreId localStoreId = localDatabase.storeId();
boolean moreToPull = true;
int batchCount = 1;
while (moreToPull) {
moreToPull = pullAndApplyBatchOfTransactions(upstream, localStoreId, batchCount);
batchCount++;
}
}
use of org.neo4j.causalclustering.readreplica.UpstreamDatabaseSelectionException in project neo4j by neo4j.
the class CatchupPollingProcess method copyStore.
private void copyStore() {
MemberId upstream;
try {
upstream = selectionStrategyPipeline.bestUpstreamDatabase();
} catch (UpstreamDatabaseSelectionException e) {
log.warn("Could not find upstream database from which to copy store", e);
return;
}
StoreId localStoreId = localDatabase.storeId();
downloadDatabase(upstream, localStoreId);
}
Aggregations