소스 검색

HPCC-11341 - Add tracing for block splitters

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 11 년 전
부모
커밋
5bc99b0f5f
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;