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);
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.
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:
Definition of done
We can call
takeSnapshot
successfully.