Skip to content
Open
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 @@ -50,6 +50,7 @@
import org.apache.ignite.resources.LoggerResource;
import org.jetbrains.annotations.Nullable;

import static org.apache.ignite.cluster.ClusterState.INACTIVE;
import static org.apache.ignite.internal.util.lang.ClusterNodeFunc.nodeIds;

/**
Expand All @@ -71,6 +72,10 @@ public class CdcCacheDataResendTask extends VisorMultiNodeTask<CdcResendCommandA

/** {@inheritDoc} */
@Override protected Collection<UUID> jobNodes(VisorTaskArgument<CdcResendCommandArg> arg) {
// Check if cluster is inactive.
if (ignite.cluster().state() == INACTIVE)
throw new IgniteException("CDC cache data resend cancelled. Cluster is inactive.");

// Check there is no rebalance.
GridDhtPartitionsExchangeFuture fut = ignite.context().cache().context().exchange().lastFinishedFuture();

Expand Down