Search in sources :

Example 1 with FileIOFactory

use of org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory in project ignite by apache.

the class GridIoManagerFileTransmissionSelfTest method testFileHandlerReconnectOnReadFail.

/**
 * @throws Exception If fails.
 */
@Test(expected = IgniteCheckedException.class)
public void testFileHandlerReconnectOnReadFail() throws Exception {
    final String chunkDownloadExMsg = "Test exception. Chunk processing error.";
    snd = startGrid(0);
    rcv = startGrid(1);
    File fileToSend = createFileRandomData("testFile", 5 * 1024 * 1024);
    final AtomicInteger readChunks = new AtomicInteger();
    transmissionFileIoFactory(rcv, new FileIOFactory() {

        @Override
        public FileIO create(File file, OpenOption... modes) throws IOException {
            fileIo[0] = IO_FACTORY.create(file, modes);
            // Blocking writer and stopping node FileIo.
            return new FileIODecorator(fileIo[0]) {

                @Override
                public long transferFrom(ReadableByteChannel src, long position, long count) throws IOException {
                    // Read 4 chunks than throw an exception to emulate error processing.
                    if (readChunks.incrementAndGet() == 4)
                        throw new IgniteException(chunkDownloadExMsg);
                    return super.transferFrom(src, position, count);
                }
            };
        }
    });
    rcv.context().io().addTransmissionHandler(topic, new DefaultTransmissionHandler(rcv, fileToSend, tempStore) {

        @Override
        public void onException(UUID nodeId, Throwable err) {
            assertEquals(chunkDownloadExMsg, err.getMessage());
        }
    });
    try (GridIoManager.TransmissionSender sender = snd.context().io().openTransmissionSender(rcv.localNode().id(), topic)) {
        sender.send(fileToSend, TransmissionPolicy.FILE);
    }
}
Also used : RandomAccessFileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.RandomAccessFileIOFactory) FileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory) ReadableByteChannel(java.nio.channels.ReadableByteChannel) FileIODecorator(org.apache.ignite.internal.processors.cache.persistence.file.FileIODecorator) IOException(java.io.IOException) FileIO(org.apache.ignite.internal.processors.cache.persistence.file.FileIO) OpenOption(java.nio.file.OpenOption) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) IgniteException(org.apache.ignite.IgniteException) UUID(java.util.UUID) RandomAccessFile(java.io.RandomAccessFile) File(java.io.File) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Example 2 with FileIOFactory

use of org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory in project ignite by apache.

the class GridCommandHandlerDefragmentationTest method testDefragmentationCancelInProgress.

/**
 * @throws Exception If failed.
 */
@Test
public void testDefragmentationCancelInProgress() throws Exception {
    IgniteEx ig = startGrid(0);
    ig.cluster().state(ClusterState.ACTIVE);
    IgniteCache<Object, Object> cache = ig.getOrCreateCache(DEFAULT_CACHE_NAME);
    for (int i = 0; i < 1024; i++) cache.put(i, i);
    forceCheckpoint(ig);
    String grid0ConsId = ig.configuration().getConsistentId().toString();
    ListeningTestLogger testLog = new ListeningTestLogger();
    CommandHandler cmd = createCommandHandler(testLog);
    assertEquals(EXIT_CODE_OK, execute(cmd, "--defragmentation", "schedule", "--nodes", grid0ConsId));
    String port = grid(0).localNode().attribute(IgniteNodeAttributes.ATTR_REST_TCP_PORT).toString();
    stopGrid(0);
    blockCdl = new CountDownLatch(128);
    UnaryOperator<IgniteConfiguration> cfgOp = cfg -> {
        DataStorageConfiguration dsCfg = cfg.getDataStorageConfiguration();
        FileIOFactory delegate = dsCfg.getFileIOFactory();
        dsCfg.setFileIOFactory((file, modes) -> {
            if (file.getName().contains("dfrg")) {
                if (blockCdl.getCount() == 0) {
                    try {
                        // Slow down defragmentation process.
                        // This'll be enough for the test since we have, like, 900 partitions left.
                        Thread.sleep(100);
                    } catch (InterruptedException ignore) {
                    // No-op.
                    }
                } else
                    blockCdl.countDown();
            }
            return delegate.create(file, modes);
        });
        return cfg;
    };
    IgniteInternalFuture<?> fut = GridTestUtils.runAsync(() -> {
        try {
            startGrid(0, cfgOp);
        } catch (Exception e) {
            // No-op.
            throw new RuntimeException(e);
        }
    });
    blockCdl.await();
    LogListener logLsnr = LogListener.matches("Defragmentation cancelled successfully.").build();
    testLog.registerListener(logLsnr);
    assertEquals(EXIT_CODE_OK, execute(cmd, "--port", port, "--defragmentation", "cancel"));
    assertTrue(logLsnr.check());
    fut.get();
    testLog.clearListeners();
    logLsnr = LogListener.matches("Defragmentation is already completed or has been cancelled previously.").build();
    testLog.registerListener(logLsnr);
    assertEquals(EXIT_CODE_OK, execute(cmd, "--port", port, "--defragmentation", "cancel"));
    assertTrue(logLsnr.check());
}
Also used : IgniteInternalFuture(org.apache.ignite.internal.IgniteInternalFuture) ListeningTestLogger(org.apache.ignite.testframework.ListeningTestLogger) LogListener(org.apache.ignite.testframework.LogListener) Arrays(java.util.Arrays) IgniteNodeAttributes(org.apache.ignite.internal.IgniteNodeAttributes) ClusterState(org.apache.ignite.cluster.ClusterState) UnaryOperator(java.util.function.UnaryOperator) IgniteEx(org.apache.ignite.internal.IgniteEx) Formatter(java.util.logging.Formatter) EXIT_CODE_OK(org.apache.ignite.internal.commandline.CommandHandler.EXIT_CODE_OK) GridCacheDatabaseSharedManager(org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager) EXIT_CODE_INVALID_ARGUMENTS(org.apache.ignite.internal.commandline.CommandHandler.EXIT_CODE_INVALID_ARGUMENTS) FileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) StreamHandler(java.util.logging.StreamHandler) ACTIVE(org.apache.ignite.cluster.ClusterState.ACTIVE) DefragmentationParameters(org.apache.ignite.internal.processors.cache.persistence.defragmentation.maintenance.DefragmentationParameters) CommandHandler(org.apache.ignite.internal.commandline.CommandHandler) Test(org.junit.Test) Ignite(org.apache.ignite.Ignite) LogRecord(java.util.logging.LogRecord) Logger(java.util.logging.Logger) MaintenanceTask(org.apache.ignite.maintenance.MaintenanceTask) IgniteCache(org.apache.ignite.IgniteCache) GridTestUtils(org.apache.ignite.testframework.GridTestUtils) CountDownLatch(java.util.concurrent.CountDownLatch) List(java.util.List) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) Pattern(java.util.regex.Pattern) Collections(java.util.Collections) FileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory) LogListener(org.apache.ignite.testframework.LogListener) ListeningTestLogger(org.apache.ignite.testframework.ListeningTestLogger) CommandHandler(org.apache.ignite.internal.commandline.CommandHandler) CountDownLatch(java.util.concurrent.CountDownLatch) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) IgniteEx(org.apache.ignite.internal.IgniteEx) Test(org.junit.Test)

Example 3 with FileIOFactory

use of org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory in project ignite by apache.

the class IgniteWalIteratorFactory method resolveWalFiles.

/**
 * This methods checks all provided files to be correct WAL segment.
 * Header record and its position is checked. WAL position is used to determine real index.
 * File index from file name is ignored.
 *
 * @param iteratorParametersBuilder IteratorParametersBuilder.
 * @return list of file descriptors with checked header records, having correct file index is set
 */
public List<FileDescriptor> resolveWalFiles(IteratorParametersBuilder iteratorParametersBuilder) {
    File[] filesOrDirs = iteratorParametersBuilder.filesOrDirs;
    if (filesOrDirs == null || filesOrDirs.length == 0)
        return Collections.emptyList();
    final FileIOFactory ioFactory = iteratorParametersBuilder.ioFactory;
    final TreeSet<FileDescriptor> descriptors = new TreeSet<>();
    for (File file : filesOrDirs) {
        if (file.isDirectory()) {
            try {
                walkFileTree(file.toPath(), new SimpleFileVisitor<Path>() {

                    @Override
                    public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) {
                        addFileDescriptor(path.toFile(), ioFactory, descriptors);
                        return FileVisitResult.CONTINUE;
                    }
                });
            } catch (IOException e) {
                U.error(log, "Failed to walk directories from root [" + file + "]. Skipping this directory.", e);
            }
            continue;
        }
        addFileDescriptor(file, ioFactory, descriptors);
    }
    return new ArrayList<>(descriptors);
}
Also used : Path(java.nio.file.Path) FileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory) ArrayList(java.util.ArrayList) FileVisitResult(java.nio.file.FileVisitResult) IOException(java.io.IOException) FileDescriptor(org.apache.ignite.internal.processors.cache.persistence.wal.FileDescriptor) TreeSet(java.util.TreeSet) File(java.io.File) BasicFileAttributes(java.nio.file.attribute.BasicFileAttributes)

Example 4 with FileIOFactory

use of org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory in project ignite by apache.

the class IgnitePdsDefragmentationTest method startAndAwaitNodeFail.

/**
 * @throws IgniteInterruptedCheckedException If fail.
 */
private void startAndAwaitNodeFail(File workDir) throws IgniteInterruptedCheckedException {
    String errMsg = "Failed to create defragmentation completion marker.";
    AtomicBoolean errOccurred = new AtomicBoolean();
    UnaryOperator<IgniteConfiguration> cfgOp = cfg -> {
        DataStorageConfiguration dsCfg = cfg.getDataStorageConfiguration();
        FileIOFactory delegate = dsCfg.getFileIOFactory();
        dsCfg.setFileIOFactory((file, modes) -> {
            if (file.equals(defragmentationCompletionMarkerFile(workDir))) {
                errOccurred.set(true);
                throw new IOException(errMsg);
            }
            return delegate.create(file, modes);
        });
        return cfg;
    };
    AtomicBoolean nodeStopped = new AtomicBoolean();
    IgnitionListener nodeStopListener = (name, state) -> {
        if (name.equals(getTestIgniteInstanceName(0)) && state == IgniteState.STOPPED_ON_FAILURE)
            nodeStopped.set(true);
    };
    Ignition.addListener(nodeStopListener);
    try {
        try {
            startGrid(0, cfgOp);
        } catch (Exception ignore) {
        // No-op.
        }
        // Failed node can leave interrupted status of the thread that needs to be cleared,
        // otherwise following "wait" wouldn't work.
        // This call can't be moved inside of "catch" block because interruption can actually be silent.
        Thread.interrupted();
        assertTrue(GridTestUtils.waitForCondition(errOccurred::get, 3_000L));
        assertTrue(GridTestUtils.waitForCondition(nodeStopped::get, 3_000L));
    } finally {
        Ignition.removeListener(nodeStopListener);
    }
}
Also used : Arrays(java.util.Arrays) Random(java.util.Random) UnaryOperator(java.util.function.UnaryOperator) IgniteEx(org.apache.ignite.internal.IgniteEx) DefragmentationFileUtils(org.apache.ignite.internal.processors.cache.persistence.defragmentation.DefragmentationFileUtils) DefragmentationFileUtils.defragmentedPartMappingFile(org.apache.ignite.internal.processors.cache.persistence.defragmentation.DefragmentationFileUtils.defragmentedPartMappingFile) RendezvousAffinityFunction(org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction) DefragmentationFileUtils.defragmentedPartFile(org.apache.ignite.internal.processors.cache.persistence.defragmentation.DefragmentationFileUtils.defragmentedPartFile) IgniteThrowableConsumer(org.apache.ignite.internal.util.lang.IgniteThrowableConsumer) MaintenanceRegistry(org.apache.ignite.maintenance.MaintenanceRegistry) Path(java.nio.file.Path) FilePageStore(org.apache.ignite.internal.processors.cache.persistence.file.FilePageStore) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) FileVisitor(java.nio.file.FileVisitor) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) IgniteException(org.apache.ignite.IgniteException) FilePageStoreManager(org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager) MaintenanceFileStore(org.apache.ignite.internal.maintenance.MaintenanceFileStore) IgniteCache(org.apache.ignite.IgniteCache) StopNodeFailureHandler(org.apache.ignite.failure.StopNodeFailureHandler) GridTestUtils(org.apache.ignite.testframework.GridTestUtils) INDEX_PARTITION(org.apache.ignite.internal.pagemem.PageIdAllocator.INDEX_PARTITION) FileVisitResult(java.nio.file.FileVisitResult) List(java.util.List) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) DFLT_STORE_DIR(org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.DFLT_STORE_DIR) IntStream(java.util.stream.IntStream) ClusterState(org.apache.ignite.cluster.ClusterState) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) U(org.apache.ignite.internal.util.typedef.internal.U) AtomicReference(java.util.concurrent.atomic.AtomicReference) Function(java.util.function.Function) CacheGroupContext(org.apache.ignite.internal.processors.cache.CacheGroupContext) StandardCopyOption(java.nio.file.StandardCopyOption) ArrayList(java.util.ArrayList) DefragmentationParameters.toStore(org.apache.ignite.internal.processors.cache.persistence.defragmentation.maintenance.DefragmentationParameters.toStore) IgnitionListener(org.apache.ignite.IgnitionListener) IgniteState(org.apache.ignite.IgniteState) FileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) IgniteInterruptedCheckedException(org.apache.ignite.internal.IgniteInterruptedCheckedException) Duration(javax.cache.expiry.Duration) Factory(javax.cache.configuration.Factory) DefragmentationFileUtils.defragmentedIndexFile(org.apache.ignite.internal.processors.cache.persistence.defragmentation.DefragmentationFileUtils.defragmentedIndexFile) ExpiryPolicy(javax.cache.expiry.ExpiryPolicy) Files(java.nio.file.Files) PageStoreCollection(org.apache.ignite.internal.pagemem.store.PageStoreCollection) IOException(java.io.IOException) FailureHandler(org.apache.ignite.failure.FailureHandler) Test(org.junit.Test) BasicFileAttributes(java.nio.file.attribute.BasicFileAttributes) File(java.io.File) TRANSACTIONAL(org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL) TimeUnit(java.util.concurrent.TimeUnit) Ignition(org.apache.ignite.Ignition) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) IgniteDataStreamer(org.apache.ignite.IgniteDataStreamer) DefragmentationFileUtils.defragmentationCompletionMarkerFile(org.apache.ignite.internal.processors.cache.persistence.defragmentation.DefragmentationFileUtils.defragmentationCompletionMarkerFile) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) FileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) IOException(java.io.IOException) IgnitionListener(org.apache.ignite.IgnitionListener) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) IgniteException(org.apache.ignite.IgniteException) IgniteInterruptedCheckedException(org.apache.ignite.internal.IgniteInterruptedCheckedException) IOException(java.io.IOException)

Example 5 with FileIOFactory

use of org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory in project ignite by apache.

the class IgniteSequentialNodeCrashRecoveryTest method testCrashOnCheckpointAfterLogicalRecovery.

/**
 * @throws Exception if failed.
 */
@Test
public void testCrashOnCheckpointAfterLogicalRecovery() throws Exception {
    IgniteEx g = startGrid(0);
    g.cluster().active(true);
    g.getOrCreateCache(new CacheConfiguration<>("cache").setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL).setAffinity(new RendezvousAffinityFunction(false, 8)));
    disableCheckpoints(g);
    {
        IgniteCache<Object, Object> cache = g.cache("cache");
        // Now that checkpoints are disabled, put some data to the cache.
        GridTestUtils.runMultiThreaded(() -> {
            for (int i = 0; i < 400; i++) cache.put(i % 100, Thread.currentThread().getName());
        }, 64, "update-thread");
    }
    Collection<FullPageId> dirtyAfterLoad = captureDirtyPages(g);
    stopGrid(0);
    CheckpointFailingIoFactory f = (CheckpointFailingIoFactory) (fileIoFactory = new CheckpointFailingIoFactory(false));
    StopLatchFailureHandler fh = (StopLatchFailureHandler) (failureHnd = new StopLatchFailureHandler());
    // Blocking first exchange to prevent checkpoint on node start(reason = 'node started').
    BlockingDiscoverySpi ds = (BlockingDiscoverySpi) (discoverySpi = new BlockingDiscoverySpi((m) -> m instanceof ChangeGlobalStateMessage));
    // Now start the node. Since the checkpoint was disabled, logical recovery will be performed.
    g = startGrid(0);
    fileIoFactory = null;
    failureHnd = null;
    // Capture dirty pages after logical recovery & updates.
    Collection<FullPageId> dirtyAfterRecoveryAndUpdates = captureDirtyPages(g);
    f.startFailing();
    ds.clearBlock();
    triggerCheckpoint(g);
    assertTrue("Failed to wait for checkpoint failure", fh.waitFailed());
    // Capture pages we marked on first run and did not mark on second run.
    dirtyAfterLoad.removeAll(dirtyAfterRecoveryAndUpdates);
    assertFalse(dirtyAfterLoad.isEmpty());
    fileIoFactory = new CheckingIoFactory(dirtyAfterLoad);
    discoverySpi = null;
    g = startGrid(0);
    {
        IgniteCache<Object, Object> cache = g.cache("cache");
        for (int i = 0; i < 400; i++) cache.put(100 + (i % 100), Thread.currentThread().getName());
        for (int i = 0; i < 200; i++) assertTrue("i=" + i, cache.containsKey(i));
    }
}
Also used : CacheAtomicityMode(org.apache.ignite.cache.CacheAtomicityMode) IgniteInternalFuture(org.apache.ignite.internal.IgniteInternalFuture) IgnitionEx(org.apache.ignite.internal.IgnitionEx) IgniteEx(org.apache.ignite.internal.IgniteEx) ByteBuffer(java.nio.ByteBuffer) RendezvousAffinityFunction(org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction) DiscoverySpi(org.apache.ignite.spi.discovery.DiscoverySpi) FileIO(org.apache.ignite.internal.processors.cache.persistence.file.FileIO) FileIODecorator(org.apache.ignite.internal.processors.cache.persistence.file.FileIODecorator) TcpDiscoveryCustomEventMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage) RandomAccessFileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.RandomAccessFileIOFactory) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) PageIdAllocator(org.apache.ignite.internal.pagemem.PageIdAllocator) Collection(java.util.Collection) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) MetaStorage(org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage) TcpDiscoveryAbstractMessage(org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryAbstractMessage) IgniteCache(org.apache.ignite.IgniteCache) DiscoverySpiCustomMessage(org.apache.ignite.spi.discovery.DiscoverySpiCustomMessage) StopNodeFailureHandler(org.apache.ignite.failure.StopNodeFailureHandler) GridTestUtils(org.apache.ignite.testframework.GridTestUtils) CountDownLatch(java.util.concurrent.CountDownLatch) Nullable(org.jetbrains.annotations.Nullable) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) PageIdUtils(org.apache.ignite.internal.pagemem.PageIdUtils) CU(org.apache.ignite.internal.util.typedef.internal.CU) ShutdownPolicy(org.apache.ignite.ShutdownPolicy) CustomMessageWrapper(org.apache.ignite.internal.managers.discovery.CustomMessageWrapper) FullPageId(org.apache.ignite.internal.pagemem.FullPageId) CheckpointProgress(org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointProgress) U(org.apache.ignite.internal.util.typedef.internal.U) CacheGroupContext(org.apache.ignite.internal.processors.cache.CacheGroupContext) GridCacheDatabaseSharedManager(org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager) GridCacheOffheapManager(org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager) FailureContext(org.apache.ignite.failure.FailureContext) DiscoveryCustomMessage(org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage) IgnitePredicate(org.apache.ignite.lang.IgnitePredicate) S(org.apache.ignite.internal.util.typedef.internal.S) FileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) IgniteInterruptedCheckedException(org.apache.ignite.internal.IgniteInterruptedCheckedException) CheckpointListener(org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointListener) PartitionAllocationMap(org.apache.ignite.internal.processors.cache.persistence.partstate.PartitionAllocationMap) Executor(java.util.concurrent.Executor) OpenOption(java.nio.file.OpenOption) IOException(java.io.IOException) FailureHandler(org.apache.ignite.failure.FailureHandler) Test(org.junit.Test) Ignite(org.apache.ignite.Ignite) File(java.io.File) TimeUnit(java.util.concurrent.TimeUnit) PageMemoryImpl(org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl) ChangeGlobalStateMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateMessage) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) TcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) IgniteEx(org.apache.ignite.internal.IgniteEx) IgniteCache(org.apache.ignite.IgniteCache) ChangeGlobalStateMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateMessage) RendezvousAffinityFunction(org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction) FullPageId(org.apache.ignite.internal.pagemem.FullPageId) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Aggregations

FileIOFactory (org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory)20 Test (org.junit.Test)14 File (java.io.File)13 RandomAccessFileIOFactory (org.apache.ignite.internal.processors.cache.persistence.file.RandomAccessFileIOFactory)12 FileIO (org.apache.ignite.internal.processors.cache.persistence.file.FileIO)11 IOException (java.io.IOException)10 GridCommonAbstractTest (org.apache.ignite.testframework.junits.common.GridCommonAbstractTest)10 DataStorageConfiguration (org.apache.ignite.configuration.DataStorageConfiguration)8 IgniteEx (org.apache.ignite.internal.IgniteEx)8 ByteBuffer (java.nio.ByteBuffer)7 OpenOption (java.nio.file.OpenOption)7 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)7 FileIODecorator (org.apache.ignite.internal.processors.cache.persistence.file.FileIODecorator)7 CountDownLatch (java.util.concurrent.CountDownLatch)6 Ignite (org.apache.ignite.Ignite)6 IgniteCache (org.apache.ignite.IgniteCache)6 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)6 GridCacheDatabaseSharedManager (org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager)6 GridTestUtils (org.apache.ignite.testframework.GridTestUtils)6 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)5