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

DirectoryScanner shouldn't abort the scan if one directory had an error

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha1, 2.8.2
    • Component/s: datanode
    • Labels:
      None

      Description

      If there is an exception while preparing the ScanInfo for the blocks in the directory, DirectoryScanner is immediately throwing exception and coming out of the current scan cycle. The idea of this jira is to discuss & improve the exception handling mechanism.

      DirectoryScanner.java

          for (Entry<Integer, Future<ScanInfoPerBlockPool>> report :
              compilersInProgress.entrySet()) {
            try {
              dirReports[report.getKey()] = report.getValue().get();
            } catch (Exception ex) {
              LOG.error("Error compiling report", ex);
              // Propagate ex to DataBlockScanner to deal with
              throw new RuntimeException(ex);
            }
      

        Attachments

        1. HDFS-7764.patch
          2 kB
          Rakesh R
        2. HDFS-7764-01.patch
          7 kB
          Rakesh R
        3. HDFS-7764-02.patch
          9 kB
          Rakesh R
        4. HDFS-7764-03.patch
          9 kB
          Rakesh R
        5. HDFS-7764-04.patch
          10 kB
          Rakesh R

          Activity

            People

            • Assignee:
              rakeshr Rakesh R
              Reporter:
              rakeshr Rakesh R
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: