[
https://issues.apache.org/jira/browse/MAHOUT-2065?focusedWorklogId=221052&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-221052
]
ASF GitHub Bot logged work on MAHOUT-2065:
------------------------------------------
Author: ASF GitHub Bot
Created on: 01/Apr/19 01:59
Start Date: 01/Apr/19 01:59
Worklog Time Spent: 10m
Work Description: bd2019us commented on pull request #370: MAHOUT-2065
[WIP] fix high risk crash bug
URL: https://github.com/apache/mahout/pull/370
### Purpose of PR:
Fix:
[#MAHOUT-2065](https://issues.apache.org/jira/browse/MAHOUT-2065)newCachedThreadPool()
has higher risk in causing OutOfMemoryError, newFixedThreadPool() should be
used.
### Important ToDos
Please mark each with an "x"
- [x ] A JIRA ticket exists (if not, please create this
first)[https://issues.apache.org/jira/browse/ZEPPELIN/]
- [x ] Title of PR is "MAHOUT-XXXX Brief Description of Changes" where XXXX
is the JIRA number.
- [x ] Successfully built and ran all unit tests, verified that all tests
pass locally.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 221052)
Time Spent: 10m
Remaining Estimate: 0h
> [SECURITY]newCachedThreadPool() has higher risk in causing OutOfMemoryError
> ---------------------------------------------------------------------------
>
> Key: MAHOUT-2065
> URL: https://issues.apache.org/jira/browse/MAHOUT-2065
> Project: Mahout
> Issue Type: Bug
> Reporter: bd2019us
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Location :
> community/mahout-mr/mr/src/main/java/org/apache/mahout/clustering/streaming/mapreduce/StreamingKMeansDriver.java:427
> Executors.newCachedThreadPool() is not secure when the number of threads is
> not bounded, which can cause OutOfMemoryError and crash the program. For
> security, using newFixedThreadPool(int) should be preferred, which can be
> freely configured manually on demand.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)