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

NullPointerException in SnapshotFormatter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.5
    • 3.4.6, 3.5.0
    • None
    • None
    • Windos, Java 1.7

    • Reviewed

    Description

      SnapshotFormatter fails with a NullPointerException when parsing one snapshot (with "null" data in one Znode):
      Exception in thread "main" java.lang.NullPointerException
      at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:90)
      at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:95)
      at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:95)
      at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:95)
      at org.apache.zookeeper.server.SnapshotFormatter.printZnodeDetails(SnapshotFormatter.java:79)
      at org.apache.zookeeper.server.SnapshotFormatter.printDetails(SnapshotFormatter.java:71)
      at org.apache.zookeeper.server.SnapshotFormatter.run(SnapshotFormatter.java:67)
      at org.apache.zookeeper.server.SnapshotFormatter.main(SnapshotFormatter.java:51)

      Attachments

        1. ZOOKEEPER-1770.patch
          0.8 kB
          Germán Blanco
        2. ZOOKEEPER-1770.patch
          2 kB
          Germán Blanco
        3. snapshot.273
          55 kB
          Germán Blanco

        Activity

          People

            abranzyck Germán Blanco
            abranzyck Germán Blanco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: