Skip to content

Commit

Permalink
[fix][broker] Fix race condition while updating partition number (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao authored Jan 12, 2023
1 parent a93f30f commit 4d57828
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4446,7 +4446,7 @@ private CompletableFuture<Void> createSubscriptions(TopicName topicName, int exp
final String topicNamePartition = topicName.getPartition(i).toString();
CompletableFuture<Void> future = new CompletableFuture<>();
admin.topics().createSubscriptionAsync(topicNamePartition,
subscription, MessageId.latest, replicated).whenComplete((__, ex) -> {
subscription, MessageId.earliest, replicated).whenComplete((__, ex) -> {
if (ex == null) {
future.complete(null);
} else {
Expand Down

0 comments on commit 4d57828

Please sign in to comment.