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

isvalidsnapshot should handle the case of 0 snapshot files better.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      the isvalidsnapshot will fail with negative seek if 0 snapshot files exist. We should just return false in case the size of the snapshot is less than 5 bytes.

        Attachments

        1. ZOOKEEPER-250.patch
          2 kB
          Mahadev Konar
        2. ZOOKEEPER-250.patch
          7 kB
          Mahadev Konar

          Activity

            People

            • Assignee:
              mahadev Mahadev Konar
              Reporter:
              mahadev Mahadev Konar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: