You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tez.apache.org by "junbiao chen (Jira)" <ji...@apache.org> on 2021/06/24 08:31:00 UTC
[jira] [Created] (TEZ-4315) There is potential risk of
ConcurrentModificationException when scheduling task for container
junbiao chen created TEZ-4315:
---------------------------------
Summary: There is potential risk of ConcurrentModificationException when scheduling task for container
Key: TEZ-4315
URL: https://issues.apache.org/jira/browse/TEZ-4315
Project: Apache Tez
Issue Type: Improvement
Affects Versions: 0.10.0, 0.9.1
Reporter: junbiao chen
When assigning task to container,YarnTaskSchedulerService need to traverse pending cookieContainerRequests(stored in LinkedHashSet) to select one that mathing the container. In the meantime, YarnTaskSchedulerService will also remove the completed cookieContainerRequest from LinkedHashSet.This may cause ConcurrentModificationException,because LinkedHashSet is not thread-safe.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)