Search in sources :

Example 6 with SnapshotMock

use of org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock in project hbase by apache.

the class TestSnapshotFileCache method createAndTestSnapshotV1.

private SnapshotMock.SnapshotBuilder createAndTestSnapshotV1(final SnapshotFileCache cache, final String name, final boolean tmp, final boolean removeOnExit, boolean setFolderTime) throws IOException {
    SnapshotMock snapshotMock = new SnapshotMock(conf, fs, rootDir);
    SnapshotMock.SnapshotBuilder builder = snapshotMock.createSnapshotV1(name, name);
    createAndTestSnapshot(cache, builder, tmp, removeOnExit, setFolderTime);
    return builder;
}
Also used : SnapshotMock(org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock)

Aggregations

SnapshotMock (org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock)6 Test (org.junit.Test)3 Path (org.apache.hadoop.fs.Path)1 TableDescriptor (org.apache.hadoop.hbase.client.TableDescriptor)1 SnapshotDescription (org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription)1