rdhabalia commented on a change in pull request #9240:
URL: https://github.com/apache/pulsar/pull/9240#discussion_r560645214
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java
##########
@@ -447,7 +448,7 @@ public boolean registerNamespace(String namespace, boolean
ensureOwned) throws P
private void searchForCandidateBroker(NamespaceBundle bundle,
CompletableFuture<Optional<LookupResult>> lookupFuture,
LookupOptions options) {
- if (null == pulsar.getLeaderElectionService() ||
!pulsar.getLeaderElectionService().isElected()) {
+ if (null == pulsar.getLeaderElectionService()) {
Review comment:
can we keep the check to allow lookup/assignment only if the leader is
elected to maintain consistency in case broker is partitioned or leader is not
elected yet?
----------------------------------------------------------------
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]