HBASE-25546 PerfTestCompactionPolicies is failing because of NPE (#2921)
Adds mock for getRegionInfo which was missing earlier. Signed-off-by: Pankaj Kumar<pankajkumar@apache.org>
This commit is contained in:
parent
a04ea7ea44
commit
d6d67d1e9f
|
@ -29,6 +29,7 @@ import java.util.List;
|
|||
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.hbase.HBaseConfiguration;
|
||||
import org.apache.hadoop.hbase.client.RegionInfoBuilder;
|
||||
import org.apache.hadoop.hbase.regionserver.HStore;
|
||||
import org.apache.hadoop.hbase.regionserver.HStoreFile;
|
||||
import org.apache.hadoop.hbase.regionserver.StoreConfigInformation;
|
||||
|
@ -197,6 +198,7 @@ public class PerfTestCompactionPolicies extends MockStoreFileGenerator {
|
|||
HStore s = mock(HStore.class);
|
||||
when(s.getStoreFileTtl()).thenReturn(Long.MAX_VALUE);
|
||||
when(s.getBlockingFileCount()).thenReturn(7L);
|
||||
when(s.getRegionInfo()).thenReturn(RegionInfoBuilder.FIRST_META_REGIONINFO);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue