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

Jonathan Ellis resolved CASSANDRA-5259.
---------------------------------------

    Resolution: Not A Problem

Not actually a problem -- gNBT is synchronized to prevent this.  Not an elegant 
solution but adequate.  Added a comment.
                
> getNextBackgroundTask gives up too easily
> -----------------------------------------
>
>                 Key: CASSANDRA-5259
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5259
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.2.2
>
>
> getNextBackgroundTask only attempts once to markSSTablesForCompaction.  So if 
> many task invocations are scanning compaction candidates concurrently (e.g. 
> because submitBackground fires off a bunch of gNBT at once), it's highly 
> likely that all will compute the same victim list and only one will return a 
> CompactionTask, resulting in less compaction concurrency than desired.

--
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