hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077606 - /hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
Date Fri, 04 Mar 2011 04:35:20 GMT
Author: omalley
Date: Fri Mar  4 04:35:20 2011
New Revision: 1077606

URL: http://svn.apache.org/viewvc?rev=1077606&view=rev
Log:
commit 40d3d6aab4afb7219fb461815499741036c515ba
Author: Luke Lu <llu@yahoo-inc.com>
Date:   Tue Jul 27 17:19:42 2010 -0700

     Fix metrics system init contract to handle previous errors.

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java?rev=1077606&r1=1077605&r2=1077606&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
Fri Mar  4 04:35:20 2011
@@ -129,7 +129,6 @@ public class MetricsSystemImpl implement
       LOG.warn(this.prefix +" metrics system already initialized!");
       return;
     }
-    Contracts.checkState(this.prefix == null, "prefix should be null so far.");
     this.prefix = Contracts.checkNotNull(prefix, "prefix");
     try { start(); }
     catch (MetricsConfigException e) {



Mime
View raw message