HBASE-12637 Compilation with Hadoop-2.4- is broken

This commit is contained in:
Enis Soztutar 2014-12-04 18:14:59 -08:00
parent b4299ef845
commit 1615a4da62
1 changed files with 10 additions and 3 deletions

View File

@ -48,7 +48,6 @@ import org.apache.hadoop.hbase.master.RegionPlan;
import org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer.Cluster;
import org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer.Cluster.MoveRegionAction;
import org.apache.hadoop.net.DNSToSwitchMapping;
import org.apache.hadoop.net.ScriptBasedMapping;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@ -74,12 +73,12 @@ public class TestBaseLoadBalancer extends BalancerTestBase {
new int[] { 2, 10 }, new int[] { 2, 100 }, new int[] { 12, 10 }, new int[] { 12, 100 }, };
// This class is introduced because IP to rack resolution can be lengthy.
public static class MockMapping extends ScriptBasedMapping {
public static class MockMapping implements DNSToSwitchMapping {
public MockMapping(Configuration conf) {
}
private static String RACK = "rack";
@Override
public List<String> resolve(List<String> names) {
List<String> ret = new ArrayList<String>(names.size());
for (String name : names) {
@ -87,6 +86,14 @@ public class TestBaseLoadBalancer extends BalancerTestBase {
}
return ret;
}
// do not add @Override annotations here. It mighty break compilation with earlier Hadoops
public void reloadCachedMappings() {
}
// do not add @Override annotations here. It mighty break compilation with earlier Hadoops
public void reloadCachedMappings(List<String> arg0) {
}
}
@BeforeClass