Skip to content

Commit

Permalink
[ignite-332]: improved error checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
iveselovskiy committed Feb 24, 2015
1 parent 45ce814 commit dc085d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -104,7 +104,9 @@ public class GridHadoopClientProtocol implements ClientProtocol {
GridHadoopJobStatus status = cli.compute().execute(GridHadoopProtocolSubmitJobTask.class.getName(), GridHadoopJobStatus status = cli.compute().execute(GridHadoopProtocolSubmitJobTask.class.getName(),
new GridHadoopProtocolTaskArguments(jobId.getJtIdentifier(), jobId.getId(), createJobInfo(conf))); new GridHadoopProtocolTaskArguments(jobId.getJtIdentifier(), jobId.getId(), createJobInfo(conf)));


assert status != null; if (status == null) {
throw new IOException("Null status obtained on attempt to submit Hadoop job " + jobId);
}


return processStatus(status); return processStatus(status);
} }
Expand Down
Expand Up @@ -101,8 +101,9 @@ public GridHadoopDefaultJobInfo(String jobName, String user, boolean hasCombiner


return (GridHadoopJob)constructor.newInstance(jobId, this, log); return (GridHadoopJob)constructor.newInstance(jobId, this, log);
} }
catch (Exception e) { // NB: java.lang.NoClassDefFoundError may be thrown from Class#getConstructor() call.
throw new IgniteCheckedException(e); catch (Throwable t) {
throw new IgniteCheckedException(t);
} }
} }


Expand Down

0 comments on commit dc085d8

Please sign in to comment.