Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8CB8CFAA for ; Mon, 7 May 2012 18:58:41 +0000 (UTC) Received: (qmail 39145 invoked by uid 500); 7 May 2012 18:58:41 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 39089 invoked by uid 500); 7 May 2012 18:58:41 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 39078 invoked by uid 99); 7 May 2012 18:58:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 18:58:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 18:58:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6E8142388860 for ; Mon, 7 May 2012 18:58:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1335192 - in /hadoop/common/branches/branch-1.0: CHANGES.txt src/core/org/apache/hadoop/jmx/JMXJsonServlet.java src/docs/releasenotes.html Date: Mon, 07 May 2012 18:58:19 -0000 To: common-commits@hadoop.apache.org From: mattf@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120507185819.6E8142388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mattf Date: Mon May 7 18:58:18 2012 New Revision: 1335192 URL: http://svn.apache.org/viewvc?rev=1335192&view=rev Log: HADOOP-8027. Visiting /jmx on the daemon web interfaces may print unnecessary error in logs. Contributed by Aaron T. Myers. Ported to hadoop-1 by Hitesh Shah. Modified: hadoop/common/branches/branch-1.0/CHANGES.txt hadoop/common/branches/branch-1.0/src/core/org/apache/hadoop/jmx/JMXJsonServlet.java hadoop/common/branches/branch-1.0/src/docs/releasenotes.html Modified: hadoop/common/branches/branch-1.0/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1.0/CHANGES.txt?rev=1335192&r1=1335191&r2=1335192&view=diff ============================================================================== --- hadoop/common/branches/branch-1.0/CHANGES.txt (original) +++ hadoop/common/branches/branch-1.0/CHANGES.txt Mon May 7 18:58:18 2012 @@ -92,6 +92,9 @@ Release 1.0.3 - 2012.05.07 MAPREDUCE-4012. Hadoop Job setup error leaves no useful info to users (when LinuxTaskController is used) (tgraves) + HADOOP-8027. Visiting /jmx on the daemon web interfaces may print unnecessary + error in logs (Aaron Myers and Hitesh Shah) + Release 1.0.2 - 2012.03.24 NEW FEATURES Modified: hadoop/common/branches/branch-1.0/src/core/org/apache/hadoop/jmx/JMXJsonServlet.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1.0/src/core/org/apache/hadoop/jmx/JMXJsonServlet.java?rev=1335192&r1=1335191&r2=1335192&view=diff ============================================================================== --- hadoop/common/branches/branch-1.0/src/core/org/apache/hadoop/jmx/JMXJsonServlet.java (original) +++ hadoop/common/branches/branch-1.0/src/core/org/apache/hadoop/jmx/JMXJsonServlet.java Mon May 7 18:58:18 2012 @@ -34,6 +34,7 @@ import javax.management.MBeanServer; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import javax.management.ReflectionException; +import javax.management.RuntimeMBeanException; import javax.management.openmbean.CompositeData; import javax.management.openmbean.CompositeType; import javax.management.openmbean.TabularData; @@ -249,6 +250,15 @@ public class JMXJsonServlet extends Http Object value = null; try { value = mBeanServer.getAttribute(oname, attName); + } catch (RuntimeMBeanException e) { + // UnsupportedOperationExceptions happen in the normal course of business, + // so no need to log them as errors all the time. + if (e.getCause() instanceof UnsupportedOperationException) { + LOG.debug("getting attribute "+attName+" of "+oname+" threw an exception", e); + } else { + LOG.error("getting attribute "+attName+" of "+oname+" threw an exception", e); + } + return; } catch (AttributeNotFoundException e) { //Ignored the attribute was not found, which should never happen because the bean //just told us that it has this attribute, but if this happens just don't output Modified: hadoop/common/branches/branch-1.0/src/docs/releasenotes.html URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1.0/src/docs/releasenotes.html?rev=1335192&r1=1335191&r2=1335192&view=diff ============================================================================== --- hadoop/common/branches/branch-1.0/src/docs/releasenotes.html (original) +++ hadoop/common/branches/branch-1.0/src/docs/releasenotes.html Mon May 7 18:58:18 2012 @@ -62,6 +62,11 @@ FindBugs OutOfMemoryError
When running the findbugs target from Jenkins, I get an OutOfMemory error.
The "effort" in FindBugs is set to Max which ends up using a lot of memory to go through all the classes. The jvmargs passed to FindBugs is hardcoded to 512 MB max.

We can leave the default to 512M, as long as we pass this as an ant parameter which can be overwritten in individual cases through -D, or in the build.properties file (either basedir, or user's home directory).
+
  • HADOOP-8027. + Minor improvement reported by qwertymaniac and fixed by atm (metrics)
    + Visiting /jmx on the daemon web interfaces may print unnecessary error in logs
    +
    Logs that follow a {{/jmx}} servlet visit:

    {code}
    11/11/22 12:09:52 ERROR jmx.JMXJsonServlet: getting attribute UsageThreshold of java.lang:type=MemoryPool,name=Par Eden Space threw an exception
    javax.management.RuntimeMBeanException: java.lang.UnsupportedOperationException: Usage threshold is not supported
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:856)
    ...
    {code}
  • +
  • HADOOP-8151. Major bug reported by tlipcon and fixed by mattf (io, native)
    Error handling in snappy decompressor throws invalid exceptions