missing sync in HTablePool.getTable()
-------------------------------------

                 Key: HBASE-2969
                 URL: https://issues.apache.org/jira/browse/HBASE-2969
             Project: HBase
          Issue Type: Bug
          Components: client
            Reporter: Guilherme Mauro Germoglio Barbosa
            Assignee: Guilherme Mauro Germoglio Barbosa
            Priority: Minor


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.

Reply via email to