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

NullPointerException in SnapshotFormatter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.5
    • Fix Version/s: 3.4.6, 3.5.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windos, Java 1.7

    • Hadoop Flags:
      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. snapshot.273
          55 kB
          Germán Blanco
        3. ZOOKEEPER-1770.patch
          2 kB
          Germán Blanco

          Activity

            People

            • Assignee:
              abranzyck Germán Blanco
              Reporter:
              abranzyck Germán Blanco
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: