[ 
https://issues.apache.org/jira/browse/HBASE-8206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615949#comment-13615949
 ] 

Manukranth Kolloju commented on HBASE-8206:
-------------------------------------------

Are there any compiler optimizations that you know of which might trivially 
convert :
if (codec == null) {
synchronized (lock) {
if (codec == null)
{
GzipCodec tmpCodec = new ReusableStreamGzipCodec();
tmpCodec.setConf(new Configuration(conf));
codec = tmpCodec;
}
}

to :

if (codec == null) {
synchronized (lock) {
if (codec == null)
{
codec = new ReusableStreamGzipCodec();
codec.setConf(new Configuration(conf));
}
}
                
> Thread safety issues with Compression.Algorithm.GZ and SNAPPY
> -------------------------------------------------------------
>
>                 Key: HBASE-8206
>                 URL: https://issues.apache.org/jira/browse/HBASE-8206
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.89-fb
>            Reporter: Manukranth Kolloju
>            Priority: Minor
>             Fix For: 0.89-fb
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The Compression.Algorithm was not completely thread safe. Hence making it 
> thread safe. Trying to fix this the same way it was fixed in HBase 
> trunk(HBASE-5458) with a minor change since the fix in trunk is not 
> completely thread safe.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to