taklwu commented on code in PR #8910:
URL: https://github.com/apache/hbase/pull/8910#discussion_r4687306101
##########
hbase-backup/src/test/java/org/apache/hadoop/hbase/backup/TestPointInTimeRestore.java:
##########
@@ -236,4 +241,63 @@ public void
testPointInTimeRestore_SuccessfulRestoreForMultipleTables() throws E
PITRTestUtil.getRowCount(TEST_UTIL, restoredTable2),
"Restored table2 should have the same row count as the original");
}
+
+ /**
+ * Verifies PITR successfully restores all tables in a backup set when the
set name (-s) is used
+ * instead of a table list (-t).
+ */
+ @Test
+ public void testPointInTimeRestore_SuccessfulRestoreUsingBackupSet() throws
Exception {
+ String setName = "pitrBackupSet";
+ TableName restoredTable1 = TableName.valueOf("restoredSetTable1");
+ TableName restoredTable2 = TableName.valueOf("restoredSetTable2");
+
Review Comment:
should we add the row count before the restore ?
```suggestion
// Data loaded at -10 days must be excluded by a restore to -11 days.
assertEquals(3099, PITRTestUtil.getRowCount(TEST_UTIL, table1),
"table1 should have no writes after the restore point");
assertEquals(1099, PITRTestUtil.getRowCount(TEST_UTIL, table2),
"table2 should contain rows written after the restore point");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]