liangyepianzhou commented on a change in pull request #11333:
URL: https://github.com/apache/pulsar/pull/11333#discussion_r671023851
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentSubscription.java
##########
@@ -394,8 +416,16 @@ public void acknowledgeMessage(List<Position> positions,
AckType ackType, Map<St
}
}
}
-
+ TopicName topicName1 = TopicName.get(getTopicName());
+ Optional<Policies> policies = null;
+ try {
+ policies =
topic.getBrokerService().pulsar().getConfigurationCache().policiesCache()
+ .get(AdminResource.path(POLICIES,
topicName1.getNamespaceObject().toString()));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
Review comment:
There are one or two places used in a class, and there is no meeting
point in itself.Is it necessary to abstract it into a method?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]