You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2021/10/28 16:39:48 UTC
[lucene-solr] branch branch_8x updated: Add recovery check before
querying in backup-restore test.
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 1b098b1 Add recovery check before querying in backup-restore test.
1b098b1 is described below
commit 1b098b1c517947afd60346a62e919e8fd8588a98
Author: Houston Putman <ho...@apache.org>
AuthorDate: Thu Oct 28 12:02:43 2021 -0400
Add recovery check before querying in backup-restore test.
---
.../solr/cloud/api/collections/AbstractIncrementalBackupTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/api/collections/AbstractIncrementalBackupTest.java b/solr/test-framework/src/java/org/apache/solr/cloud/api/collections/AbstractIncrementalBackupTest.java
index 7b7352b..760dd84 100644
--- a/solr/test-framework/src/java/org/apache/solr/cloud/api/collections/AbstractIncrementalBackupTest.java
+++ b/solr/test-framework/src/java/org/apache/solr/cloud/api/collections/AbstractIncrementalBackupTest.java
@@ -171,6 +171,11 @@ public abstract class AbstractIncrementalBackupTest extends SolrCloudTestCase {
.processAndWait(solrClient, 500);
timeTaken = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - t);
log.info("Restored from backup, took {}ms", timeTaken);
+ t = System.nanoTime();
+ AbstractDistribZkTestBase.waitForRecoveriesToFinish(
+ restoreCollectionName, cluster.getSolrClient().getZkStateReader(), log.isDebugEnabled(), false, 3);
+ timeTaken = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - t);
+ log.info("Restored collection healthy, took {}ms", timeTaken);
numFound = cluster.getSolrClient().query(restoreCollectionName,
new SolrQuery("*:*")).getResults().getNumFound();
assertEquals(expectedDocsForFirstBackup, numFound);