Red Hat Bugzilla – Bug 489000
Message body test in carod fails when body is not set
Last modified: 2009-04-21 12:17:19 EDT
When sending a message from C++ that does not have a body set, e.g.
carod incorrectly thinks there is a message body.
if saved_work.AMQP_msg.body != '':
needs to be:
if saved_work.AMQP_msg.body != '' and saved_work.AMQP_msg.body != None:
The AMQP message body is checked against None now.
I cannot reproduce this. Submitting from c++ client doesn't work with emtpy body or with non-empty body. Client is from blog http://spinningmatt.wordpress.com/bucket/llcpp/ and settings are acording http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.1/html/Grid_User_Guide/chap-Grid_User_Guide-Low_latency_scheduling.html
I found in /var/lib/condor/log/StartLog
Warning, hook /usr/libexec/condor/hooks/hook_fetch_work.py (pid 7385) printed to stderr: Traceback (most recent call last):
File "/usr/libexec/condor/hooks/hook_fetch_work.py", line 73, in ?
File "/usr/libexec/condor/hooks/hook_fetch_work.py", line 62, in main
decoded = pickle.loads(reply)
File "/usr/lib/python2.4/pickle.py", line 1394, in loads
File "/usr/lib/python2.4/pickle.py", line 872, in load
File "/usr/lib/python2.4/pickle.py", line 894, in load_eof
Is this warning a symptom of this bug or is it another bug?
No, that message is not related to this BZ. That message is an indication that carod was stopped when work was being fetched and the hook got garbage.
Tested on rhel 5.3/4.7 and i386/x86_64 on condor-low-latency-1.0-12 and condor-job-hooks-common-1.0-5...OK
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.