HomePhorge

Fix for #5755 -- making zaml serialization robust over projected objects
ac8d316a08cfUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix for #5755 -- making zaml serialization robust over projected objects

The core problem arose when the fix for #5048 in 31118fe85aca4 introduced a
hook to replace objects dynamically durring serialization so that they could be
projected / rewritten to a different form for backward compatability. The
serialization code assumed that all objects being serialized would remain valid
until the serialization was complete, but nothing retained a copy of the
temporary objects created in the hook.

To resolve this, the serialization layer now maintains a ref to each such object
and clears them (to allow GC) after serialization is complete.

Paired-with: Jesse Wolfe <jesse@puppetlabs.com>
Paired-with: Paul Berry <paul@puppetlabs.com>

Details

Provenance
Markus Roberts <Markus@reality.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU2a94c61e6c94: Merge branch '2.6.next' of git://github.com/puppetlabs/puppet into 2.6.next
Branches
Unknown
Tags
Unknown

Event Timeline

Markus Roberts <Markus@reality.com> committed rPUac8d316a08cf: Fix for #5755 -- making zaml serialization robust over projected objects (authored by Markus Roberts <Markus@reality.com>).Feb 3 2011, 11:26 PM