You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2020/12/02 10:43:31 UTC

[GitHub] [bookkeeper] eolivelli opened a new issue #2505: NullPointerException during the stop of a BookKeeper with BookKeeper Stream Storage Server

eolivelli opened a new issue #2505:
URL: https://github.com/apache/bookkeeper/issues/2505


   **BUG REPORT**
   
   ***Describe the bug***
   
   When you stop a Bookie with the StreamStorage server enabled you can see a scary NullPointerException.
   
   We should avoid to throw the NPE, that is usually the symptom of a bug
   
   ***To Reproduce***
   
   Steps to reproduce the behavior:
   1. Start a bookie with `extraServerComponents=org.apache.bookkeeper.stream.server.StreamStorageLifecycleComponent`
   2. Shutdown the bookie
   
   You can see this error:
   
   ```
   2020-12-02 11:04:24,962 - ERROR - [component-shutdown-thread:ComponentStarter$ComponentShutdownHook@51] - Failed to close component bookie-server in shutdown hook gracefully, Exiting anyway
   java.lang.NullPointerException
   	at org.apache.bookkeeper.stream.server.service.RegistrationStateService.doClose(RegistrationStateService.java:107)
   	at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.close(AbstractLifecycleComponent.java:123)
   	at org.apache.bookkeeper.common.component.LifecycleComponentStack.lambda$close$6(LifecycleComponentStack.java:154)
   	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:405)
   	at org.apache.bookkeeper.common.component.LifecycleComponentStack.close(LifecycleComponentStack.java:154)
   	at org.apache.bookkeeper.stream.server.StreamStorageLifecycleComponent.doClose(StreamStorageLifecycleComponent.java:59)
   	at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.close(AbstractLifecycleComponent.java:123)
   	at org.apache.bookkeeper.common.component.LifecycleComponentStack.lambda$close$6(LifecycleComponentStack.java:154)
   	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:405)
   	at org.apache.bookkeeper.common.component.LifecycleComponentStack.close(LifecycleComponentStack.java:154)
   	at org.apache.bookkeeper.common.component.ComponentStarter$ComponentShutdownHook.run(ComponentStarter.java:47)
   	at java.base/java.lang.Thread.run(Thread.java:832)
   ```
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [bookkeeper] rudy2steiner commented on issue #2505: NullPointerException during the stop of a BookKeeper with BookKeeper Stream Storage Server

Posted by GitBox <gi...@apache.org>.
rudy2steiner commented on issue #2505:
URL: https://github.com/apache/bookkeeper/issues/2505#issuecomment-737665721


   I'll work on it


----------------------------------------------------------------
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:
users@infra.apache.org