zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johan Forssell (Jira)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-4238) NullPointerException in ContainerManager is still a thing
Date Fri, 07 May 2021 09:55:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340707#comment-17340707
] 

Johan Forssell commented on ZOOKEEPER-4238:
-------------------------------------------

Using  `bitnami/zookeeper:latest` instead of `zookeeper:latest` solved this issue

> NullPointerException in ContainerManager is still a thing
> ---------------------------------------------------------
>
>                 Key: ZOOKEEPER-4238
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4238
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.5.9, 3.6.2
>         Environment: - Macbook Pro M1 2020
> - [Docker Desktop preview 3.1.0|https://docs.docker.com/docker-for-mac/apple-m1/] (2021-02-11)
> - Docker image *zookeeper:3.6.2* (LATEST) on *OS/ARCH: linux/arm64/v8*
> I'm starting the instance with 
> {{> docker-compose up zookeeper}}
> {noformat}
> version: '3.5'
> services:
>   zookeeper:
>     image: zookeeper
>     container_name: COMPANY-zookeeper
>     restart: unless-stopped
>     hostname: zookeeper
>     ports:
>       - "2181:2181"
>     environment:
>       ZOO_PORT: 2181
>       ZOO_SERVERS: server.1=zookeeper:2888:3888
>     volumes:
>       - ../.env/zookeeper_data:/var/lib/zookeeper/data
>       - ../.env/zookeeper_txn_logs:/var/lib/zookeeper/log
>     networks:
>       - COMPANY
> {noformat}
>            Reporter: Johan Forssell
>            Priority: Blocker
>         Attachments: excerpt-from-log.txt
>
>
> I'm running Zookeeper from the latest docker image. Also tried 3.5.9.
> After 1 minute I´m getting the same error as in ZOOKEEPER-2464: NPE in {{ContainerManager.getCandidates(ContainerManager.java:161)}}
> {noformat}
> ...
> COMPANY-zookeeper | 2021-03-09 07:57:21,320 [myid:1] - INFO  [main:Server@399] - Started
@445ms
> COMPANY-zookeeper | 2021-03-09 07:57:21,320 [myid:1] - INFO  [main:JettyAdminServer@182]
- Started AdminServer on address 0.0.0.0, port 8080 and command URL /commands
> COMPANY-zookeeper | 2021-03-09 07:57:21,321 [myid:1] - INFO  [main:ContainerManager@83]
- Using checkIntervalMs=60000 maxPerMinute=10000 maxNeverUsedIntervalMs=0
> COMPANY-zookeeper | 2021-03-09 07:57:21,322 [myid:1] - INFO  [main:ZKAuditProvider@42]
- ZooKeeper audit is disabled.
> COMPANY-zookeeper | 2021-03-09 07:58:21,331 [myid:1] - ERROR [ContainerManagerTask:ContainerManager$1@102]
- Error checking containers
> COMPANY-zookeeper | java.lang.NullPointerException
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager.getCandidates(ContainerManager.java:161)
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager.checkContainers(ContainerManager.java:128)
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager$1.run(ContainerManager.java:96)
> COMPANY-zookeeper | 	at java.base/java.util.TimerThread.mainLoop(Unknown Source)
> COMPANY-zookeeper | 	at java.base/java.util.TimerThread.run(Unknown Source)
> COMPANY-zookeeper | 2021-03-09 07:59:21,326 [myid:1] - ERROR [ContainerManagerTask:ContainerManager$1@102]
- Error checking containers
> COMPANY-zookeeper | java.lang.NullPointerException
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager.getCandidates(ContainerManager.java:161)
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager.checkContainers(ContainerManager.java:128)
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager$1.run(ContainerManager.java:96)
> COMPANY-zookeeper | 	at java.base/java.util.TimerThread.mainLoop(Unknown Source)
> COMPANY-zookeeper | 	at java.base/java.util.TimerThread.run(Unknown Source)
> COMPANY-zookeeper | 2021-03-09 08:00:21,325 [myid:1] - ERROR [ContainerManagerTask:ContainerManager$1@102]
- Error checking containers
> COMPANY-zookeeper | java.lang.NullPointerException
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager.getCandidates(ContainerManager.java:161)
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager.checkContainers(ContainerManager.java:128)
> COMPANY-zookeeper | 	at org.apache.zookeeper.server.ContainerManager$1.run(ContainerManager.java:96)
> COMPANY-zookeeper | 	at java.base/java.util.TimerThread.mainLoop(Unknown Source)
> COMPANY-zookeeper | 	at java.base/java.util.TimerThread.run(Unknown Source)
> COMPANY-zookeeper | 2021-03-09 08:01:21,322 [myid:1] - ERROR [ContainerManagerTask:ContainerManager$1@102]
- Error checking containers
> ...
> {noformat}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message