danny0405 commented on code in PR #13375:
URL: https://github.com/apache/hudi/pull/13375#discussion_r2114921308
##########
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/client/functional/TestHoodieFileSystemViews.java:
##########
@@ -161,11 +160,7 @@ public void testFileSystemViewConsistency(HoodieTableType
tableType, boolean ena
// mimic failed write for last completed operation and retry few more
operations.
HoodieInstant lastInstant =
metaClient.reloadActiveTimeline().getWriteTimeline().lastInstant().get();
HoodieCommitMetadata commitMetadata =
metaClient.getActiveTimeline().readCommitMetadata(lastInstant);
- StoragePath instantPath = HoodieTestUtils
- .getCompleteInstantPath(metaClient.getStorage(),
- metaClient.getTimelinePath(),
- lastInstant.requestedTime(), lastInstant.getAction(),
HoodieTableVersion.fromVersionCode(writeVersion));
- metaClient.getStorage().deleteFile(instantPath);
+ client.rollback(lastInstant.requestedTime());
Review Comment:
the comment says "// mimic failed write for last completed operation and
retry few more operations", does it make sense to rollback the instant directly?
--
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]