shalnisundram commented on code in PR #272:
URL: https://github.com/apache/cassandra-sidecar/pull/272#discussion_r2543270776


##########
server/src/main/java/org/apache/cassandra/sidecar/modules/CassandraOperationsModule.java:
##########
@@ -112,6 +98,27 @@ VertxRoute 
cassandraCompactionStatsRoute(RouteBuilder.Factory factory,
         return factory.buildRouteWithHandler(compactionStatsHandler);
     }
 
+    @POST  // Note: POST, not PUT, since we're sending data in the body
+    @Path(ApiEndpointsV1.COMPACTION_STOP_ROUTE)
+    @Operation(summary = "Stop compaction operation",
+            description = "Stops a compaction operation on the Cassandra node")
+    @APIResponse(description = "Compaction stop operation completed",
+            responseCode = "200",
+            content = @Content(mediaType = "application/json",
+                    schema = @Schema(implementation = 
CompactionStopResponse.class)))
+    @APIResponse(responseCode = "500", description = "Internal server error")
+    @APIResponse(responseCode = "400", description = "Internal server error on 
getting the ring view")

Review Comment:
   Yes thanks for catching that. Changed to "Invalid request - malformed JSON 
body or invalid compaction parameters"



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to