Package org.elasticsearch.snapshots
Class SnapshotStressTestsHelper
java.lang.Object
org.elasticsearch.snapshots.SnapshotStressTestsHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA client to a node that is blocked from restarting; close thisReleasableto release the block.static classTest harness for snapshot stress tests.static classTracks a node in the cluster.static classTracks a snapshot taken by the cluster.static classEncapsulates a common pattern of trying to acquire a bunch of resources and then transferring ownership elsewhere on success, but releasing them on failure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic <T> ActionListener<T> mustSucceed(org.elasticsearch.core.CheckedConsumer<T, Exception> consumer) static AbstractRunnablemustSucceed(org.elasticsearch.core.CheckedRunnable<Exception> runnable) nodeNames(Map<String, DiscoveryNode> nodesMap) static ClusterHealthRequestBuilderprepareClusterHealthRequest(String... targetIndexNames) static StringstringFromSnapshotInfo(SnapshotInfo snapshotInfo) static org.elasticsearch.core.ReleasabletryAcquireAllPermits(Semaphore permits) static org.elasticsearch.core.ReleasabletryAcquirePermit(Semaphore permits)
-
Constructor Details
-
SnapshotStressTestsHelper
public SnapshotStressTestsHelper()
-
-
Method Details
-
nodeNames
-
tryAcquirePermit
-
tryAcquireAllPermits
-
mustSucceed
public static AbstractRunnable mustSucceed(org.elasticsearch.core.CheckedRunnable<Exception> runnable) -
mustSucceed
public static <T> ActionListener<T> mustSucceed(org.elasticsearch.core.CheckedConsumer<T, Exception> consumer) -
logAndFailTest
-
prepareClusterHealthRequest
-
stringFromSnapshotInfo
-