bd2019us created HIVE-21555:
-------------------------------
Summary: [SECURITY]newCachedThreadPool() has higher risk in
causing OutOfMemoryError
Key: HIVE-21555
URL: https://issues.apache.org/jira/browse/HIVE-21555
Project: Hive
Issue Type: Bug
Reporter: bd2019us
Assignee: bd2019us
Location:
ql/src/java/org/apache/hadoop/hive/ql/processors/LlapCacheResourceProcessor.java:136
In the program, since the number of instances (instances =
llapRegistryService.getInstances().getAll();) is not known ahead of time, it
has a high risk in causing OutOfMemoryError when too many threads are created.
Therefore, to ensure security, a fixed number of thread pool should be used,
which can be freely configured and also enables running multiple instances
concurrently but is free from the above error.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)