sreejasahithi commented on code in PR #10187:
URL: https://github.com/apache/ozone/pull/10187#discussion_r3219783261
##########
hadoop-ozone/iceberg/src/test/java/org/apache/hadoop/ozone/iceberg/TestRewriteTablePathOzoneAction.java:
##########
Review Comment:
You could also add a case like follows where the version file is missing.
```
void startVersionRejectsDeletedVersionFile() {
List<String> metadataPaths = metadataLogEntryPaths(table);
String existingName =
RewriteTablePathUtil.fileName(metadataPaths.get(0));
// delete the physical file so it's in the log but missing on disk
table.io().deleteFile(metadataPaths.get(0));
IllegalArgumentException exception =
assertThrows(IllegalArgumentException.class,
() -> new RewriteTablePathOzoneAction(table)
.rewriteLocationPrefix(sourcePrefix, targetPrefix)
.startVersion(existingName)
.execute());
assertTrue(exception.getMessage().contains("does not exist"));
}
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]