sklaha commented on code in PR #258:
URL: https://github.com/apache/cassandra-sidecar/pull/258#discussion_r2371222214
##########
server/src/main/java/org/apache/cassandra/sidecar/modules/CassandraOperationsModule.java:
##########
@@ -156,6 +157,22 @@ VertxRoute
cassandraNodeDecommissionRoute(RouteBuilder.Factory factory,
return factory.buildRouteWithHandler(nodeDecommissionHandler);
}
+ @PUT
+ @Path(ApiEndpointsV1.NODE_DRAIN_ROUTE)
+ @Operation(summary = "Drain node",
+ description = "Drains the Cassandra node by flushing memtables
and stopping writes")
+ @APIResponse(description = "Node drain operation initiated successfully",
+ responseCode = "200",
Review Comment:
Yes, I added both of the statuses.
--
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]