HBASE-3794 TestRpcMetrics fails on machine where region server is running

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1096968 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-04-26 23:53:48 +00:00
parent 2769a5ffc8
commit 6e9210165f
2 changed files with 4 additions and 1 deletions

View File

@ -248,6 +248,8 @@ Release 0.90.3 - Unreleased
HBASE-3634 Fix JavaDoc for put(List<Put> puts) in HTableInterface HBASE-3634 Fix JavaDoc for put(List<Put> puts) in HTableInterface
(Harsh J Chouraria) (Harsh J Chouraria)
HBASE-3749 Master can't exit when open port failed (gaojinchao) HBASE-3749 Master can't exit when open port failed (gaojinchao)
HBASE-3794 TestRpcMetrics fails on machine where region server is running
(Alex Newman)
IMPROVEMENTS IMPROVEMENTS
HBASE-3747 ReplicationSource should differanciate remote and local exceptions HBASE-3747 ReplicationSource should differanciate remote and local exceptions

View File

@ -23,6 +23,7 @@ package org.apache.hadoop.hbase.regionserver;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Random;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -115,7 +116,7 @@ public class TestRpcMetrics {
@Test @Test
public void testCustomMetrics() throws Exception { public void testCustomMetrics() throws Exception {
TEST_UTIL.getConfiguration().setInt("hbase.regionserver.port", 0);
TestRegionServer rs = new TestRegionServer(TEST_UTIL.getConfiguration()); TestRegionServer rs = new TestRegionServer(TEST_UTIL.getConfiguration());
rs.incTest(5); rs.incTest(5);