advancedxy commented on code in PR #449:
URL: https://github.com/apache/incubator-uniffle/pull/449#discussion_r1065680198


##########
server/src/main/java/org/apache/uniffle/server/storage/LocalStorageManager.java:
##########
@@ -94,19 +101,26 @@ public class LocalStorageManager extends 
SingleStorageManager {
     // We must make sure the order of `storageBasePaths` and `localStorages` 
is same, or some unit test may be fail
     CountDownLatch countDownLatch = new 
CountDownLatch(storageBasePaths.size());
     AtomicInteger successCount = new AtomicInteger();
+    ServiceLoader<StorageTypeProvider> loader = 
ServiceLoader.load(StorageTypeProvider.class);

Review Comment:
   what if the `DefaultStorageMediaProvider` cannot provide accurate result? 
   
   The whole point of SPI is to provide an extend way to add plugins. So, the 
service loader must be a list?



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

Reply via email to