[ https://issues.apache.org/jira/browse/HBASE-8873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715803#comment-13715803 ]
Lars Hofhansl commented on HBASE-8873: -------------------------------------- Why would this be a 0.94 issue only? I see the same synchronization missing in trunk (it just more complicated in trunk because of the compaction policies). Also, it seems there are other places were we miss synchronization: exploringCompactionSelection, completeCompaction, compactionSelection, > minor concurrent issue about filesCompacting > -------------------------------------------- > > Key: HBASE-8873 > URL: https://issues.apache.org/jira/browse/HBASE-8873 > Project: HBase > Issue Type: Bug > Affects Versions: 0.95.1, 0.94.9 > Reporter: Liang Xie > Assignee: Liang Xie > Attachments: HBase-8873-0.94.txt > > > i am reading compaction code, seems there's a minor thread-safe issue on > filesCompacting in both 0.94 and trunk, we guard it with synchronized/lock, > except needsCompaction() function. and the fix should sth like this: > synchronized (filesCompacting) { > ... > } -- 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