You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/04/20 16:46:00 UTC

[jira] [Updated] (CARBONDATA-2331) DataMapStoreManager#getDataMap shouldn't lock on interned String

     [ https://issues.apache.org/jira/browse/CARBONDATA-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu updated CARBONDATA-2331:
-------------------------------
    Description: 
{code}
      synchronized (tableUniqueName.intern()) {
{code}

Please see the 'Noncompliant Code Example (Interned String Object)' section under:
https://wiki.sei.cmu.edu/confluence/display/java/LCK01-J.+Do+not+synchronize+on+objects+that+may+be+reused

  was:
{code}
      synchronized (tableUniqueName.intern()) {
{code}
Please see the 'Noncompliant Code Example (Interned String Object)' section under:
https://wiki.sei.cmu.edu/confluence/display/java/LCK01-J.+Do+not+synchronize+on+objects+that+may+be+reused


> DataMapStoreManager#getDataMap shouldn't lock on interned String
> ----------------------------------------------------------------
>
>                 Key: CARBONDATA-2331
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2331
>             Project: CarbonData
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Major
>
> {code}
>       synchronized (tableUniqueName.intern()) {
> {code}
> Please see the 'Noncompliant Code Example (Interned String Object)' section under:
> https://wiki.sei.cmu.edu/confluence/display/java/LCK01-J.+Do+not+synchronize+on+objects+that+may+be+reused



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)