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

Error in deleting blocks should not do check disk, for all types of errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 2.0.3-alpha
    • Fix Version/s: 1.2.0, 0.23.7, 2.1.0-beta
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The following code in Datanode.java

            try {
              if (blockScanner != null) {
                blockScanner.deleteBlocks(toDelete);
              }
              data.invalidate(toDelete);
            } catch(IOException e) {
              checkDiskError();
              throw e;
            }
      

      causes check disk to happen in case of any errors during invalidate.

      We have seen errors like :

      2013-03-02 00:08:28,849 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Unexpected error trying to delete block blk_-2973118207682441648_225738165. BlockInfo not found in volumeMap.

      And all such errors trigger check disk, making the clients timeout.

        Attachments

        1. HDFS-4544.trunk.1.patch
          0.9 kB
          Arpit Agarwal
        2. HDFS-4544.patch
          0.5 kB
          Arpit Agarwal
        3. HDFS-4544.branch-1.1.patch
          0.6 kB
          Arpit Agarwal

          Issue Links

            Activity

              People

              • Assignee:
                arpitagarwal Arpit Agarwal
                Reporter:
                amareshwari Amareshwari Sriramadasu
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: