Search in sources :

Example 1 with PartitionDefferedDeleteQueueCleanupTask

use of org.apache.ignite.internal.processors.cache.distributed.dht.topology.PartitionDefferedDeleteQueueCleanupTask in project ignite by apache.

the class GridCacheProcessor method onKernalStart.

/**
 * {@inheritDoc}
 */
@Override
public void onKernalStart(boolean active) throws IgniteCheckedException {
    if (ctx.isDaemon())
        return;
    AffinityTopologyVersion joinVer;
    try {
        boolean checkConsistency = !getBoolean(IGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK);
        if (checkConsistency)
            ValidationOnNodeJoinUtils.checkConsistency(ctx, log);
        cachesInfo.onKernalStart(checkConsistency);
        sharedCtx.walState().onKernalStart();
        ctx.query().onCacheKernalStart();
        joinVer = sharedCtx.exchange().onKernalStart(active, false);
    } finally {
        cacheStartedLatch.countDown();
    }
    if (!ctx.clientNode())
        sharedCtx.time().addTimeoutObject(new PartitionDefferedDeleteQueueCleanupTask(sharedCtx, Long.getLong(IGNITE_CACHE_REMOVED_ENTRIES_TTL, DFLT_CACHE_REMOVE_ENTRIES_TTL)));
    // Notify shared managers.
    for (GridCacheSharedManager mgr : sharedCtx.managers()) mgr.onKernalStart(active);
    // Escape if cluster inactive.
    if (!active)
        return;
    awaitRebalance(joinVer).get();
}
Also used : PartitionDefferedDeleteQueueCleanupTask(org.apache.ignite.internal.processors.cache.distributed.dht.topology.PartitionDefferedDeleteQueueCleanupTask) AffinityTopologyVersion(org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion)

Aggregations

AffinityTopologyVersion (org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion)1 PartitionDefferedDeleteQueueCleanupTask (org.apache.ignite.internal.processors.cache.distributed.dht.topology.PartitionDefferedDeleteQueueCleanupTask)1