Hadoop Common
  1. Hadoop Common
  2. HADOOP-3033

Datanode fails write to DFS file with exception message "Trying to change block file offset"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.16.1
    • Fix Version/s: 0.16.2
    • Component/s: None
    • Labels:
      None

      Description

      A write to a DFS block failed with the lastdatanode in the pipeline reporting this error:

      Receiving block blk_-7279084187433655573 src: /xx.xx.xx.xx:xx dest: /xx.xx.xx.xx:50010
      Changing block file offset of block blk_-7279084187433655573 from 9043968 to 9043968 meta file offset to 70663
      Changing block file offset of block blk_-7279084187433655573 from 111935488 to 112001024 meta file offset to 875015
      Exception in receiveBlock for block blk_-7279084187433655573 java.io.IOException: Trying to change block file offset of block blk_-7279084187433655573 to 112001024 but actual size of file is 111935488
      PacketResponder 0 for block blk_-7279084187433655573 Interrupted.
      PacketResponder 0 for block blk_-7279084187433655573 terminating
      writeBlock blk_-7279084187433655573 received exception java.io.IOException: Trying to change block file offset of block blk_-7279084187433655573 to 112001024 but actual size of file is 111935488
      DataXceiver: java.io.IOException: Trying to change block file offset of block blk_-7279084187433655573 to 112001024 but actual size of file is 111935488

      1. badnode2.patch
        5 kB
        dhruba borthakur
      2. badnode.patch
        2 kB
        dhruba borthakur

        Issue Links

          Activity

          Owen O'Malley made changes -
          Component/s dfs [ 12310710 ]
          Nigel Daley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Runping Qi made changes -
          Link This issue relates to HADOOP-3132 [ HADOOP-3132 ]
          dhruba borthakur made changes -
          Fix Version/s 0.16.2 [ 12313051 ]
          Resolution Fixed [ 1 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          dhruba borthakur made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          dhruba borthakur made changes -
          Attachment badnode2.patch [ 12378104 ]
          dhruba borthakur made changes -
          Field Original Value New Value
          Attachment badnode.patch [ 12378069 ]
          dhruba borthakur created issue -

            People

            • Assignee:
              dhruba borthakur
              Reporter:
              dhruba borthakur
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development