tuteng commented on a change in pull request #8472:
URL: https://github.com/apache/pulsar/pull/8472#discussion_r520294759
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/ClustersBase.java
##########
@@ -595,6 +595,9 @@ public NamespaceIsolationData getNamespaceIsolationPolicy(
brokerIsolationData.namespaceRegex =
Lists.newArrayList();
}
brokerIsolationData.namespaceRegex.addAll(policyData.namespaces);
+ if (nsPolicyImpl.isPrimaryBroker(broker)) {
+ brokerIsolationData.isPrimary = true;
+ }
Review comment:
do we need to add a field `isSecondary` to this entity? @jiazhai The
`isPrimary` field also seems to be newly added
----------------------------------------------------------------
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]