public static class SnapshotTestingUtils.SnapshotMock.SnapshotBuilder extends Object
| Constructor and Description |
|---|
SnapshotBuilder(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
TableDescriptor htd,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc,
org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock.RegionData[] tableRegions) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path[] |
addRegion() |
org.apache.hadoop.fs.Path[] |
addRegionV1() |
org.apache.hadoop.fs.Path[] |
addRegionV2() |
org.apache.hadoop.fs.Path |
commit() |
void |
consolidate() |
void |
corruptDataManifest()
Corrupt data-manifest file
|
void |
corruptOneRegionManifest()
Corrupt one region-manifest file
|
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription |
getSnapshotDescription() |
org.apache.hadoop.fs.Path |
getSnapshotsDir() |
TableDescriptor |
getTableDescriptor() |
void |
missOneRegionSnapshotFile() |
public SnapshotBuilder(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, TableDescriptor htd, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc, org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock.RegionData[] tableRegions) throws IOException
IOExceptionpublic TableDescriptor getTableDescriptor()
public org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription getSnapshotDescription()
public org.apache.hadoop.fs.Path getSnapshotsDir()
public org.apache.hadoop.fs.Path[] addRegion() throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path[] addRegionV1() throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path[] addRegionV2() throws IOException
IOExceptionpublic void corruptOneRegionManifest() throws IOException
IOException - on unexecpted error from the FSpublic void missOneRegionSnapshotFile() throws IOException
IOExceptionpublic void corruptDataManifest() throws IOException
IOException - on unexecpted error from the FSpublic org.apache.hadoop.fs.Path commit() throws IOException
IOExceptionpublic void consolidate() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.