Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7285 Erasure Coding Support inside HDFS
  3. HDFS-8378

Erasure Coding: Few improvements for the erasure coding worker

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • HDFS-7285
    • None
    • None
    • Reviewed

    Description

      1. Following log is confusing, make it tidy. Its missing break; statement and causing this unwanted logs.
        2015-05-10 15:06:45,878 INFO  datanode.DataNode (BPOfferService.java:processCommandFromActive(728)) - DatanodeCommand action: DNA_ERASURE_CODING_RECOVERY
        2015-05-10 15:06:45,879 WARN  datanode.DataNode (BPOfferService.java:processCommandFromActive(732)) - Unknown DatanodeCommand action: 11
        
      2. Add exception trace to the log, would improve debuggability
        } catch (Throwable e) {
           LOG.warn("Failed to recover striped block: " + blockGroup);
        }
        
      3. Make member variables present in ErasureCodingWorker, ReconstructAndTransferBlock, StripedReader private final
      4. Correct spelling of the variable STRIPED_READ_TRHEAD_POOL to STRIPED_READ_THREAD_POOL
      5. Good to add debug logs to print the striped read pool size
        LOG.debug("Using striped reads; pool threads=" + num);
        
      6. Add meaningful message to the precondition check:
        Preconditions.checkArgument(liveIndices.length == sources.length);
        
      7. Remove unused import
        import org.apache.hadoop.hdfs.server.common.HdfsServerConstants;
        

      Attachments

        1. HDFS-8378-HDFS-7285.00.patch
          8 kB
          Rakesh Radhakrishnan

        Activity

          People

            rakeshr Rakesh Radhakrishnan
            rakeshr Rakesh Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: