You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/04/19 18:43:37 UTC

[GitHub] sijie opened a new issue #1618: NPE at topic termination when there is no consumers connected

sijie opened a new issue #1618: NPE at topic termination when there is no consumers connected
URL: https://github.com/apache/incubator-pulsar/issues/1618
 
 
   #### Expected behavior
   
   topic termination should work no matter if there are consumers connected or not.
   
   #### Actual behavior
   
   topic termination would fail if there are not consumers connected.
   
   ```
   Apr 19 17:30:15 localhost broker[14076]: 2018-04-19 17:30:15,814 - ERROR - [pulsar-web-61-30:PersistentTopics@1311] - [null] Failed to terminated topic persistent://x/y/z
   Apr 19 17:30:15 localhost broker[14076]: java.lang.NullPointerException
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.pulsar.broker.service.persistent.PersistentSubscription.topicTerminated(PersistentSubscription.java:672)
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.pulsar.broker.service.persistent.PersistentTopic$8.lambda$0(PersistentTopic.java:1444)
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap$Section.forEach(ConcurrentOpenHashMap.java:386)
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap.forEach(ConcurrentOpenHashMap.java:160)
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.pulsar.broker.service.persistent.PersistentTopic$8.terminateComplete(PersistentTopic.java:1444)
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl.asyncTerminate(ManagedLedgerImpl.java:895)
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.pulsar.broker.service.persistent.PersistentTopic.terminate(PersistentTopic.java:1440)
   Apr 19 17:30:15 localhost broker[14076]: #011at org.apache.pulsar.broker.admin.PersistentTopics.terminate(PersistentTopics.java:1309)
   Apr 19 17:30:15 localhost broker[14076]: #011at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
   Apr 19 17:30:15 localhost broker[14076]: #011at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   ```
   
   #### Steps to reproduce
   
   - create a topic
   - produce messages
   - terminate the topic
   
   #### System configuration
   **Pulsar version**: 1.22.0
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services