ses.getJobId() + ", ses=" + ses + ']'; ex = new ComputeUserUndeclaredException(msg, e); ", ses=" + ses + ", err=" + e.getMessage() + ']'; ex = new ComputeUserUndeclaredException(msg, e);
/** * @param res Execution response. * @param jobRes Job result. * @param top Topology. * @return {@code True} if fail-over SPI returned a new node. */ private boolean failover( GridJobExecuteResponse res, GridJobResultImpl jobRes, Collection<? extends ClusterNode> top ) { assert Thread.holdsLock(mux); try { ctx.resource().invokeAnnotated(dep, jobRes.getJob(), ComputeJobBeforeFailover.class); ClusterNode node = ctx.failover().failover(ses, jobRes, new ArrayList<>(top), affPartId, affCacheName, mapTopVer); return checkTargetNode(res, jobRes, node); } // Catch Throwable to protect against bad user code. catch (Throwable e) { String errMsg = "Failed to failover job due to undeclared user exception [job=" + jobRes.getJob() + ", err=" + e + ']'; U.error(log, errMsg, e); finishTask(null, new ComputeUserUndeclaredException(errMsg, e)); if (e instanceof Error) throw (Error)e; return false; } }
userE = new ComputeUserUndeclaredException(errMsg ,e);
case "ComputeTaskCancelledException": throw new ComputeTaskCancelledException(arg); case "ComputeTaskTimeoutException": throw new ComputeTaskTimeoutException(arg); case "ComputeUserUndeclaredException": throw new ComputeUserUndeclaredException(arg); case "CacheException": throw new CacheException(arg); case "CacheLoaderException": throw new CacheLoaderException(arg);
finishTask(null, new ComputeUserUndeclaredException(errMsg, e));
Throwable tmp = new ComputeUserUndeclaredException(errMsg, e);
ses.getJobId() + ", ses=" + ses + ']'; ex = new ComputeUserUndeclaredException(msg, e); ", ses=" + ses + ", err=" + e.getMessage() + ']'; ex = new ComputeUserUndeclaredException(msg, e);
/** * @param res Execution response. * @param jobRes Job result. * @param top Topology. * @return {@code True} if fail-over SPI returned a new node. */ private boolean failover( GridJobExecuteResponse res, GridJobResultImpl jobRes, Collection<? extends ClusterNode> top ) { assert Thread.holdsLock(mux); try { ctx.resource().invokeAnnotated(dep, jobRes.getJob(), ComputeJobBeforeFailover.class); ClusterNode node = ctx.failover().failover(ses, jobRes, new ArrayList<>(top), affPartId, affCacheName, mapTopVer); return checkTargetNode(res, jobRes, node); } // Catch Throwable to protect against bad user code. catch (Throwable e) { String errMsg = "Failed to failover job due to undeclared user exception [job=" + jobRes.getJob() + ", err=" + e + ']'; U.error(log, errMsg, e); finishTask(null, new ComputeUserUndeclaredException(errMsg, e)); if (e instanceof Error) throw (Error)e; return false; } }
userE = new ComputeUserUndeclaredException(errMsg ,e);
finishTask(null, new ComputeUserUndeclaredException(errMsg, e));
Throwable tmp = new ComputeUserUndeclaredException(errMsg, e);