Skip to content

Commit

Permalink
ensure that the sstables we unmark compacting, are the same ones we m…
Browse files Browse the repository at this point in the history
…arked
  • Loading branch information
jbellis committed Apr 9, 2013
1 parent 38fdcd1 commit a393072
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/java/org/apache/cassandra/db/ColumnFamilyStore.java
Expand Up @@ -30,10 +30,7 @@

import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Function;
import com.google.common.collect.AbstractIterator;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import com.google.common.collect.*;
import com.google.common.util.concurrent.Futures;

import org.apache.cassandra.db.compaction.*;
Expand Down Expand Up @@ -61,6 +58,7 @@
import org.apache.cassandra.db.index.SecondaryIndexManager;
import org.apache.cassandra.db.marshal.AbstractType;
import org.apache.cassandra.dht.*;
import org.apache.cassandra.dht.Range;
import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.cassandra.io.FSReadError;
import org.apache.cassandra.io.compress.CompressionParameters;
Expand Down Expand Up @@ -1908,7 +1906,7 @@ public Iterable<SSTableReader> markAllCompacting()
public Iterable<SSTableReader> call() throws Exception
{
assert data.getCompacting().isEmpty() : data.getCompacting();
Iterable<SSTableReader> sstables = AbstractCompactionStrategy.filterSuspectSSTables(getSSTables());
Iterable<SSTableReader> sstables = Lists.newArrayList(AbstractCompactionStrategy.filterSuspectSSTables(getSSTables()));
if (Iterables.isEmpty(sstables))
return null;
boolean success = data.markCompacting(sstables);
Expand Down

0 comments on commit a393072

Please sign in to comment.