1
0

Removing rollbacks instants from timeline for restore operation (#4518)

This commit is contained in:
Sivabalan Narayanan
2022-01-09 21:14:28 -05:00
committed by GitHub
parent e9a7f49f55
commit 56f93f4ebd
2 changed files with 12 additions and 0 deletions

View File

@@ -577,6 +577,8 @@ public class TestHoodieClientOnCopyOnWriteStorage extends HoodieClientTestBase {
client = getHoodieWriteClient(newConfig);
client.restoreToInstant("004");
assertFalse(metaClient.reloadActiveTimeline().getRollbackTimeline().lastInstant().isPresent());
// Check the entire dataset has all records still
String[] fullPartitionPaths = new String[dataGen.getPartitionPaths().length];
for (int i = 0; i < fullPartitionPaths.length; i++) {