Skip to content

Commit

Permalink
Applying same fix as PR apache#6846
Browse files Browse the repository at this point in the history
  • Loading branch information
cdbartholomew committed Apr 29, 2020
1 parent 09f32d1 commit 570634a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1859,6 +1859,7 @@ public CompletableFuture<PartitionedTopicMetadata> fetchPartitionedTopicMetadata
// If topic is already exist, creating partitioned topic is not allowed.
if (metadata.partitions == 0
&& !topicExists
&& !topicName.isPartitioned()
&& pulsar.getConfiguration().isAllowAutoTopicCreation()
&& pulsar.getConfiguration().isDefaultTopicTypePartitioned()) {
return pulsar.getBrokerService().createDefaultPartitionedTopicAsync(topicName);
Expand Down

0 comments on commit 570634a

Please sign in to comment.