reschke commented on code in PR #2027:
URL: https://github.com/apache/jackrabbit-oak/pull/2027#discussion_r1931562879
##########
oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/tool/AzureCheck.java:
##########
@@ -388,7 +389,13 @@ public int run() {
persistence = ToolUtils.decorateWithCache(persistence,
persistentCachePath, persistentCacheSizeGb);
}
- FileStoreBuilder builder =
fileStoreBuilder(Files.createTempDir()).withCustomPersistence(persistence);
+ FileStoreBuilder builder = null;
+ try {
+ builder =
fileStoreBuilder(Files.createTempDirectory(getClass().getSimpleName() +
"-").toFile()).withCustomPersistence(persistence);
+ } catch (IOException e) {
+ e.printStackTrace(err);
+ return 1;
+ }
Review Comment:
This is part of a commend line tool.
Look at the end of the method; this is exactly what it's already doing; the
only new thing is the creation of the temp directory can fail.
--
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]