Github user jacques-n commented on a diff in the pull request:

    https://github.com/apache/drill/pull/148#discussion_r41718152
  
    --- Diff: 
common/src/main/java/org/apache/drill/common/logical/StoragePluginConfigBase.java
 ---
    @@ -17,30 +17,18 @@
      */
     package org.apache.drill.common.logical;
     
    -import java.util.List;
    +import java.util.Set;
     
    -import org.apache.drill.common.config.CommonConstants;
    -import org.apache.drill.common.config.DrillConfig;
    -import org.apache.drill.common.util.PathScanner;
    -
    -import com.google.common.base.Joiner;
    +import org.apache.drill.common.scanner.persistence.ScanResult;
     
     
     public abstract class StoragePluginConfigBase extends StoragePluginConfig {
       private static final org.slf4j.Logger logger = 
org.slf4j.LoggerFactory.getLogger(StoragePluginConfigBase.class);
     
    -
    -  public synchronized static Class<?>[] getSubTypes(final DrillConfig 
config) {
    -    final List<String> packages =
    -        
config.getStringList(CommonConstants.STORAGE_PLUGIN_CONFIG_SCAN_PACKAGES);
    -    final Class<?>[] pluginClasses =
    -        PathScanner.scanForImplementationsArr(StoragePluginConfig.class, 
packages);
    -    final String lineBrokenList =
    -        pluginClasses.length == 0
    -        ? "" : "\n\t- " + Joiner.on("\n\t- ").join(pluginClasses);
    -    logger.debug("Found {} storage plugin configuration classes: {}.",
    -                 pluginClasses.length, lineBrokenList);
    -    return pluginClasses;
    +  public synchronized static Set<Class<? extends StoragePluginConfig>> 
getSubTypes(final ScanResult classpathScan) {
    --- End diff --
    
    does this still need synchronized?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to