Demogorgon314 commented on code in PR #23119: URL: https://github.com/apache/pulsar/pull/23119#discussion_r1702714440
########## pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java: ########## @@ -1763,6 +1764,9 @@ public void listen(StateChangeListener listener) { @Override public Set<Map.Entry<String, ServiceUnitStateData>> getOwnershipEntrySet() { + if (tableview == null) { Review Comment: It should be ok to return an empty set here, for `OwnershipListener`, after the tableview starts, it will notify the listener. -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org