HBASE-19391 Calling HRegion#initializeRegionInternals from a region replica can still re-create a region directory; ADDEDNDUM to fix TestRegionOpen failure

This commit is contained in:
Michael Stack 2018-02-22 09:14:35 -08:00
parent af1f7cf431
commit cadc2efd12

View File

@ -47,6 +47,7 @@ import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.util.FSUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@ -97,7 +98,8 @@ public class TestRegionOpen {
assertEquals(2, exec.getCompletedTaskCount());
}
@Test(timeout = 60000)
@Ignore // Needs rewrite since HBASE-19391 which returns null out of createRegionOnFileSystem
@Test
public void testNonExistentRegionReplica() throws Exception {
final TableName tableName = TableName.valueOf(name.getMethodName());
final byte[] FAMILYNAME = Bytes.toBytes("fam");