commit | 41317b2135bd437cdee1ad2e3f62c4a910d5697d | [log] [tgz] |
---|---|---|
author | Madhusudan.C.S <madhusudancs@gmail.com> | Sat Apr 20 03:05:25 2013 -0700 |
committer | Madhusudan.C.S <madhusudancs@gmail.com> | Sat Apr 20 03:05:28 2013 -0700 |
tree | 2436203e6eaab3a1945bca0e919333ecbdbd2f3d | |
parent | 68cbd7f860feb77f4be8ae309e89b4f798ef1e0b [diff] |
When the job state does not exist in the Map, i.e. when it has been cleaned up no status reporting needs to be done, so guard the null value.
diff --git a/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java b/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java index e648733..f68562f 100644 --- a/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java +++ b/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java
@@ -112,14 +112,18 @@ @Override public synchronized void reportResultPartitionFailure(JobId jobId, ResultSetId rsId, int partition) { DatasetJobRecord djr = jobResultLocations.get(jobId); - djr.fail(); + if (djr != null) { + djr.fail(); + } notifyAll(); } @Override public synchronized void reportJobFailure(JobId jobId) { DatasetJobRecord djr = jobResultLocations.get(jobId); - djr.fail(); + if (djr != null) { + djr.fail(); + } notifyAll(); }