HomePhorge

Retry inventory ActiveRecord transaction failure
d092860b562fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Retry inventory ActiveRecord transaction failure

Previous to this commit, if the ActiveRecord transaction for saving
facts failed do to MySQL deadlock, for example, the transaction would
fail printing a message to the user. This primarily occurred during a
PE agent installation if multiple agent's were being creating
simultaneously.

This commit adds the ability to retry if a
ActiveRecord::StatementInvalid exception is thrown. To accomplish this,
this commit ports Cloud Provisioner's
Puppet::CloudPack::Utils#retry_action method to Puppet core under
Puppet::Util::RetryAction#retry_action.

Details

Provenance
Carl Caum <carl@carlcaum.com>Authored on
Jeff McCune <jeff@puppetlabs.com>Committed on Jan 6 2012, 11:49 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU9ba85db04b17: Merge branch 'ticket/2.7.x/11717-fix-adsi-user-create' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPUd092860b562f: Retry inventory ActiveRecord transaction failure (authored by Carl Caum <carl@carlcaum.com>).Jan 6 2012, 11:49 PM