nodece commented on PR #24427:
URL: https://github.com/apache/pulsar/pull/24427#issuecomment-3303296245

   @lhotari This PR fixes `NullPointerException`:
   ```
   java.lang.NullPointerException: Cannot invoke 
"java.util.concurrent.atomic.AtomicInteger.incrementAndGet()" because the 
return value of "java.util.Map.get(Object)" is null
   
     at 
org.apache.pulsar.broker.service.SystemTopicBasedTopicPoliciesService.addOwnedNamespaceBundleAsync(SystemTopicBasedTopicPoliciesService.java:405)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at 
org.apache.pulsar.broker.service.SystemTopicBasedTopicPoliciesService$2.onLoad(SystemTopicBasedTopicPoliciesService.java:509)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at 
org.apache.pulsar.broker.namespace.NamespaceService.notifyNamespaceBundleOwnershipListener(NamespaceService.java:1322)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at 
org.apache.pulsar.broker.namespace.NamespaceService.onNamespaceBundleOwned(NamespaceService.java:1285)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at 
org.apache.pulsar.broker.namespace.OwnershipCache.lambda$tryAcquiringOwnership$3(OwnershipCache.java:218)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at 
java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) 
~[?:?]
   
     at 
java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662)
 ~[?:?]
   
     at 
java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2168) 
~[?:?]
   
     at 
org.apache.pulsar.broker.namespace.OwnershipCache.tryAcquiringOwnership(OwnershipCache.java:216)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at 
org.apache.pulsar.broker.namespace.NamespaceService.searchForCandidateBroker(NamespaceService.java:631)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at 
org.apache.pulsar.broker.namespace.NamespaceService.lambda$findBrokerServiceUrl$10(NamespaceService.java:466)
 ~[pulsar-broker.jar:3.0.14-SNAPSHOT]
   
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 
~[?:?]
   
     at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
   
     at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
 ~[?:?]
   
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 
~[?:?]
   
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 
~[?:?]
   
     at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 ~[netty-common-4.1.124.Final.jar:4.1.124.Final]
   
     at java.lang.Thread.run(Thread.java:840) ~[?:?]
   ```
   
   Do you consider fixing this on the branch-3.0?


-- 
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

Reply via email to