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

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

Github user zentol commented on the issue:

    https://github.com/apache/flink/pull/3709
  
    It shouldn't matter for the display in the web-frontend in which data 
structure the cached ExecutionGraphs are being held. We are caching the actual 
ExecutionGraph that the JobManager works with and not some copy, thus there is 
simply no way for the handler to work with outdated data. This implies that the 
entire premise of this issue is flawed.
    
    It's more likely some web-related issue like the page not refreshing 
automatically or being cached by the browser for an inexplicable long time.


> use LoadingCache instead of WeakHashMap to lower latency
> --------------------------------------------------------
>
>                 Key: FLINK-6295
>                 URL: https://issues.apache.org/jira/browse/FLINK-6295
>             Project: Flink
>          Issue Type: Bug
>          Components: Webfrontend
>            Reporter: Tao Wang
>            Assignee: Tao Wang
>
> Now in ExecutionGraphHolder, which is used in many handlers, we use a 
> WeakHashMap to cache ExecutionGraph(s), which is only sensitive to garbage 
> collection.
> The latency is too high when JVM do GC rarely, which will make status of jobs 
> or its tasks unmatched with the real ones.
> LoadingCache is a common used cache implementation from guava lib, we can use 
> its time based eviction to lower latency of status update.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to