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)