Skip to content

Commit

Permalink
Rebase into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed Jun 15, 2023
1 parent b92a984 commit d7894f4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ public CompletableFuture<Map<TopicPartition, ProduceResponse.PartitionResponse>>
Errors.forException(new InvalidTopicException(
String.format("Cannot append to internal topic %s", topicPartition.topic())))));
} else {
PartitionLog partitionLog =
getPartitionLog(topicPartition, namespacePrefix);
PartitionLog partitionLog = getPartitionLog(topicPartition, namespacePrefix);
if (requiredAcks == 0) {
partitionLog.appendRecords(memoryRecords, origin, appendRecordsContext);
return;
}
partitionLog.appendRecords(memoryRecords, origin, appendRecordsContext)
.thenAccept(offset -> addPartitionResponse.accept(topicPartition,
new ProduceResponse.PartitionResponse(Errors.NONE, offset, -1L, -1L)))
Expand Down

0 comments on commit d7894f4

Please sign in to comment.