You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Geoffrey Jacoby (Jira)" <ji...@apache.org> on 2022/06/07 18:37:00 UTC
[jira] [Updated] (PHOENIX-5685) PDataTypeFactory Singleton is not thread safe
[ https://issues.apache.org/jira/browse/PHOENIX-5685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey Jacoby updated PHOENIX-5685:
-------------------------------------
Fix Version/s: 5.2.1
(was: 4.17.0)
(was: 5.2.0)
(was: 4.16.2)
> PDataTypeFactory Singleton is not thread safe
> ---------------------------------------------
>
> Key: PHOENIX-5685
> URL: https://issues.apache.org/jira/browse/PHOENIX-5685
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 5.0.0, 4.15.0
> Reporter: Swaroopa Kadam
> Assignee: Swaroopa Kadam
> Priority: Minor
> Fix For: 5.2.1
>
>
> The singleton class uses lazy initialization of the INSTANCE variable, however, the PDataTypeFactory#getInstance method is not synchronized to be thread-safe. Good to make use of double-checked locking.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)