rpuch commented on code in PR #4448:
URL: https://github.com/apache/ignite-3/pull/4448#discussion_r1775333125
##########
modules/rest-api/src/main/java/org/apache/ignite/internal/rest/api/recovery/system/SystemDisasterRecoveryApi.java:
##########
@@ -51,6 +51,20 @@ public interface SystemDisasterRecoveryApi {
@ApiResponse(responseCode = "400", description = "Bad request.",
content = @Content(mediaType = MediaType.PROBLEM_JSON, schema =
@Schema(implementation = Problem.class)))
@Consumes(MediaType.APPLICATION_JSON)
- @Produces(MediaType.PROBLEM_JSON)
+ @Produces({MediaType.APPLICATION_JSON, MediaType.PROBLEM_JSON})
CompletableFuture<Void> reset(@Body ResetClusterRequest command);
+
+ @Post("migrate")
+ @Operation(
+ operationId = "migrate",
+ description = "Migrates nodes from old cluster to new (repaired)
cluster."
+ )
+ @ApiResponse(responseCode = "200", description = "Migration initiated.")
+ @ApiResponse(responseCode = "500", description = "Internal error.",
Review Comment:
Added a ticket https://issues.apache.org/jira/browse/IGNITE-23274 and TODOs
--
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]