public class TestInjection extends Object
LuceneTestCase
is loadable via the ClassLoader used
to load this class. LuceneTestCase.random()
is used as the source of all entropy.Modifier and Type | Class and Description |
---|---|
static interface |
TestInjection.Hook |
static class |
TestInjection.TestShutdownFailError |
Constructor and Description |
---|
TestInjection() |
public static volatile String nonGracefullClose
public static volatile String failReplicaRequests
public static volatile String failUpdateRequests
public static volatile String leaderTragedy
public static volatile String nonExistentCoreExceptionAfterUnload
public static volatile String updateLogReplayRandomPause
public static volatile String updateRandomPause
public static volatile String prepRecoveryOpPauseForever
public static volatile String randomDelayInCoreCreation
public static volatile int randomDelayMaxInCoreCreationInSec
public static volatile String splitFailureBeforeReplicaCreation
public static volatile String splitFailureAfterReplicaCreation
public static volatile CountDownLatch splitLatch
public static volatile CountDownLatch directUpdateLatch
public static volatile CountDownLatch reindexLatch
public static volatile String reindexFailure
public static volatile String failIndexFingerprintRequests
public static volatile String wrongIndexFingerprint
public static volatile Integer delayBeforeFollowerCommitRefresh
public static volatile Integer delayInExecutePlanAction
public static volatile boolean failInExecutePlanAction
public static volatile boolean skipIndexWriterCommitOnClose
false
, If set to true
,
then injectSkipIndexWriterCommitOnClose(java.lang.Object)
will return true
public static volatile boolean uifOutOfMemoryError
public static void notifyPauseForeverDone()
public static void reset()
public static boolean injectWrongIndexFingerprint()
public static boolean injectFailIndexFingerprintRequests()
public static boolean injectRandomDelayInCoreCreation()
public static boolean injectNonGracefullClose(CoreContainer cc)
public static boolean injectSkipIndexWriterCommitOnClose(Object indexWriter)
skipIndexWriterCommitOnClose
.indexWriter
- used only for loggingskipIndexWriterCommitOnClose
,
DirectUpdateHandler2.closeWriter(org.apache.lucene.index.IndexWriter)
public static boolean injectFailReplicaRequests()
public static boolean injectFailUpdateRequests()
public static boolean injectLeaderTragedy(SolrCore core)
public static boolean injectNonExistentCoreExceptionAfterUnload(String cname)
public static boolean injectUpdateLogReplayRandomPause()
public static boolean injectUpdateRandomPause()
public static boolean injectPrepRecoveryOpPauseForever()
public static boolean injectSplitFailureBeforeReplicaCreation()
public static boolean injectSplitFailureAfterReplicaCreation()
public static boolean injectSplitLatch()
public static boolean injectDirectUpdateLatch()
public static boolean injectReindexFailure()
public static boolean injectReindexLatch()
public static boolean injectDelayBeforeFollowerCommitRefresh()
public static boolean injectUIFOutOfMemoryError()
public static boolean newSearcherHook(TestInjection.Hook hook)
public static boolean injectSearcherHooks(String collectionName)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.