Browse Source

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.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077606 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 years ago
parent
commit
a6cec965e8
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java

+ 0 - 1
src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java

@@ -129,7 +129,6 @@ public class MetricsSystemImpl implements MetricsSystem {
       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) {