HomePhorge

Fixed issue #4570 (Race conditions when serializing objects to YAML).
50fd9b77cdb2Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fixed issue #4570 (Race conditions when serializing objects to YAML).

The ZAML class was using class variables to keep track of labels and
backreferences while serializing object to YAML. This made it
possible to get ill-formed or incorrect YAML output if two threads
tried to serialize objects at the same time.

Changed to use instance variables of the ZAML class, so there is no
race condition.

Also added some more spec tests to verify that labels are generated
properly.

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU0f56c1b02d40: Merge commit '2.6.1rc2' into next
Branches
Unknown
Tags
Unknown

Event Timeline

Paul Berry <paul@puppetlabs.com> committed rPU50fd9b77cdb2: Fixed issue #4570 (Race conditions when serializing objects to YAML). (authored by Paul Berry <paul@puppetlabs.com>).Aug 23 2010, 5:34 PM