We have a very customised configuration and our test environments are not on Acquia so understand if this isn't supported but we're running into division by zero errors when running test which programatically create nodes.
Would it be possible to include the following patch so the slowdown_factor can never be zero?
Have put priority to minor as this is only an issue on non Acquia environments.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Screen Shot 2015-06-03 at 5.55.15 PM.png | 252.5 KB | afoster |
| fix_division_by_zero_error.patch | 421 bytes | 8thom |
Comments
Comment #1
elijah lynnCould you use a post sql-sync hook that disables the Acquia Purge module?
If it is a local environment you could look at Drush Rebuild, https://www.drupal.org/project/rebuild, use the dev version.
Comment #2
elijah lynnWait, are you actually using Acquia Purge functionality on these test environments in a mock kind of way or do you just want it disabled?
Comment #3
8thom commentedOur preference would be to keep it enabled as we want our test environment to be a close as production,
so some way to configure it to fail gracefully on non Acquia environments would be best.
Comment #4
mattew commented+1 Acquia Purge should test the $factor value properly before trying to divide by zero...
Acquia Purge may not be disabled because it could be a dependence of other modules, likes features, in case we use Rules for example.
Comment #5
nielsvm commentedAgreed gentlemen, patched it almost similarly and verified the lack of errors now locally. Expect this one for 7.x-1.2.
Comment #6
frankcarey commentedCan we get a new release pushed with this fix?
Comment #7
afoster commentedThanks for the patch - Tested and works.
Can anyone suggest how to disable this numerous warnings on every node save?

I'm disabling all caching on local dev in my settings.local.php, would is be possible to something similar to disable the numerous warnings with acquia purge?
Comment #8
8thom commentedA global disable setting would be very handy -- I've just had a site go down when running a drush import that updates about 11000 nodes
Comment #9
nielsvm commentedHi all,
I released
7.x-1.2-beta1yesterday, which contains this fix:https://www.drupal.org/node/2499643
Don't disable anything else besides enabling passive mode, so, all you need is:
$conf['acquia_purge_passivemode'] = TRUE;Please have a look at
$conf['acquia_purge_errorlimit'], this now does what you want (if you really want it).Nonetheless - please file new tickets for continuing tickets, since the division-by-zero this issue was about is fixed. Though reopen if it would come back!
Thanks,
Niels