codelipenghui commented on a change in pull request #9116:
URL: https://github.com/apache/pulsar/pull/9116#discussion_r551626342
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
##########
@@ -1597,12 +1597,12 @@ public void checkTopicNsOwnership(final String topic)
throws BrokerServiceExcept
}
public void cleanUnloadedTopicFromCache(NamespaceBundle serviceUnit) {
- topics.forEach((name, topicFuture) -> {
- TopicName topicName = TopicName.get(name);
+ for (String topic : topics.keys()) {
Review comment:
It returns a copy
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]