Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-877

Client-driven block verification not functioning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.1, 0.21.0, 0.22.0
    • 0.21.0
    • hdfs-client, test
    • None
    • Reviewed

    Description

      This is actually the reason for HDFS-734 (TestDatanodeBlockScanner timing out). The issue is that DFSInputStream relies on readChunk being called one last time at the end of the file in order to receive the lastPacketInBlock=true packet from the DN. However, DFSInputStream.read checks pos < getFileLength() before issuing the read. Thus gotEOS never shifts to true and checksumOk() is never called.

      Attachments

        1. hdfs-877-branch20.txt
          10 kB
          Todd Lipcon
        2. hdfs-877.txt
          4 kB
          Todd Lipcon
        3. hdfs-877.txt
          5 kB
          Todd Lipcon
        4. hdfs-877.txt
          5 kB
          Todd Lipcon
        5. hdfs-877.txt
          15 kB
          Todd Lipcon
        6. hdfs-877.txt
          14 kB
          Todd Lipcon
        7. hdfs-877.txt
          14 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: