Class AbstractDistribZkTestBase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
Direct Known Subclasses:
AbstractFullDistribZkTestBase

public abstract class AbstractDistribZkTestBase extends BaseDistributedSearchTestCase
  • Field Details

  • Constructor Details

    • AbstractDistribZkTestBase

      public AbstractDistribZkTestBase()
  • Method Details

    • beforeThisClass

      public static void beforeThisClass() throws Exception
      Throws:
      Exception
    • distribSetUp

      public void distribSetUp() throws Exception
      Overrides:
      distribSetUp in class BaseDistributedSearchTestCase
      Throws:
      Exception
    • getCloudSolrConfig

      protected String getCloudSolrConfig()
    • getCloudSchemaFile

      protected String getCloudSchemaFile()
    • createServers

      protected void createServers(int numShards) throws Exception
      Overrides:
      createServers in class BaseDistributedSearchTestCase
      Throws:
      Exception
    • waitForRecoveriesToFinish

      protected void waitForRecoveriesToFinish(String collection, org.apache.solr.common.cloud.ZkStateReader zkStateReader, boolean verbose) throws Exception
      Throws:
      Exception
    • waitForRecoveriesToFinish

      protected void waitForRecoveriesToFinish(String collection, org.apache.solr.common.cloud.ZkStateReader zkStateReader, boolean verbose, boolean failOnTimeout) throws Exception
      Throws:
      Exception
    • waitForRecoveriesToFinish

      public static void waitForRecoveriesToFinish(String collection, org.apache.solr.common.cloud.ZkStateReader zkStateReader, boolean verbose, boolean failOnTimeout, long timeoutSeconds) throws Exception
      Throws:
      Exception
    • waitForRecoveriesToFinish

      public static void waitForRecoveriesToFinish(String collection, org.apache.solr.common.cloud.ZkStateReader zkStateReader, boolean verbose, boolean failOnTimeout, long timeout, TimeUnit unit) throws Exception
      Throws:
      Exception
    • waitForCollectionToDisappear

      public static void waitForCollectionToDisappear(String collection, org.apache.solr.common.cloud.ZkStateReader zkStateReader, boolean failOnTimeout, int timeoutSeconds) throws Exception
      Throws:
      Exception
    • verifyReplicaStatus

      public static void verifyReplicaStatus(org.apache.solr.common.cloud.ZkStateReader reader, String collection, String shard, String coreNodeName, org.apache.solr.common.cloud.Replica.State expectedState) throws InterruptedException, TimeoutException
      Throws:
      InterruptedException
      TimeoutException
    • assertAllActive

      protected static void assertAllActive(String collection, org.apache.solr.common.cloud.ZkStateReader zkStateReader) throws org.apache.zookeeper.KeeperException, InterruptedException
      Throws:
      org.apache.zookeeper.KeeperException
      InterruptedException
    • distribTearDown

      public void distribTearDown() throws Exception
      Overrides:
      distribTearDown in class BaseDistributedSearchTestCase
      Throws:
      Exception
    • printLayout

      protected void printLayout() throws Exception
      Throws:
      Exception
    • restartZk

      protected void restartZk(int pauseMillis) throws Exception
      Throws:
      Exception
    • copyConfigUp

      public static void copyConfigUp(Path configSetDir, String srcConfigSet, String dstConfigName, String zkAddr) throws Exception
      Throws:
      Exception