fix auto_compaction request strings
Column family is not being passed, so the requests fail to reach the correct endpoint. Signed-off-by: Glauber Costa <glauber@scylladb.com>
This commit is contained in:
parent
631605eff1
commit
2b1ed89ec3
@ -1381,7 +1381,7 @@ public class StorageService extends MetricsMBean implements StorageServiceMBean,
|
|||||||
log("disableAutoCompaction(String ks, String... columnFamilies)");
|
log("disableAutoCompaction(String ks, String... columnFamilies)");
|
||||||
MultivaluedMap<String, String> queryParams = new MultivaluedHashMap<String, String>();
|
MultivaluedMap<String, String> queryParams = new MultivaluedHashMap<String, String>();
|
||||||
APIClient.set_query_param(queryParams, "cf", APIClient.join(columnFamilies));
|
APIClient.set_query_param(queryParams, "cf", APIClient.join(columnFamilies));
|
||||||
client.delete("/storage_service/auto_compaction/", queryParams);
|
client.delete("/storage_service/auto_compaction/" + ks, queryParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -1390,7 +1390,7 @@ public class StorageService extends MetricsMBean implements StorageServiceMBean,
|
|||||||
MultivaluedMap<String, String> queryParams = new MultivaluedHashMap<String, String>();
|
MultivaluedMap<String, String> queryParams = new MultivaluedHashMap<String, String>();
|
||||||
APIClient.set_query_param(queryParams, "cf", APIClient.join(columnFamilies));
|
APIClient.set_query_param(queryParams, "cf", APIClient.join(columnFamilies));
|
||||||
try {
|
try {
|
||||||
client.post("/storage_service/auto_compaction/", queryParams);
|
client.post("/storage_service/auto_compaction/" + ks, queryParams);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
// FIXME should throw the right exception
|
// FIXME should throw the right exception
|
||||||
throw new IOException(e.getMessage());
|
throw new IOException(e.getMessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user