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/10/28 11:41:17 UTC

[GitHub] [bookkeeper] eolivelli opened a new issue #2463: java.lang.NullPointerException with metadataServiceUri = zk:///ledgers (Default on Docker image)

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


   ***Describe the bug***
   if you configure a bad metadata service uri you can this error
   
   java.lang.NullPointerException
   	at org.apache.bookkeeper.meta.zk.ZKMetadataDriverBase.getZKServersFromServiceUri(ZKMetadataDriverBase.java:64)
   	at org.apache.bookkeeper.meta.zk.ZKMetadataDriverBase.initialize(ZKMetadataDriverBase.java:186)
   	at org.apache.bookkeeper.meta.zk.ZKMetadataBookieDriver.initialize(ZKMetadataBookieDriver.java:60)
   	at org.apache.bookkeeper.bookie.Bookie.instantiateMetadataDriver(Bookie.java:1080)
   	at org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:698)
   	at org.apache.bookkeeper.proto.BookieServer.newBookie(BookieServer.java:140)
   	at org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:108)
   	at org.apache.bookkeeper.server.service.BookieService.<init>(BookieService.java:52)
   	at org.apache.bookkeeper.server.Main.buildBookieServer(Main.java:313)
   	at org.apache.bookkeeper.server.Main.doMain(Main.java:226)
   	at org.apache.bookkeeper.server.Main.main(Main.java:208)
   ***To Reproduce***
   
   docker run apache/bookkeeper:4.11.1
   
   ***Expected behavior***
   
   A clearer error message like 'Invalid metadata service URI"
   


----------------------------------------------------------------
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] nicoloboschi commented on issue #2463: java.lang.NullPointerException with metadataServiceUri = zk:///ledgers (Default on Docker image)

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


   @eolivelli maybe we should change default zkServer param? I'd like ready-to-run solution, like 'localhost'? I don't really know BK docker container use cases
   
   Otherwise we may add some useful logs when the container starts, explaining where to set zkserver parameter
   


----------------------------------------------------------------
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] Ghatage closed issue #2463: java.lang.NullPointerException with metadataServiceUri = zk:///ledgers (Default on Docker image)

Posted by GitBox <gi...@apache.org>.
Ghatage closed issue #2463:
URL: https://github.com/apache/bookkeeper/issues/2463


   


----------------------------------------------------------------
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] eolivelli commented on issue #2463: java.lang.NullPointerException with metadataServiceUri = zk:///ledgers (Default on Docker image)

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


   @nicoloboschi PTAL


----------------------------------------------------------------
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] nicoloboschi commented on issue #2463: java.lang.NullPointerException with metadataServiceUri = zk:///ledgers (Default on Docker image)

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


   I can take care of 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



[GitHub] [bookkeeper] eolivelli commented on issue #2463: java.lang.NullPointerException with metadataServiceUri = zk:///ledgers (Default on Docker image)

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


   The problem is not about docker. The problem us the NPE.
   We should report a better error.
   
   No one will ever run the docker image without ZK


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