mirror of https://github.com/apache/cassandra
Move latch.countDown() into "finally" block
patch by Mikhail Stepura; reviewed by Tyler Hobbs for CASSANDRA-7275
This commit is contained in:
parent
ea837970be
commit
6131273ac6
|
|
@ -1,4 +1,5 @@
|
|||
1.2.17
|
||||
* Errors in FlushRunnable may leave threads hung (CASSANDRA-7275)
|
||||
* reduce failure detector initial value to 2s (CASSANDRA-7307)
|
||||
* Fix problem truncating on a node that was previously in a dead state (CASSANDRA-7318)
|
||||
* Don't insert tombstones that hide indexed values into 2i (CASSANDRA-7268)
|
||||
|
|
|
|||
|
|
@ -380,11 +380,17 @@ public class Memtable
|
|||
|
||||
protected void runWith(File sstableDirectory) throws Exception
|
||||
{
|
||||
assert sstableDirectory != null : "Flush task is not bound to any disk";
|
||||
try
|
||||
{
|
||||
assert sstableDirectory != null : "Flush task is not bound to any disk";
|
||||
|
||||
SSTableReader sstable = writeSortedContents(context, sstableDirectory);
|
||||
cfs.replaceFlushed(Memtable.this, sstable);
|
||||
latch.countDown();
|
||||
SSTableReader sstable = writeSortedContents(context, sstableDirectory);
|
||||
cfs.replaceFlushed(Memtable.this, sstable);
|
||||
}
|
||||
finally
|
||||
{
|
||||
latch.countDown();
|
||||
}
|
||||
}
|
||||
|
||||
protected Directories getDirectories()
|
||||
|
|
|
|||
Loading…
Reference in New Issue