Skip to content

Commit

Permalink
fix minor issue when cleaning up subscriptions for functions (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrypeng authored and merlimat committed Jun 4, 2019
1 parent 4db4d53 commit ec8961f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public void accept(Map.Entry<String, Function.ConsumerSpec> stringConsumerSpecEn
List<Map<String, String>> existingConsumers = Collections.emptyList();
try {
TopicStats stats = pulsarAdmin.topics().getStats(topic);
SubscriptionStats sub = stats.subscriptions.get(InstanceUtils.getDefaultSubscriptionName(details));
SubscriptionStats sub = stats.subscriptions.get(subscriptionName);
if (sub != null) {
existingConsumers = sub.consumers.stream()
.map(consumerStats -> consumerStats.metadata)
Expand Down

0 comments on commit ec8961f

Please sign in to comment.