Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public abstract class AbstractSnapshotSelfTest extends GridCommonAbstractTest {
protected static final int CACHE_PARTITIONS_COUNT = GridTestUtils.SF.apply(DFLT_PARTITION_COUNT);

/** Timeout in milliseconds to await for snapshot operation being completed. */
protected static final long TIMEOUT = 15_000;
protected static final long TIMEOUT = 30_000;

/** */
protected static final DiskPageCompression DISK_PAGE_COMPRESSION =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.apache.ignite.internal.util.typedef.G;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.lang.IgniteFuture;
import org.apache.ignite.lang.IgniteFutureTimeoutException;
import org.apache.ignite.plugin.AbstractTestPluginProvider;
import org.apache.ignite.plugin.ExtensionRegistry;
import org.apache.ignite.plugin.PluginConfiguration;
Expand Down Expand Up @@ -134,7 +135,16 @@ public void testClusterSnapshotHandlers() throws Exception {

IgniteFuture<Void> fut = ignite.snapshot().restoreSnapshot(SNAPSHOT_NAME, null);

GridTestUtils.assertThrowsAnyCause(log, () -> fut.get(TIMEOUT), IgniteCheckedException.class, expMsg);
try {
GridTestUtils.assertThrowsAnyCause(log, () -> fut.get(TIMEOUT), IgniteCheckedException.class, expMsg);
}
catch (IgniteFutureTimeoutException ex) {
U.dumpThreads(null);

U.dumpThreads(log);

throw ex;
}

changeMetadataRequestIdOnDisk(reqIdRef.get());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
import org.apache.ignite.internal.util.typedef.F;
import org.apache.ignite.internal.util.typedef.G;
import org.apache.ignite.internal.util.typedef.internal.CU;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.lang.IgniteFutureTimeoutException;
import org.apache.ignite.testframework.GridTestUtils;
import org.junit.Test;

Expand Down Expand Up @@ -152,8 +154,17 @@ public void testClusterSnapshotRestoreOnBiggerTopology() throws Exception {
forceCheckpoint();

// Restore from an empty node.
ignite.snapshot().restoreSnapshot(
SNAPSHOT_NAME, Collections.singleton(DEFAULT_CACHE_NAME)).get(TIMEOUT);
try {
ignite.snapshot().restoreSnapshot(
SNAPSHOT_NAME, Collections.singleton(DEFAULT_CACHE_NAME)).get(TIMEOUT);
}
catch (IgniteFutureTimeoutException ex) {
U.dumpThreads(null);

U.dumpThreads(log);

throw ex;
}

awaitPartitionMapExchange();

Expand Down
Loading