Skip to content

Commit

Permalink
Need to set repair run to RUNNING before pausing/aborting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Jan 18, 2023
1 parent e8d061e commit 23c06d1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2925,6 +2925,14 @@ public void addAndAbortRepairs(String clusterName, String keyspace) throws Throw
LOG.error("Response data was: {}", responseData);
Assertions.fail("response deserialisation failed");
}
response = RUNNERS.get(0).callReaper(
"PUT",
String.format("repair_run/%s/state/%s", id.toString(), "RUNNING"),
Optional.empty());
Assertions
.assertThat(response.getStatus())
.isEqualTo(Response.Status.OK.getStatusCode())
.withFailMessage(responseData);
if (iter > 1) {
response = RUNNERS.get(0).callReaper(
"PUT",
Expand Down

0 comments on commit 23c06d1

Please sign in to comment.