Author: bobby Date: Fri Nov 16 17:33:56 2012 New Revision: 1410504 URL: http://svn.apache.org/viewvc?rev=1410504&view=rev Log: svn merge -c 1410498 FIXES: MAPREDUCE-4802. Takes a long time to load the task list on the AM for large jobs (Ravi Prakash via bobby)
Modified: hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/yarn.dt.plugins.js Modified: hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/yarn.dt.plugins.js URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/yarn.dt.plugins.js?rev=1410504&r1=1410503&r2=1410504&view=diff ============================================================================== --- hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/yarn.dt.plugins.js (original) +++ hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/yarn.dt.plugins.js Fri Nov 16 17:33:56 2012 @@ -58,10 +58,14 @@ jQuery.fn.dataTableExt.oApi.fnSetFilteri function renderHadoopDate(data, type, full) { if (type === 'display') { + if(data === '0') { + return "N/A"; + } return new Date(parseInt(data)).toUTCString(); } // 'filter', 'sort', 'type' and undefined all just use the number - return data; + // If date is 0, then for purposes of sorting it should be consider max_int + return data === '0' ? '9007199254740992' : data; } function renderHadoopElapsedTime(data, type, full) {