Technoboy- commented on PR #20613:
URL: https://github.com/apache/pulsar/pull/20613#issuecomment-1607329276
> > I think we need to process like this :
> > ```
> > policiesCache.forEach(((topicName, topicPolicies) -> {
> > if (listeners.get(topicName) != null) {
> > for (TopicPolicyListener<TopicPolicies> listener
: listeners.get(topicName)) {
> > try {
> > listener.onUpdate(topicPolicies);
> > } catch (Throwable error) {
> > log.error("[{}] call listener error.",
topicName, error);
> > }
> > }
> > }
> > }));
> > ```
>
> why?
If the listener has an error, the reader cannot be closed here, because the
reader is at the namespace level. Nor can other listeners not receive
notifications because of a problem with one topic listener. So, only log output
can be printed here
--
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]