ddanielr commented on code in PR #5722:
URL: https://github.com/apache/accumulo/pull/5722#discussion_r2195467893


##########
start/src/main/java/org/apache/accumulo/start/classloader/vfs/UniqueFileReplicator.java:
##########
@@ -63,7 +63,12 @@ public File replicateFile(FileObject srcFile, FileSelector 
selector) throws File
 
     try {
       String safeBasename = UriParser.encode(baseName, 
TMP_RESERVED_CHARS).replace('%', '_');
-      File file = File.createTempFile("vfsr_", "_" + safeBasename, tempDir);
+      File file = null;
+      try {

Review Comment:
   It's possible that the tempDir has been deleted and is causing this action 
to fail.
   This code could check to see if the tempDir exists and throw a different 
exception type or log an error that the directory has been deleted.



-- 
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]

Reply via email to