/** * Creates appropriate empty projection exception. * * @return Empty projection exception. */ public static ClusterGroupEmptyCheckedException emptyTopologyException() { return new ClusterGroupEmptyCheckedException("Cluster group is empty."); }
chain = exec != null ? fut.chain(passThrough, exec) : fut.chain(passThrough); fut.onDone(new ClusterGroupEmptyCheckedException("test exception")); info("Expected exception: " + e.getMessage());
ClusterGroupEmptyCheckedException ex = X.cause(e, ClusterGroupEmptyCheckedException.class); retryFut = ex.retryReadyFuture();
ClusterGroupEmptyCheckedException ex = X.cause(e, ClusterGroupEmptyCheckedException.class); retryFut = ex.retryReadyFuture();
/** * @return Topology for this task. * @throws IgniteCheckedException Thrown in case of any error. */ private List<ClusterNode> getTaskTopology() throws IgniteCheckedException { Collection<UUID> top = ses.getTopology(); Collection<? extends ClusterNode> subgrid = top != null ? ctx.discovery().nodes(top) : ctx.discovery().allNodes(); int size = subgrid.size(); if (size == 0) throw new ClusterGroupEmptyCheckedException("Topology projection is empty."); List<ClusterNode> shuffledNodes = new ArrayList<>(size); for (ClusterNode node : subgrid) shuffledNodes.add(node); if (shuffledNodes.size() > 1) // Shuffle nodes prior to giving them to user. Collections.shuffle(shuffledNodes); // Load balancer. return shuffledNodes; }
onDone(new ClusterGroupEmptyCheckedException("Failed to get cache affinity, all cache nodes failed: " + cacheName));
return new GridCacheQueryErrorFuture<>(cctx.kernalContext(), new ClusterGroupEmptyCheckedException());
/** * Creates appropriate empty projection exception. * * @return Empty projection exception. */ public static ClusterGroupEmptyCheckedException emptyTopologyException() { return new ClusterGroupEmptyCheckedException("Cluster group is empty."); }
/** * @return Topology for this task. * @throws IgniteCheckedException Thrown in case of any error. */ private List<ClusterNode> getTaskTopology() throws IgniteCheckedException { Collection<UUID> top = ses.getTopology(); Collection<? extends ClusterNode> subgrid = top != null ? ctx.discovery().nodes(top) : ctx.discovery().allNodes(); int size = subgrid.size(); if (size == 0) throw new ClusterGroupEmptyCheckedException("Topology projection is empty."); List<ClusterNode> shuffledNodes = new ArrayList<>(size); for (ClusterNode node : subgrid) shuffledNodes.add(node); if (shuffledNodes.size() > 1) // Shuffle nodes prior to giving them to user. Collections.shuffle(shuffledNodes); // Load balancer. return shuffledNodes; }
return new GridCacheQueryErrorFuture<>(cctx.kernalContext(), new ClusterGroupEmptyCheckedException());