Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7943#discussion_r36475202
  
    --- Diff: 
network/shuffle/src/main/java/org/apache/spark/network/shuffle/ExternalShuffleBlockResolver.java
 ---
    @@ -53,24 +55,73 @@
       private static final Logger logger = 
LoggerFactory.getLogger(ExternalShuffleBlockResolver.class);
     
       // Map containing all registered executors' metadata.
    -  private final ConcurrentMap<AppExecId, ExecutorShuffleInfo> executors;
    +  @VisibleForTesting
    +  final ConcurrentMap<AppExecId, ExecutorShuffleInfo> executors;
     
       // Single-threaded Java executor used to perform expensive recursive 
directory deletion.
       private final Executor directoryCleaner;
     
       private final TransportConf conf;
     
    -  public ExternalShuffleBlockResolver(TransportConf conf) {
    -    this(conf, Executors.newSingleThreadExecutor(
    +  @VisibleForTesting
    +  final File registeredExecutorFile;
    +  @VisibleForTesting
    +  final DB db;
    +
    +  public ExternalShuffleBlockResolver(TransportConf conf, File 
registeredExecutorFile) throws IOException {
    --- End diff --
    
    nit: long line


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to