HBASE-10594 Speed up TestRestoreSnapshotFromClient a bit.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1571141 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2014-02-24 05:08:37 +00:00
parent 9a55412869
commit 39a174f6af
1 changed files with 2 additions and 9 deletions

View File

@ -124,13 +124,6 @@ public class TestRestoreSnapshotFromClient {
admin.enableTable(tableName);
SnapshotTestingUtils.loadData(TEST_UTIL, table, 500, FAMILY);
snapshot1Rows = TEST_UTIL.countRows(table);
admin.disableTable(tableName);
// take a snapshot of the updated table
admin.snapshot(snapshotName1, tableName);
// re-enable table
admin.enableTable(tableName);
table.close();
}
@ -144,9 +137,9 @@ public class TestRestoreSnapshotFromClient {
@Test
public void testRestoreSnapshot() throws IOException {
SnapshotTestingUtils.verifyRowCount(TEST_UTIL, tableName, snapshot1Rows);
// Restore from snapshot-0
admin.disableTable(tableName);
admin.snapshot(snapshotName1, tableName);
// Restore from snapshot-0
admin.restoreSnapshot(snapshotName0);
admin.enableTable(tableName);
SnapshotTestingUtils.verifyRowCount(TEST_UTIL, tableName, snapshot0Rows);