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

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

Github user StephanEwen commented on the pull request:

    https://github.com/apache/flink/pull/1031#issuecomment-132136444
  
    I am not sure this is solving it the right way. I find it more intuitive if 
cache files stay registered. They are part of the environment and should be 
"sticky", like configuration settings as well (they don't get lost after 
execution).
    
    We could add a method to clear registered cache files. But if the problem 
is really only the MultiplProgramsTest base, then this should be fixed to 
return a new ExecutionEnvironment from a (the) TestEnvironmentFactory every 
time you call `getExecutionEnvironment()`.


> registerCacheFile fails with MultipleProgramsTestbase
> -----------------------------------------------------
>
>                 Key: FLINK-2448
>                 URL: https://issues.apache.org/jira/browse/FLINK-2448
>             Project: Flink
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Chesnay Schepler
>            Priority: Minor
>
> When trying to register a file using a constant name an expection is thrown 
> saying the file was already cached.
> This is probably because the same environment is reused, and the cacheFile 
> entries are not cleared between runs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to