Closed (fixed)
Project:
Project Issue File Review
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Dec 2008 at 08:08 UTC
Updated:
1 Jan 2009 at 01:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
boombatower commentedThe only way I can see this happening is if pifr/review is called twice while file data is loaded thus invoking pifr_review_run().
A possible fix would be to change the pifr_reviewing to only be true once pifr_review_run() has been called, and use file information for check.
Comment #2
boombatower commentedI'm going to rework status/pifr_reviewing stuff in #343100: Stop any PHP process when slave reset command issued & report slave status checking.
Once complete I'll check and see if this is still an issue.
Comment #3
boombatower commentedComment #4
boombatower commentedAppears to have occurred on: http://testing.drupal.org/pifr/file/1/2510.
Different results the second time interestingly.
Comment #5
boombatower commentedThe only function to invoke the
pifr.file.reviewxmlrpc command on a slave is pifr_send_to_slave().The function is called in the following locations:
pifr_send_to_slave() should call pifr_file_mark_sent() upon success which records the event.
I see two reasons this may occur given the log:
Comment #6
boombatower commentedThis is a correction to the logic that attempts to prevent tests from running twice.
This does not explain why the tests are being run twice. Either some accidental call to pifr/review/ which also has the key!?!? or somehow the process does not terminate after sending results?
Those are my current ideas.
This patch will fix the logic issue and may indirectly fix the issue. It does not explain why the results differ.
The other problem is how to test this, since it is one of those "fun" issues that only occurs some of the time it is very hard to debug. (possibly cron related? - although I'm not sure how as it should still show up in log)
Comment #7
boombatower commentedPatch applied to #4 and PIFR debugging option enabled. The log looks good and test still appear to run so this at least this doesn't break anything (as expected).
Test results match the ones before.
Bart suggested this may be memory related as he had an issue with a slave with the same memory limit as #4.
Comment #8
boombatower commentedCommitted.
I'll wait for memory limit to be raised and run a number of tests through without this occurring before I close issue.
Comment #9
boombatower commentedI'll mark this as fixed and re-open if discovered again.