mirror of https://github.com/apache/cassandra
backport CASSANDRA-6011
This commit is contained in:
parent
eb884a582b
commit
cec564d22f
|
|
@ -1,6 +1,7 @@
|
|||
1.1.next
|
||||
* Backport compaction exception handling from 1.2
|
||||
* Correctly validate sparse composite cells in scrub (CASSANDRA-5855)
|
||||
* Fix snapshots in use get deleted during snapshot repair (CASSANDRA-6011)
|
||||
|
||||
|
||||
1.1.12
|
||||
|
|
|
|||
|
|
@ -688,7 +688,7 @@ public class CompactionManager implements CompactionManagerMBean
|
|||
return;
|
||||
|
||||
Collection<SSTableReader> sstables;
|
||||
if (cfs.table.snapshotExists(validator.request.sessionid))
|
||||
if (cfs.snapshotExists(validator.request.sessionid))
|
||||
{
|
||||
// If there is a snapshot created for the session then read from there.
|
||||
sstables = cfs.getSnapshotSSTableReader(validator.request.sessionid);
|
||||
|
|
@ -736,8 +736,8 @@ public class CompactionManager implements CompactionManagerMBean
|
|||
{
|
||||
SSTableReader.releaseReferences(sstables);
|
||||
iter.close();
|
||||
if (cfs.table.snapshotExists(validator.request.sessionid))
|
||||
cfs.table.clearSnapshot(validator.request.sessionid);
|
||||
if (cfs.snapshotExists(validator.request.sessionid))
|
||||
cfs.clearSnapshot(validator.request.sessionid);
|
||||
|
||||
validationExecutor.finishCompaction(ci);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue