hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1001016 - in /hbase/trunk: CHANGES.txt src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java
Date Fri, 24 Sep 2010 18:34:42 GMT
Author: jdcryans
Date: Fri Sep 24 18:34:42 2010
New Revision: 1001016

URL: http://svn.apache.org/viewvc?rev=1001016&view=rev
Log:
HBASE-2992  [replication] MalformedObjectNameException in ReplicationMetrics

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1001016&r1=1001015&r2=1001016&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Fri Sep 24 18:34:42 2010
@@ -539,6 +539,7 @@ Release 0.21.0 - Unreleased
    HBASE-3002  Fix zookeepers.sh to work properly with strange JVM options
    HBASE-3028  No basescanner means no GC'ing of split, offlined parent regions
    HBASE-2989  [replication] RSM won't cleanup after locking if 0 peers
+   HBASE-2992  [replication] MalformedObjectNameException in ReplicationMetrics
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java?rev=1001016&r1=1001015&r2=1001016&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java
(original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java
Fri Sep 24 18:34:42 2010
@@ -18,6 +18,9 @@
  * limitations under the License.
  */
 package org.apache.hadoop.hbase.replication.regionserver;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+
 import org.apache.hadoop.hbase.metrics.MetricsRate;
 import org.apache.hadoop.metrics.MetricsContext;
 import org.apache.hadoop.metrics.MetricsRecord;
@@ -73,6 +76,11 @@ public class ReplicationSourceMetrics im
     metricsRecord = MetricsUtil.createRecord(context, "replication");
     metricsRecord.setTag("RegionServer", name);
     context.registerUpdater(this);
+    try {
+      id = URLEncoder.encode(id, "UTF8");
+    } catch (UnsupportedEncodingException e) {
+      id = "CAN'T ENCODE UTF8";
+    }
     // export for JMX
     new ReplicationStatistics(this.registry, "ReplicationSource for " + id);
   }



Mime
View raw message