Hi, We have run into this a few times on 1.0.10. It seems this happens when the file-rename after compaction is not completed. We have created a patch for this. However, in order to make sure we do not break anything, I was wondering if anyone could help us review the changes to see if this would cause any issue or not.
Thanks and Regards, Boris
diff --git a/src/java/org/apache/cassandra/io/sstable/Descriptor.java b/src/java/org/apache/cassandra/io/sstable/Descriptor.java index 10c56c9..d899dff 100644 --- a/src/java/org/apache/cassandra/io/sstable/Descriptor.java +++ b/src/java/org/apache/cassandra/io/sstable/Descriptor.java @@ -97,7 +97,7 @@ public class Descriptor this.cfname = cfname; this.generation = generation; temporary = temp; - hashCode = Objects.hashCode(directory, generation, ksname, cfname); + hashCode = Objects.hashCode(directory, generation, ksname, cfname, temp); hasStringsInBloomFilter = version.compareTo("c") < 0; hasIntRowSize = version.compareTo("d") < 0; @@ -297,7 +297,7 @@ public class Descriptor if (!(o instanceof Descriptor)) return false; Descriptor that = (Descriptor)o; - return that.directory.equals(this.directory) && that.generation == this.generation && that.ksname.equals(this.ksname) && that.cfname.equals(this.cfname); + return that.directory.equals(this.directory) && that.generation == this.generation && that.ksname.equals(this.ksname) && that.cfname.equals(this.cfname) && that.temporary == this.temporary; } @Override