rdhabalia commented on a change in pull request #4471: [pulsar-broker] add
cli/admin api to delete bookie-affinity group
URL: https://github.com/apache/pulsar/pull/4471#discussion_r293492533
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v1/Namespaces.java
##########
@@ -575,7 +575,19 @@ public BookieAffinityGroupData
getBookieAffinityGroup(@PathParam("property") Str
validateNamespaceName(property, cluster, namespace);
return internalGetBookieAffinityGroup();
}
-
+
+ @DELETE
+ @Path("/{property}/{cluster}/{namespace}/persistence/bookieAffinity")
+ @ApiOperation(hidden = true, value = "Delete the bookie-affinity-group
from namespace-local policy.")
+ @ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have
admin permission"),
+ @ApiResponse(code = 404, message = "Namespace does not exist"),
+ @ApiResponse(code = 409, message = "Concurrent modification") })
Review comment:
yes, it seems correct to me.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services