HBASE-12153 Fixing TestReplicaWithCluster (Manukranth Kolloju)

This commit is contained in:
stack 2014-10-02 09:22:33 -07:00
parent 11e28eb76b
commit 2c8f6b66cf
1 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,8 @@ public class TestReplicaWithCluster {
admin.close(); admin.close();
} }
@Test (timeout=30000) @SuppressWarnings("deprecation")
@Test (timeout=120000)
public void testReplicaAndReplication() throws Exception { public void testReplicaAndReplication() throws Exception {
HTableDescriptor hdt = HTU.createTableDescriptor("testReplicaAndReplication"); HTableDescriptor hdt = HTU.createTableDescriptor("testReplicaAndReplication");
hdt.setRegionReplication(NB_SERVERS); hdt.setRegionReplication(NB_SERVERS);
@ -331,6 +332,7 @@ public class TestReplicaWithCluster {
// bulk load HFiles // bulk load HFiles
LOG.debug("Loading test data"); LOG.debug("Loading test data");
@SuppressWarnings("deprecation")
final HConnection conn = HTU.getHBaseAdmin().getConnection(); final HConnection conn = HTU.getHBaseAdmin().getConnection();
RegionServerCallable<Void> callable = new RegionServerCallable<Void>( RegionServerCallable<Void> callable = new RegionServerCallable<Void>(
conn, hdt.getTableName(), TestHRegionServerBulkLoad.rowkey(0)) { conn, hdt.getTableName(), TestHRegionServerBulkLoad.rowkey(0)) {