You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2010/09/09 00:43:33 UTC

[jira] Resolved: (HBASE-2969) missing sync in HTablePool.getTable()

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

stack resolved HBASE-2969.
--------------------------

     Hadoop Flags: [Reviewed]
    Fix Version/s: 0.90.0
       Resolution: Fixed

Thanks for the patch Guilherme.  Committed to trunk

> missing sync in HTablePool.getTable()
> -------------------------------------
>
>                 Key: HBASE-2969
>                 URL: https://issues.apache.org/jira/browse/HBASE-2969
>             Project: HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.89.20100621
>            Reporter: Guilherme Mauro Germoglio Barbosa
>            Assignee: Guilherme Mauro Germoglio Barbosa
>            Priority: Minor
>             Fix For: 0.90.0
>
>         Attachments: HBASE-2969.patch
>
>
> Considering that the method _getTable(String)_ in _org.apache.hadoop.hbase.client.HTablePool_ is invoked by multiple threads, it may happen that while _'queue == null'_ is true, it is possible to have a queue mapped to that name into the tables map when _'tables.put(tableName, queue)'_ is executed. 
> However, I don't think it will cause any harm because the overwritten queue will eventually be garbage-collected. :-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.