diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java index 9e2d4723aa7d2..dfd1d4eaa0b8d 100644 --- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java +++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java @@ -1897,7 +1897,7 @@ protected void internalSkipAllMessages(AsyncResponse asyncResponse, String subNa .thenCompose(__ -> { // If the topic name is a partition name, no need to get partition topic metadata again if (topicName.isPartitioned()) { - return internalSkipAllMessagesForNonPartitionedTopicAsync(asyncResponse, subName, authoritative); + return internalSkipAllMessagesForNonPartitionedTopicAsync(asyncResponse, subName); } else { return getPartitionedTopicMetadataAsync(topicName, authoritative, false).thenCompose(partitionMetadata -> { @@ -1938,8 +1938,7 @@ protected void internalSkipAllMessages(AsyncResponse asyncResponse, String subNa return null; }); } else { - return internalSkipAllMessagesForNonPartitionedTopicAsync(asyncResponse, subName, - authoritative); + return internalSkipAllMessagesForNonPartitionedTopicAsync(asyncResponse, subName); } }); } @@ -1955,8 +1954,7 @@ protected void internalSkipAllMessages(AsyncResponse asyncResponse, String subNa } private CompletableFuture internalSkipAllMessagesForNonPartitionedTopicAsync(AsyncResponse asyncResponse, - String subName, - boolean authoritative) { + String subName) { return getTopicReferenceAsync(topicName).thenCompose(t -> { PersistentTopic topic = (PersistentTopic) t; BiConsumer biConsumer = (v, ex) -> {