Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5547

Environment is evicted many times during compile

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 3.8.5, PUP 4.3.2
    • None
    • None
    • 1
    • Language 2015-12-02, Language 2015-12-16
    • Bug Fix
    • Hide
      A performance issue and debug output hog was fixed that could slow down performance if the environment timeout was set to 0 and an environment used many automatically bound default values as each lookup caused the environment cache to be evicted and recreated once per lookup (no other harm was done as the environment was still in use by the current compilation).
      Show
      A performance issue and debug output hog was fixed that could slow down performance if the environment timeout was set to 0 and an environment used many automatically bound default values as each lookup caused the environment cache to be evicted and recreated once per lookup (no other harm was done as the environment was still in use by the current compilation).

    Description

      The environment might be evicted a large number of times during a compile. The reason for this is that the call to the data binding indirection passes the environment in string form rather than the instance which forces a lookup in Environments which in turn evicts an existing environment if environment_timeout = 0. That setting happens to be the default.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thomas.hallgren Thomas Hallgren
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support