Package zipkin2.storage
Class ITSpanStoreHeavy<T extends StorageComponent>
java.lang.Object
zipkin2.storage.ITStorage<T>
zipkin2.storage.ITSpanStoreHeavy<T>
Base heavy tests for 
SpanStore implementations. Subtypes should create a connection to a
 real backend, even if that backend is in-process.
 As these tests create a lot of data, implementations may wish to isolate them from other
 integration tests such as ITSpanStore
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected final voidConfigures aStorageComponent.Builderwith parameters for the test being executed.protected voidgetTraces_manyTraces(org.junit.jupiter.api.TestInfo testInfo) Formerly, a bug was present where cassandra didn't index more than bucket count traces per millisecond.protected booleanSets the test to initialise theStorageComponentbefore each test rather than the test class.protected voidtraceWithManySpans(org.junit.jupiter.api.TestInfo testInfo) Methods inherited from class zipkin2.storage.ITStorageaccept, accept, assertGetTraceReturns, assertGetTraceReturns, assertGetTraceReturnsEmpty, assertGetTracesReturns, assertGetTracesReturns, assertGetTracesReturnsCount, assertGetTracesReturnsEmpty, assertGetTracesReturnsEmpty, blockWhileInFlight, checkStorage, clear, names, newStorageBuilder, requestBuilder, returnsRawSpans, sortTrace, store, testSuffix, traces
- 
Constructor Details- 
ITSpanStoreHeavypublic ITSpanStoreHeavy()
 
- 
- 
Method Details- 
initializeStoragePerTestprotected boolean initializeStoragePerTest()Description copied from class:ITStorageSets the test to initialise theStorageComponentbefore each test rather than the test class. Generally, tests will run faster if the storage is initialized as infrequently as possibly while clearing data between runs, but for certain backends like Cassandra, it's difficult to reliably clear data between runs and tends to be very slow anyways.- Overrides:
- initializeStoragePerTestin class- ITStorage<T extends StorageComponent>
 
- 
configureStorageForTestDescription copied from class:ITStorageConfigures aStorageComponent.Builderwith parameters for the test being executed.- Specified by:
- configureStorageForTestin class- ITStorage<T extends StorageComponent>
 
- 
traceWithManySpans- Throws:
- Exception
 
- 
getTraces_manyTracesFormerly, a bug was present where cassandra didn't index more than bucket count traces per millisecond. This stores a lot of spans to ensure indexes work under high-traffic scenarios.- Throws:
- Exception
 
 
-