Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Claire Cadman updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Claire Cadman Labels: doc_reviewed Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.7405.1618317180028%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Release Notes Summary: Fixed an issue in multithreaded mode where changing a Puppet setting while processing a request would cause Changing the environment cache to be invalidated, due to a hook on the value of Puppet's `rich_data` setting . The hook has been removed, and environments at runtime will now respect changes to no longer invalidate the `rich_data` setting without needing to be recreated environment cache . Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.176764.1617055740328%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Release Notes Summary: Fixed an issue in multithreaded mode where changing a Puppet setting while processing a request would cause the environment cache to be invalidated, due to a hook on the `rich_data` setting. The hook has been removed, and environments will now respect changes to the `rich_data` setting without needing to be recreated. Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.176752.1617055620138%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Fix Version/s: PUP 7.6.0 Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.176741.1617055320143%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Release Notes: Bug Fix Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.176742.1617055320188%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Cas Donoghue updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Cas Donoghue Sprint: Froyo - 03/10/2021, Froyo - 03/24/2021 , Froyo - 04/7/2021 Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.173566.1616616420355%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer commented on PUP-10952 Re: Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode So I was wrong: we do call that hook when initializing the settings on server start too, we just don't have logging set up yet when that happens. Apparently "on_write_only" hooks are also called when settings are parsed. It does not appear to be possible to avoid that. Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.170065.1616106840031%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer assigned an issue to Maggie Dreyer Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Assignee: Maggie Dreyer Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.169327.161607981%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer While doing research on new loader architectures for SERVER-2860, I discovered the following:In {{multithreaded}} mode in Puppetserver, we create a new settings object whenever a Puppet setting changes while a JRuby request is being processed. One example is if a Puppet function in a module calls {{Puppet[]=}}. In the process of initializing the new settings object with overrides (for thread safety), we resolve all settings. The {{rich_data}} setting [clears out the environment cache|https://github.com/puppetlabs/puppet/blob/main/lib/puppet/defaults.rb#L2162] when resolved.This means if you are changing any Puppet settings in your catalog, in multithreaded mode environment caching is effectively disabled, because the cache will be invalidated on every compile of the offending environment. The most straightforward fix would be to stop clearing all envs on settings initialization. But we'd need to make sure that won't cause other problems for the {{rich_data}} setting. But a better solution would be to We should find out why the hook is being called in the first place when [initializing|https://github.com/puppetlabs/puppetserver/blob/9ecd7fb18cd8e02edcfa9e2130c0b2053e0a3209/src/ruby/puppetserver-lib/puppet/server/settings.rb#L25-L31] the threadlocal settings object (we're not altering that setting, and the default hook mode is "on_write_only"), and see if we can avoid it. Add Comment
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer assigned an issue to Unassigned Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Assignee: Maggie Dreyer Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.162937.1615412520030%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Cas Donoghue updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Cas Donoghue Sprint: Froyo - 03/10/2021 , Froyo - 03/24/2021 Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.162843.1615410360028%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer While doing research on new loader architectures for SERVER-2860, I discovered the following:In {{multithreaded}} mode in Puppetserver, we create a new settings object whenever a Puppet setting changes while a JRuby request is being processed. One example is if a Puppet function in a module calls {{Puppet[]=}}. In the process of initializing the new settings object with overrides (for thread safety), we resolve all settings. The {{rich_data}} setting [clears out the environment cache|https://github.com/puppetlabs/puppet/blob/main/lib/puppet/defaults.rb#L2162] when resolved.This means if you are changing any Puppet settings in your catalog, in multithreaded mode environment caching is effectively disabled, because the cache will be invalidated on every compile of the offending environment.The most straightforward fix would be to stop clearing all envs on settings initialization. But we'd need to make sure that won't cause other problems for the {{rich_data}} setting. But a better solution would be to find out why the hook is being called in the first place when [initializing|https://github.com/puppetlabs/puppetserver/blob/9ecd7fb18cd8e02edcfa9e2130c0b2053e0a3209/src/ruby/puppetserver-lib/puppet/server/settings.rb#L25-L31] the threadlocal settings object (we're not altering that setting, and the default hook mode is "on_write_only"), and see if we can avoid it. Add Comment
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer While doing research on new loader architectures for SERVER-2860, I discovered the following:In {{multithreaded}} mode in Puppetserver, we create a new settings object whenever a Puppet setting changes while a JRuby request is being processed. One example is if a Puppet function in a module calls {{Puppet[]=}}. In the process of initializing the new settings object with overrides (for thread safety), we resolve all settings. The {{rich_data}} setting [clears out the environment cache|https://github.com/puppetlabs/puppet/blob/main/lib/puppet/defaults.rb#L2162] when resolved.This means if you are changing any Puppet settings in your catalog, in multithreaded mode environment caching is effectively disabled, because the cache will be invalidated on every compile of the offending environment.The most straightforward fix would be to stop clearing all envs on settings initialization. But we'd need to make sure that won't cause other problems for the {{rich_data}} setting. But a better solution would be to find out why the hook is being called in the first place (we're not altering that setting, and the default hook mode is "on_write_only"), and see if we can avoid it. Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer commented on PUP-10952 Re: Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode On further investigation, it seems like it might be a bug that the rich_data hook is getting called in this context at all. It is not called when the server starts and initializes settings normally, but is called, from here when we create the threadlocal settings object when a setting is updated during a compile. Dunno why yet, but that seems like something we'd rather didn't happen, and fixing that seems better than removing the hook. Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.161245.1615320960035%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Sprint: Froyo - 03/10/2021 Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.158483.1614961320061%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer assigned an issue to Maggie Dreyer Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Assignee: Maggie Dreyer Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.158485.1614961320147%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Method Found: Needs Assessment Manual Test Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.158484.1614961320104%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Story Points: 2 Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.158482.1614961260093%40Atlassian.JIRA.
Jira (PUP-10952) Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode
Title: Message Title Maggie Dreyer moved an issue Puppet / PUP-10952 Changing a Puppet setting in a catalog invalidates the env cache in multithreaded mode Change By: Maggie Dreyer Key: SERVER PUP - 2980 10952 Project: Puppet Server Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.390083.1614901848000.158117.1614904920038%40Atlassian.JIRA.