[Swift-commit] r7921 - branches/release-0.95/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Jun 13 21:54:53 CDT 2014


Author: hategan
Date: 2014-06-13 21:54:53 -0500 (Fri, 13 Jun 2014)
New Revision: 7921

Modified:
   branches/release-0.95/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java
Log:
fixed npe when app not in tc.data and some apps are in running state

Modified: branches/release-0.95/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java
===================================================================
--- branches/release-0.95/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java	2014-06-13 20:28:34 UTC (rev 7920)
+++ branches/release-0.95/src/org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java	2014-06-14 02:54:53 UTC (rev 7921)
@@ -41,6 +41,7 @@
 import org.globus.cog.abstraction.interfaces.StatusListener;
 import org.globus.cog.abstraction.interfaces.Task;
 import org.globus.cog.karajan.scheduler.AbstractScheduler;
+import org.globus.cog.karajan.scheduler.ContactAllocationTask;
 import org.globus.cog.karajan.scheduler.ResourceConstraintChecker;
 import org.globus.cog.karajan.scheduler.TaskConstraints;
 import org.globus.cog.karajan.scheduler.WeightedHostScoreScheduler;
@@ -396,8 +397,10 @@
 		}
 		Task t = e.task;
 		List<Entry> cluster = null;
-		synchronized (tasks) {
-			cluster = tasks.get(t);
+		if (!(t instanceof ContactAllocationTask)) {
+    		synchronized (tasks) {
+    			cluster = tasks.get(t);
+    		}
 		}
 		if (cluster != null) {
 		    for (Entry e1 : cluster) {




More information about the Swift-commit mailing list