Bug 1323126 - Kickstarting system fails if file too big.
Summary: Kickstarting system fails if file too big.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2016-04-01 10:34 UTC by Gennadii Altukhov
Modified: 2017-09-28 18:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1250666
Environment:
Last Closed: 2016-06-16 07:49:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Gennadii Altukhov 2016-04-01 10:34:57 UTC
Description of problem:
getFileMD5Sum() read a whole file into memory and fails if file too big

How reproducible: 
Every time 

Additional info:
Log

VMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2015/08/05 11:23:33 - please wait.
JVMDUMP030W Cannot write dump to file /usr/share/tomcat6/heapdump.20150805.112333.1794.0001.phd: Permission denied
JVMDUMP032I JVM requested Heap dump using '/tmp/heapdump.20150805.112333.1794.0001.phd' in response to an event
JVMDUMP010I Heap dump written to /tmp/heapdump.20150805.112333.1794.0001.phd
.
.
.
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:761)
Caused by:
java.lang.OutOfMemoryError
:
Java heap space
        at
com.redhat.rhn.common.util.FileUtils
.
readByteArrayFromFile
(
FileUtils.java
:
1
2
5
)
        at
com.redhat.rhn.common.util.MD5Sum
.
getFileMD5Sum
(
MD5Sum.java

Comment 1 Gennadii Altukhov 2016-04-01 10:35:27 UTC
Taking...

Comment 2 Gennadii Altukhov 2016-04-01 11:59:57 UTC
spacewalk.git:
8ed6a8b4a128b44e55d97581931f489d1ee18f80

Comment 3 Tomáš Kašpárek 2016-06-16 07:49:02 UTC
Spacewalk 2.5 was released.

Comment 4 Eric Herget 2017-09-28 18:09:41 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


Note You need to log in before you can comment on or make changes to this bug.