codelipenghui commented on code in PR #15296:
URL: https://github.com/apache/pulsar/pull/15296#discussion_r857208417
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v3/Transactions.java:
##########
@@ -314,4 +315,17 @@ public void getPendingAckInternalStats(@Suspended final
AsyncResponse asyncRespo
resumeAsyncResponseExceptionally(asyncResponse, ex);
}
}
+
+ @POST
+ @Path("/transactionCoordinator/partitions")
+ @ApiResponses(value = {
+ @ApiResponse(code = 503, message = "This Broker is not configured "
+ + "with transactionCoordinatorEnabled=true."),
+ @ApiResponse(code = 406, message = "The number of partitions
should be more than "
+ + "the current number of transaction coordinator
partitions"
+ + " and less than or equal to
maxNumPartitionsPerPartitionedTopic")})
+ public void updateTransactionCoordinatorNumber(int numPartitions) {
Review Comment:
It's better to use `scaleTransactionCoordinators(int replicas)`, it's a more
user-facing name, and currently, we can only support scale-up.
--
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]