@@ -308,6 +308,15 @@ Loop:
308308 delete (currentQueries , result .job .index )
309309 batch := currentBatches [batchNum ]
310310
311+ log .Debugf ("Job(%v) received a result=%v, " +
312+ "batchNum=%v, batch=%v, pendingQueries=%v, " +
313+ "pendingBatches=%v" , result .job , result ,
314+ batchNum , batch , len (currentQueries ),
315+ len (currentBatches ))
316+
317+ log .Debugf ("Batch info: %v,%v,%v" , batch .maxRetries ,
318+ batch .timeout , batch .noRetryMax )
319+
311320 switch {
312321 // If the query ended because it was canceled, drop it.
313322 case result .err == ErrJobCanceled :
@@ -434,6 +443,12 @@ Loop:
434443 log .Debugf ("Adding new batch(%d) of %d queries to " +
435444 "work queue" , batchIndex , len (batch .requests ))
436445
446+ log .Debugf ("Current queries to manage %d: %v" ,
447+ len (currentQueries ), currentQueries )
448+
449+ log .Debugf ("Current batches to manage %d: %v" ,
450+ len (currentBatches ), currentBatches )
451+
437452 for _ , q := range batch .requests {
438453 heap .Push (work , & queryJob {
439454 index : queryIndex ,
0 commit comments