Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 82852 invoked from network); 3 Jun 2010 19:19:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 19:19:22 -0000 Received: (qmail 26867 invoked by uid 500); 3 Jun 2010 19:19:22 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 26830 invoked by uid 500); 3 Jun 2010 19:19:22 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 26822 invoked by uid 99); 3 Jun 2010 19:19:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 19:19:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 19:19:19 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o53JIwJM003382 for ; Thu, 3 Jun 2010 19:18:58 GMT Message-ID: <19268101.165621275592738453.JavaMail.jira@thor> Date: Thu, 3 Jun 2010 15:18:58 -0400 (EDT) From: "Hadoop QA (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6788) [Herriot] Exception exclusion functionality is not working correctly. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875257#action_12875257 ] Hadoop QA commented on HADOOP-6788: ----------------------------------- +1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12446103/HADOOP-6788.patch against trunk revision 951081. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/559/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/559/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/559/artifact/trunk/build/test/checkstyle-errors.html Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/559/console This message is automatically generated. > [Herriot] Exception exclusion functionality is not working correctly. > --------------------------------------------------------------------- > > Key: HADOOP-6788 > URL: https://issues.apache.org/jira/browse/HADOOP-6788 > Project: Hadoop Common > Issue Type: Bug > Components: test > Affects Versions: 0.21.0 > Reporter: Vinay Kumar Thota > Assignee: Balaji Rajagopalan > Attachments: 6788-ydist-security.patch, 6788-ydist-security.patch, HADOOP-6788.patch, HADOOP-6788.patch > > > Exception exclusion functionality is not working correctly because of that tests are failing by not matching the error count. > I debugged the issue and found that the problem with shell command which is generating in the getNumberOfMatchesInLogFile function. > Currently building the shell command in the following way. > if(list != null){ > for(int i =0; i < list.length; ++i) > { > filePattern.append(" | grep -v " + list[i] ); > } > } > String[] cmd = > new String[] { > "bash", > "-c", > "grep -c " > + pattern + " " + filePattern > + " | awk -F: '{s+=$2} END {print s}'" }; > However, The above commnad won't work correctly because you are counting the exceptions in the file before excluding the known exceptions. > In this case it gives the mismatch error counts everytime.The shell command should be in the following way to work correctly. > if (list != null) { > int index = 0; > for (String excludeExp : list) { > filePattern.append((++index < list.length)? "| grep -v " : > "| grep -vc " + list[i] ); > } > } > String[] cmd = > new String[] { > "bash", > "-c", > "grep " > + pattern + " " + filePattern > + " | awk -F: '{s+=$2} END {print s}'" }; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.