Class AbstractCloudBackupRestoreTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.apache.solr.SolrTestCase
org.apache.solr.SolrTestCaseJ4
org.apache.solr.cloud.SolrCloudTestCase
org.apache.solr.cloud.api.collections.AbstractCloudBackupRestoreTestCase

public abstract class AbstractCloudBackupRestoreTestCase extends SolrCloudTestCase
Used to test the traditional (now deprecated) 'full-snapshot' method of backup/restoration.

For a similar test harness for incremental backup/restoration see AbstractIncrementalBackupTest

  • Field Details

  • Constructor Details

    • AbstractCloudBackupRestoreTestCase

      public AbstractCloudBackupRestoreTestCase()
  • Method Details

    • createCluster

      public static void createCluster() throws Exception
      Throws:
      Exception
    • afterClass

      public static void afterClass() throws Exception
      Throws:
      Exception
    • getCollectionNamePrefix

      public abstract String getCollectionNamePrefix()
      Returns:
      The name of the collection to use.
    • getBackupRepoName

      public abstract String getBackupRepoName()
      Returns:
      The name of the backup repository to use.
    • getBackupLocation

      public abstract String getBackupLocation()
      Returns:
      The absolute path for the backup location. Could return null.
    • getCollectionName

      public String getCollectionName()
    • setTestSuffix

      public void setTestSuffix(String testSuffix)
    • test

      public void test() throws Exception
      Throws:
      Exception
    • testRestoreFailure

      public void testRestoreFailure() throws Exception
      Throws:
      Exception
    • getShardToDocCountMap

      public static Map<String,Integer> getShardToDocCountMap(org.apache.solr.client.solrj.impl.CloudSolrClient client, org.apache.solr.common.cloud.DocCollection docCollection) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException