xianjingfeng opened a new issue, #762:
URL: https://github.com/apache/incubator-uniffle/issues/762

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/incubator-uniffle/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Describe the bug
   
   If storage path is not exist, `Files#getFileStore` will fail.
   
   ### Affects Version(s)
   
   master
   
   ### Uniffle Server Log Output
   
   ```logtalk
   [WARN] 2023-03-23 09:21:32,163 pool-2-thread-1 DefaultStorageMediaProvider 
getStorageMediaFor - Get storage type failed with exception
   java.nio.file.NoSuchFileException: /data/rssadmin/rss/data/rssdata
           at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
           at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
           at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
           at sun.nio.fs.UnixFileStore.devFor(UnixFileStore.java:57)
           at sun.nio.fs.UnixFileStore.<init>(UnixFileStore.java:64)
           at sun.nio.fs.LinuxFileStore.<init>(LinuxFileStore.java:44)
           at 
sun.nio.fs.LinuxFileSystemProvider.getFileStore(LinuxFileSystemProvider.java:51)
           at 
sun.nio.fs.LinuxFileSystemProvider.getFileStore(LinuxFileSystemProvider.java:39)
           at 
sun.nio.fs.UnixFileSystemProvider.getFileStore(UnixFileSystemProvider.java:368)
           at java.nio.file.Files.getFileStore(Files.java:1461)
           at 
org.apache.uniffle.storage.common.DefaultStorageMediaProvider.getStorageMediaFor(DefaultStorageMediaProvider.java:63)
           at 
org.apache.uniffle.server.storage.LocalStorageManager.getStorageTypeForBasePath(LocalStorageManager.java:160)
           at 
org.apache.uniffle.server.storage.LocalStorageManager.lambda$new$0(LocalStorageManager.java:116)
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:750)
   ```
   
   
   ### Uniffle Engine Log Output
   
   _No response_
   
   ### Uniffle Server Configurations
   
   _No response_
   
   ### Uniffle Engine Configurations
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!


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