Skip to contentSkip to conversation

ts-hosts-allocate-Executive: improve debugging slightly

PATCH In review Ian Jackson 2 participants 2 messages Apr 23, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-hosts-allocate-Executive: improve debugging slightly

I spotted a logfile where an allocation had failed (later worked OK) with $allocatable=0 here. Provide more info next time.

---
 ts-hosts-allocate-Executive |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ts-hosts-allocate-Executive +2 -1
index 707c6a7..0e9c193 100755
@@ -644,7 +644,8 @@ sub actual_allocation ($) {
 
     my $allocatable= $cand->{owntaskid} == $magictaskid{allocatable};
     my $dbg= "$hid->{Ident} $sel->{Reso}";
-    printf DEBUG "%s ALLOC PLAIN %d\n", $dbg, $allocatable;
+    printf DEBUG "%s ALLOC PLAIN %d (%d, %d)\n", $dbg, $allocatable,
+        $cand->{owntaskid}, $magictaskid{allocatable};
 
     my $shared;
     my $shrestype= 'share-'.$sel->{restype};
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 lines · Ian Jackson

I spotted a logfile where an allocation had failed (later worked OK) with $allocatable=0 here. Provide more info next time.

FWIW Acked-by: Ian Campbell <[email protected]>

Quoted 18 lines
---
 ts-hosts-allocate-Executive |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ts-hosts-allocate-Executive +2 -1
index 707c6a7..0e9c193 100755
@@ -644,7 +644,8 @@ sub actual_allocation ($) {
 
     my $allocatable= $cand->{owntaskid} == $magictaskid{allocatable};
     my $dbg= "$hid->{Ident} $sel->{Reso}";
-    printf DEBUG "%s ALLOC PLAIN %d\n", $dbg, $allocatable;
+    printf DEBUG "%s ALLOC PLAIN %d (%d, %d)\n", $dbg, $allocatable,
+        $cand->{owntaskid}, $magictaskid{allocatable};
 
     my $shared;
     my $shrestype= 'share-'.$sel->{restype};