315157973 commented on code in PR #20537:
URL: https://github.com/apache/pulsar/pull/20537#discussion_r1228876830
##########
pulsar-broker/src/main/java/org/apache/pulsar/common/naming/NamespaceBundles.java:
##########
@@ -66,7 +66,7 @@ public NamespaceBundles(NamespaceName nsname,
NamespaceBundleFactory factory,
this.factory = Objects.requireNonNull(factory);
this.localPolicies = localPolicies;
checkArgument(partitions.length > 0, "Can't create bundles w/o
partition boundaries");
-
+ this.topicBundleAssignmentStrategy =
TopicBundleAssignmentFactory.create(factory.getPulsar());
Review Comment:
Good catch. We can create the strategy as a singleton field in
`TopicBundleAssignmentFactory` .
In `NamespaceBundles`, only get the reference
--
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]