Jira (PUP-10163) Evaluate remaning singleton classes for thread safety

5 views
Skip to first unread message

Maggie Dreyer (JIRA)

unread,
Dec 6, 2019, 1:55:04 PM12/6/19
to puppe...@googlegroups.com
Maggie Dreyer created an issue
 
Puppet / Task PUP-10163
Evaluate remaning singleton classes for thread safety
Issue Type: Task Task
Assignee: Unassigned
Created: 2019/12/06 10:54 AM
Priority: Normal Normal
Reporter: Maggie Dreyer

As part of the work to ensure thread safety for environments, a ThreadLocalSingleton module was introduced, which allows the creation of thread local singletons when mixed in.

That work made use of the module in a couple places where it was obviously needed, but there are other places in the Puppet code base where we create singletons. We should evaluate where these singletons are used and determine if they should also use the module.

It is likely always safe to extend the module, but it is probably not always necessary. One outcome of this ticket might be to decide that it should always be used any time a singleton is being created, for safety and consistency. Otherwise, the inclusion of the module will indicate when the singleton is used in an unsafe manner when running multithreaded.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Patrick Carlisle (JIRA)

unread,
Dec 16, 2019, 12:52:04 PM12/16/19
to puppe...@googlegroups.com

Maggie Dreyer (JIRA)

unread,
Jan 9, 2020, 3:00:04 PM1/9/20
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Fix Version/s: PUP 6.12.0

Maggie Dreyer (JIRA)

unread,
Jan 9, 2020, 3:02:04 PM1/9/20
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Release Notes: Not Needed
Reply all
Reply to author
Forward
0 new messages