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

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

Github user tillrohrmann commented on the issue:

    https://github.com/apache/flink/pull/2828
  
    Changes look good to me. Thanks for your contribution @ifndef-SleePy. 
Merging this PR.


> java.util.ConcurrentModificationException is thrown when stopping TimerService
> ------------------------------------------------------------------------------
>
>                 Key: FLINK-5093
>                 URL: https://issues.apache.org/jira/browse/FLINK-5093
>             Project: Flink
>          Issue Type: Bug
>          Components: Cluster Management
>         Environment: FLIP-6 feature branch
>            Reporter: Biao Liu
>            Assignee: Biao Liu
>            Priority: Minor
>
> In stop method of TimerService, removing Timeout instance while iterating the 
> map will cause a java.util.ConcurrentModificationException.
> Here is the stack:
> java.util.ConcurrentModificationException
>       at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922)
>       at java.util.HashMap$KeyIterator.next(HashMap.java:956)
>       at 
> org.apache.flink.runtime.taskexecutor.slot.TimerService.stop(TimerService.java:63)
>       at 
> org.apache.flink.runtime.taskexecutor.slot.TaskSlotTable.stop(TaskSlotTable.java:129)
>       at 
> org.apache.flink.runtime.taskexecutor.TaskExecutor.shutDown(TaskExecutor.java:224)
>       at 
> org.apache.flink.runtime.taskexecutor.TaskManagerRunner.shutDownInternally(TaskManagerRunner.java:135)
>       at 
> org.apache.flink.runtime.taskexecutor.TaskManagerRunner.shutDown(TaskManagerRunner.java:129)
>       at 
> org.apache.flink.runtime.minicluster.MiniCluster.shutdownInternally(MiniCluster.java:319)
>       at 
> org.apache.flink.runtime.minicluster.MiniCluster.shutdown(MiniCluster.java:274)



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

Reply via email to