[Swift-commit] cog r3574

swift at ci.uchicago.edu swift at ci.uchicago.edu
Wed Jan 30 16:50:06 CST 2013


------------------------------------------------------------------------
r3574 | hategan | 2013-01-30 16:48:56 -0600 (Wed, 30 Jan 2013) | 1 line

added some debugging info for bug 945
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/BlockQueueProcessor.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/BlockQueueProcessor.java	(revision 3573)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/BlockQueueProcessor.java	(working copy)
@@ -583,10 +583,11 @@
                     h = Math.min(h + lastwalltime, maxt);
                 }
 
-
                 // create the actual block
                 Block b = new Block(width, TimeInterval.fromSeconds(h), this);
-                
+                if (logger.isInfoEnabled()) {
+                    logger.info("index: " + index + ", last: " + last + ", holding.size(): " + holding.size());
+                }
                 // now add jobs from holding until the size of the jobs exceeds the
                 // size of the block (as given by the metric)
                 int ii = last;
@@ -597,10 +598,15 @@
                     added++;
                     ii++;
                 }
+                // lastI  <-> ii
+                // indexI <-> index + 1
+                // if ii == index + 1 <=> ii - index - 1 == 0 then 
+                //     lastI and indexI point to the same element
                 
+                
                 if (logger.isInfoEnabled()) {
-                    logger.info("Queued: " + (ii-last) +
-                                " jobs to new Block");
+                    logger.info("Queued: " + (ii-last) + " jobs to new Block");
+                    logger.info("index: " + index + ", last: " + last + ", ii: " + ii + ", holding.size(): " + holding.size());
                 }
                 // update index of last added job
                 // skip ii - index - 1 jobs since the iterator and "index" are off by one



More information about the Swift-commit mailing list