mirror of https://github.com/apache/cassandra
Make BatchlogManagerMBean.forceBatchlogReplay() blocking
patch by Aleksey Yeschenko; reviewed by Jeff Jirsa for CASSANDRA-13809
This commit is contained in:
parent
e1aa7d32c9
commit
c6dec2f0e0
|
|
@ -1,4 +1,5 @@
|
|||
2.2.11
|
||||
* Make BatchlogManagerMBean.forceBatchlogReplay() blocking (CASSANDRA-13809)
|
||||
* Uncaught exceptions in Netty pipeline (CASSANDRA-13649)
|
||||
* Prevent integer overflow on exabyte filesystems (CASSANDRA-13067)
|
||||
* Fix queries with LIMIT and filtering on clustering columns (CASSANDRA-11223)
|
||||
|
|
|
|||
|
|
@ -112,9 +112,9 @@ public class BatchlogManager implements BatchlogManagerMBean
|
|||
return totalBatchesReplayed.longValue();
|
||||
}
|
||||
|
||||
public void forceBatchlogReplay()
|
||||
public void forceBatchlogReplay() throws Exception
|
||||
{
|
||||
startBatchlogReplay();
|
||||
startBatchlogReplay().get();
|
||||
}
|
||||
|
||||
public Future<?> startBatchlogReplay()
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public interface BatchlogManagerMBean
|
|||
public long getTotalBatchesReplayed();
|
||||
|
||||
/**
|
||||
* Forces batchlog replay. Returns immediately if replay is already in progress.
|
||||
* Forces batchlog replay. Blocks until completion.
|
||||
*/
|
||||
public void forceBatchlogReplay();
|
||||
public void forceBatchlogReplay() throws Exception;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue