Bug 1323126

Summary: Kickstarting system fails if file too big.
Product: [Community] Spacewalk Reporter: Gennadii Altukhov <galtukho>
Component: ServerAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.4CC: dyordano, galtukho, satqe-list, shughes, tkasparek, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1250666 Environment:
Last Closed: 2016-06-16 07:49:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1484117    

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.