Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-877

Client-driven block verification not functioning

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.1, 0.21.0, 0.22.0
    • Fix Version/s: 0.21.0
    • Component/s: hdfs-client, test
    • Labels:
      None
    • Hadoop Flags:
      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.

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

        Issue Links

          Activity

            People

            • Assignee:
              Todd Lipcon
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development