Skip to content

Commit 04a8772

Browse files
author
huiruan
committed
disable info server when run unit tests
1 parent 52ca44d commit 04a8772

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestSnapshotProcedure.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ public void setup() throws Exception {
9797
config.setBoolean("hbase.snapshot.zk.coordinated", false);
9898
// using SnapshotVerifyProcedure to verify snapshot
9999
config.setInt("hbase.snapshot.remote.verify.threshold", 1);
100-
config.setInt(HConstants.MASTER_INFO_PORT, 8080);
100+
// disable info server. Info server is useful when we run unit tests locally, but it will
101+
// fails integration testing of jenkins.
102+
// config.setInt(HConstants.MASTER_INFO_PORT, 8080);
103+
101104
// delay dispatch so that we can do something, for example kill a target server
102105
config.setInt(RemoteProcedureDispatcher.DISPATCH_DELAY_CONF_KEY, 10000);
103106
config.setInt(RemoteProcedureDispatcher.DISPATCH_MAX_QUEUE_SIZE_CONF_KEY, 128);

hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestSnapshotRegionProcedure.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ public class TestSnapshotRegionProcedure {
7474
public void setup() throws Exception {
7575
TEST_UTIL = new HBaseTestingUtil();
7676
Configuration conf = TEST_UTIL.getConfiguration();
77-
conf.setInt(HConstants.MASTER_INFO_PORT, 8080);
77+
// disable info server. Info server is useful when we run unit tests locally, but it will
78+
// fails integration testing of jenkins.
79+
// conf.setInt(HConstants.MASTER_INFO_PORT, 8080);
80+
7881
// delay dispatch so that we can do something, for example kill a target server
7982
conf.setInt(RemoteProcedureDispatcher.DISPATCH_DELAY_CONF_KEY, 10000);
8083
conf.setInt(RemoteProcedureDispatcher.DISPATCH_MAX_QUEUE_SIZE_CONF_KEY, 128);

hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestSnapshotVerifyProcedure.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ public class TestSnapshotVerifyProcedure {
7373
public void setup() throws Exception {
7474
TEST_UTIL = new HBaseTestingUtil();
7575
Configuration conf = TEST_UTIL.getConfiguration();
76-
conf.setInt(HConstants.MASTER_INFO_PORT, 8080);
76+
// disable info server. Info server is useful when we run unit tests locally, but it will
77+
// fails integration testing of jenkins.
78+
// conf.setInt(HConstants.MASTER_INFO_PORT, 8080);
79+
7780
// delay dispatch so that we can do something, for example kill a target server
7881
conf.setInt(RemoteProcedureDispatcher.DISPATCH_DELAY_CONF_KEY, 20000);
7982
conf.setInt(RemoteProcedureDispatcher.DISPATCH_MAX_QUEUE_SIZE_CONF_KEY, 128);

0 commit comments

Comments
 (0)