Search in sources :

Example 1 with StorageMetadataVersionMismatchException

use of io.pravega.segmentstore.storage.metadata.StorageMetadataVersionMismatchException in project pravega by pravega.

the class ChunkedSegmentStorageMockTests method testStorageMetadataVersionMismatchExceptionDuringCommit.

@Test
public void testStorageMetadataVersionMismatchExceptionDuringCommit() throws Exception {
    Exception exceptionToThrow = new StorageMetadataVersionMismatchException("Test Exception");
    val clazz = StorageMetadataVersionMismatchException.class;
    testExceptionDuringCommit(exceptionToThrow, clazz);
}
Also used : lombok.val(lombok.val) StorageMetadataVersionMismatchException(io.pravega.segmentstore.storage.metadata.StorageMetadataVersionMismatchException) StorageNotPrimaryException(io.pravega.segmentstore.storage.StorageNotPrimaryException) StorageFullException(io.pravega.segmentstore.storage.StorageFullException) StorageMetadataWritesFencedOutException(io.pravega.segmentstore.storage.metadata.StorageMetadataWritesFencedOutException) IntentionalException(io.pravega.test.common.IntentionalException) IOException(java.io.IOException) CompletionException(java.util.concurrent.CompletionException) StorageMetadataException(io.pravega.segmentstore.storage.metadata.StorageMetadataException) StorageMetadataVersionMismatchException(io.pravega.segmentstore.storage.metadata.StorageMetadataVersionMismatchException) Test(org.junit.Test)

Aggregations

StorageFullException (io.pravega.segmentstore.storage.StorageFullException)1 StorageNotPrimaryException (io.pravega.segmentstore.storage.StorageNotPrimaryException)1 StorageMetadataException (io.pravega.segmentstore.storage.metadata.StorageMetadataException)1 StorageMetadataVersionMismatchException (io.pravega.segmentstore.storage.metadata.StorageMetadataVersionMismatchException)1 StorageMetadataWritesFencedOutException (io.pravega.segmentstore.storage.metadata.StorageMetadataWritesFencedOutException)1 IntentionalException (io.pravega.test.common.IntentionalException)1 IOException (java.io.IOException)1 CompletionException (java.util.concurrent.CompletionException)1 lombok.val (lombok.val)1 Test (org.junit.Test)1