HBASE-10594 Revert due to test instability

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1572439 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2014-02-27 05:34:38 +00:00
parent 0636414170
commit 3600a9a973
1 changed files with 9 additions and 2 deletions

View File

@ -124,6 +124,13 @@ 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();
}
@ -137,9 +144,9 @@ public class TestRestoreSnapshotFromClient {
@Test
public void testRestoreSnapshot() throws IOException {
SnapshotTestingUtils.verifyRowCount(TEST_UTIL, tableName, snapshot1Rows);
admin.disableTable(tableName);
admin.snapshot(snapshotName1, tableName);
// Restore from snapshot-0
admin.disableTable(tableName);
admin.restoreSnapshot(snapshotName0);
admin.enableTable(tableName);
SnapshotTestingUtils.verifyRowCount(TEST_UTIL, tableName, snapshot0Rows);