Bladeren bron

Merge pull request #5808 from jakesmith/hpcc-11341

HPCC-11341 - Add tracing for block splitters

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 jaren geleden
bovenliggende
commit
731e7dba7b
1 gewijzigde bestanden met toevoegingen van 7 en 1 verwijderingen
  1. 7 1
      thorlcr/thorutil/thbuf.cpp

+ 7 - 1
thorlcr/thorutil/thbuf.cpp

@@ -832,7 +832,13 @@ protected:
                 const rowcount_t &rowsWritten = parent.readerWait(rowsRead);
                 const rowcount_t &rowsWritten = parent.readerWait(rowsRead);
                 {
                 {
                     CriticalUnblock b(parent.crit);
                     CriticalUnblock b(parent.crit);
-                    readWaitSem.wait();
+                    unsigned mins=0;
+                    loop
+                    {
+                        if (readWaitSem.wait(60000))
+                            break; // NB: will also be signal if aborting
+                        ActPrintLog(parent.activity, "output %d @ row # %"RCPF"d, has been blocked for %d minute(s)", output, rowsRead, ++mins);
+                    }
                 }
                 }
                 if (parent.isEof(rowsRead))
                 if (parent.isEof(rowsRead))
                     return 0;
                     return 0;