ソースを参照

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 年 前
コミット
731e7dba7b
1 ファイル変更7 行追加1 行削除
  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);
                 {
                     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))
                     return 0;