소스 검색

[pig] Logs can be missing with Yarn

So one of the pig problem is that because yarn logs disappear before re-appearing in History Server after a few s and we poll every 1s

Bumping the refresh time to 0.5 instead of 1s seems to solve the problem until Yarn improves or we put a smarter solution.

I tried to keep pooling until 10s in order to get the last part of the logs from the HS but then it bugs if the user runs the script in the meantime!
    $(document).on("stopLogsRefresh", function () {
      window.setTimeout(function () {
        window.clearInterval(logsRefreshInterval);
        $.jHueTitleUpdater.reset();
      }, 10000);
    });
Romain Rigaux 11 년 전
부모
커밋
739dff7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/pig/src/pig/templates/app.mako

+ 1 - 1
apps/pig/src/pig/templates/app.mako

@@ -1113,7 +1113,7 @@ ${ commonheader(None, "pig", user) | n,unicode }
       refreshLogs();
       logsRefreshInterval = window.setInterval(function () {
         refreshLogs();
-      }, 1000);
+      }, 500);
     });
 
     $(document).on("stopLogsRefresh", function () {