瀏覽代碼

[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 () {