HBASE-20052 TestRegionOpen#testNonExistentRegionReplica fails due to NPE
This commit is contained in:
parent
cadc2efd12
commit
4d9589b165
|
@ -997,12 +997,11 @@ public class HRegionFileSystem {
|
||||||
|
|
||||||
// Write HRI to a file in case we need to recover hbase:meta
|
// Write HRI to a file in case we need to recover hbase:meta
|
||||||
regionFs.writeRegionInfoOnFilesystem(false);
|
regionFs.writeRegionInfoOnFilesystem(false);
|
||||||
return regionFs;
|
|
||||||
} else {
|
} else {
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Skipping creation of .regioninfo file for " + regionInfo);
|
LOG.debug("Skipping creation of .regioninfo file for " + regionInfo);
|
||||||
}
|
}
|
||||||
return null;
|
return regionFs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -47,7 +47,6 @@ import org.apache.hadoop.hbase.util.Bytes;
|
||||||
import org.apache.hadoop.hbase.util.FSUtils;
|
import org.apache.hadoop.hbase.util.FSUtils;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
|
@ -98,7 +97,6 @@ public class TestRegionOpen {
|
||||||
assertEquals(2, exec.getCompletedTaskCount());
|
assertEquals(2, exec.getCompletedTaskCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore // Needs rewrite since HBASE-19391 which returns null out of createRegionOnFileSystem
|
|
||||||
@Test
|
@Test
|
||||||
public void testNonExistentRegionReplica() throws Exception {
|
public void testNonExistentRegionReplica() throws Exception {
|
||||||
final TableName tableName = TableName.valueOf(name.getMethodName());
|
final TableName tableName = TableName.valueOf(name.getMethodName());
|
||||||
|
|
Loading…
Reference in New Issue