k8ssandra / management-api-for-apache-cassandra

RESTful / Secure Management Sidecar for Apache Cassandra
Apache License 2.0
70 stars 51 forks source link

Snapshots API appears to have issues #381

Closed Miles-Garnsey closed 11 months ago

Miles-Garnsey commented 11 months ago

When attempting to take a snapshot using the takeSnapshot method in the management API Java client, we get back a 500 internal server error without much detail on the particular issue that has occured.

The calling code looks as follows:

TakeSnapshotRequest req = new TakeSnapshotRequest();
req.setSnapshotName(snapshotName);
req.setKeyspaces(Arrays.asList(keyspaceNames));
apiClient.takeSnapshot(req);

Definition of done

We can call takeSnapshot successfully.

Miles-Garnsey commented 11 months ago

It looks like the failures we saw here were expected, and due to the cluster Reaper was trying to snapshot not existing in the tests. These tests were created to test the failure path.