You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/04/01 02:14:00 UTC

[jira] [Created] (HIVE-21555) [SECURITY]newCachedThreadPool() has higher risk in causing OutOfMemoryError

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)