Added support for `checkAndRepairCdcStreams` command

This commit is contained in:
Juliusz Stasiewicz 2020-05-21 14:40:35 +02:00 committed by Pekka Enberg
parent 78c3b7627f
commit b2e4796901
2 changed files with 7 additions and 0 deletions

View File

@ -476,6 +476,12 @@ public class StorageService extends MetricsMBean implements StorageServiceMBean,
return client.getListInetAddressValue("");
}
@Override
public void checkAndRepairCdcStreams() throws IOException {
log(" checkAndRepairCdcStreams() throws IOException");
client.post("/storage_service/cdc_streams_check_and_repair");
}
/**
* Takes the snapshot for the given keyspaces. A snapshot name must be
* specified.

View File

@ -213,6 +213,7 @@ public interface StorageServiceMBean extends NotificationEmitter {
public List<InetAddress> getNaturalEndpoints(String keyspaceName, ByteBuffer key);
public void checkAndRepairCdcStreams() throws IOException;
/**
* Takes the snapshot for the given keyspaces. A snapshot name must be
* specified.