[ 
https://issues.apache.org/jira/browse/FLINK-8620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16410981#comment-16410981
 ] 

ASF GitHub Bot commented on FLINK-8620:
---------------------------------------

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

    https://github.com/apache/flink/pull/5580#discussion_r176659407
  
    --- Diff: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
 ---
    @@ -159,7 +162,7 @@ public ExecutionConfig getConfig() {
        * Get the list of cached files that were registered for distribution 
among the task managers.
        */
        public List<Tuple2<String, DistributedCache.DistributedCacheEntry>> 
getCachedFiles() {
    -           return cacheFile;
    +           return cacheFile.entrySet().stream().map(e -> 
Tuple2.of(e.getKey(), e.getValue())).collect(Collectors.toList());
    --- End diff --
    
    if the mapping is never used there's no value in using a map in the first 
place.


> Enable shipping custom artifacts to BlobStore and accessing them through 
> DistributedCache
> -----------------------------------------------------------------------------------------
>
>                 Key: FLINK-8620
>                 URL: https://issues.apache.org/jira/browse/FLINK-8620
>             Project: Flink
>          Issue Type: New Feature
>            Reporter: Dawid Wysakowicz
>            Assignee: Dawid Wysakowicz
>            Priority: Major
>
> We should be able to distribute custom files to taskmanagers. To do that we 
> can store those files in BlobStore and later on access them in TaskManagers 
> through DistributedCache.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to