Class AbstractIndicesClusterStateServiceTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.indices.cluster.AbstractIndicesClusterStateServiceTestCase

public abstract class AbstractIndicesClusterStateServiceTestCase extends ESTestCase
Abstract base class for tests against IndicesClusterStateService
  • Constructor Details

    • AbstractIndicesClusterStateServiceTestCase

      public AbstractIndicesClusterStateServiceTestCase()
  • Method Details

    • injectRandomFailures

      public void injectRandomFailures()
    • disableRandomFailures

      protected void disableRandomFailures()
    • failRandomly

      protected void failRandomly()
    • assertClusterStateMatchesNodeState

      public void assertClusterStateMatchesNodeState(ClusterState state, IndicesClusterStateService indicesClusterStateService)
      Checks if cluster state matches internal state of IndicesClusterStateService instance
      Parameters:
      state - cluster state used for matching
    • awaitIndexShardCloseAsyncTasks

      public static void awaitIndexShardCloseAsyncTasks(IndicesClusterStateService indicesClusterStateService)