@Override public void applyx() { CNT.incrementAndGet(); throw new ComputeExecutionRejectedException("Expected error."); } };
workers.remove(w); throw new ComputeExecutionRejectedException("Failed to execute worker due to execution rejection.", e);
@Override public Object execute() { CNT.incrementAndGet(); if (fail) throw new ComputeExecutionRejectedException("Expected error."); return ses.getTaskName(); } });
/** {@inheritDoc} */ @SuppressWarnings("NakedNotify") @Override public Serializable execute() { assert ignite != null; UUID nodeId = ignite.configuration().getNodeId(); assert nodeId != null; if (!nodeId.equals(argument(0))) { try { synchronized(mux) { mux.notifyAll(); } Thread.sleep(Integer.MAX_VALUE); } catch (InterruptedException e) { throw new ComputeExecutionRejectedException("Expected interruption during execution.", e); } } else return "success"; throw new ComputeExecutionRejectedException("Expected exception during execution."); } }, remoteNode);
/** * @param job Rejected job. * @param sndReply {@code True} to send reply. */ private void rejectJob(GridJobWorker job, boolean sndReply) { IgniteException e = new ComputeExecutionRejectedException("Job was cancelled before execution [taskSesId=" + job.getSession().getId() + ", jobId=" + job.getJobId() + ", job=" + job.getJob() + ']'); job.finishJob(null, e, sndReply); }
IgniteException e2 = new ComputeExecutionRejectedException("Job has been rejected " + "[jobSes=" + jobWorker.getSession() + ", job=" + jobWorker.getJob() + ']', e);
/** */ @Test public void testFailoverTask() { isFailoverCalled1 = false; Ignite ignite = G.ignite(getTestIgniteInstanceName()); ignite.compute().localDeployTask(GridTestFailoverTask.class, GridTestFailoverTask.class.getClassLoader()); try { ignite.compute().execute(GridTestFailoverTask.class.getName(), new ComputeExecutionRejectedException("Task should be failed over")); assert false; } catch (IgniteException e) { //No-op } assert isFailoverCalled1; }
msg = "Job got interrupted due to system stop (will attempt failover)."; ex = new ComputeExecutionRejectedException(e);
@Override public Object execute() { X.println("Executing FailoverTestTask job on node " + ignite.configuration().getNodeId()); Boolean cpVal = ses.loadCheckpoint(CP_KEY); assert cpVal != null; if (cpVal) { ses.saveCheckpoint(CP_KEY, false); throw new ComputeExecutionRejectedException("Failing over the job."); } return null; } },
handleException(new ComputeExecutionRejectedException("Failed to execute task " + "due to thread pool execution rejection: " + taskName, e), fut);
IgniteException e2 = new ComputeExecutionRejectedException( "Job was cancelled before execution [jobSes=" + jobWorker. getSession() + ", job=" + jobWorker.getJob() + ']');
case "ClusterGroupEmptyException": throw new ClusterGroupEmptyException(arg); case "ClusterTopologyException": throw new ClusterTopologyException(arg); case "ComputeExecutionRejectedException": throw new ComputeExecutionRejectedException(arg); case "ComputeJobFailoverException": throw new ComputeJobFailoverException(arg); case "ComputeTaskCancelledException": throw new ComputeTaskCancelledException(arg);
workers.remove(w); throw new ComputeExecutionRejectedException("Failed to execute worker due to execution rejection.", e);
/** * @param job Rejected job. * @param sndReply {@code True} to send reply. */ private void rejectJob(GridJobWorker job, boolean sndReply) { IgniteException e = new ComputeExecutionRejectedException("Job was cancelled before execution [taskSesId=" + job.getSession().getId() + ", jobId=" + job.getJobId() + ", job=" + job.getJob() + ']'); job.finishJob(null, e, sndReply); }
IgniteException e2 = new ComputeExecutionRejectedException("Job has been rejected " + "[jobSes=" + jobWorker.getSession() + ", job=" + jobWorker.getJob() + ']', e);
msg = "Job got interrupted due to system stop (will attempt failover)."; ex = new ComputeExecutionRejectedException(e);
handleException(new ComputeExecutionRejectedException("Failed to execute task " + "due to thread pool execution rejection: " + taskName, e), fut);
IgniteException e2 = new ComputeExecutionRejectedException( "Job was cancelled before execution [jobSes=" + jobWorker. getSession() + ", job=" + jobWorker.getJob() + ']');