Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4239

NullPointerException in ContainerManager is still a thing

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 3.5.9, 3.6.2
    • None
    • license
    • None

    Description

      I'm still getting a NPE in ContainerManager, as descripbed in ZOOKEEPER-2464.

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

      Attachments

        1. excerpt-from-log.txt
          3 kB
          Johan Forssell

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            johanforssell Johan Forssell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: