Class AbstractIncrementalBackupTest

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.AbstractIncrementalBackupTest

public abstract class AbstractIncrementalBackupTest extends SolrCloudTestCase
Used to test the incremental method of backup/restoration (as opposed to the deprecated 'full snapshot' method).

For a similar test harness for snapshot backup/restoration see AbstractCloudBackupRestoreTestCase

  • Field Details

  • Constructor Details

    • AbstractIncrementalBackupTest

      public AbstractIncrementalBackupTest()
  • Method Details

    • createCluster

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

      public void setUpTrackingRepo()
    • getCollectionNamePrefix

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

      public String getCollectionName()
    • setTestSuffix

      public void setTestSuffix(String testSuffix)
    • getBackupLocation

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

      public void testSimple() throws Exception
      Throws:
      Exception
    • testRestoreToOriginalCollection

      public void testRestoreToOriginalCollection() throws Exception
      Throws:
      Exception
    • testBackupIncremental

      @Nightly public void testBackupIncremental() throws Exception
      Throws:
      Exception
    • testSkipConfigset

      public void testSkipConfigset() throws Exception
      Throws:
      Exception
    • testBackupProperties

      public void testBackupProperties() throws IOException
      Throws:
      IOException
    • corruptIndexFiles

      protected void corruptIndexFiles() throws IOException
      Throws:
      IOException
    • indexDocs

      protected int indexDocs(String collectionName, boolean useUUID) throws Exception
      Throws:
      Exception