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

Solve DatanodeManager#getBlockRecoveryCommand() printing IOException

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When calling DatanodeManager#getBlockRecoveryCommand(), if an IOException occurs, there is no space when printing the BlockInfo information, which is not conducive to viewing the log.
      BlockUnderConstructionFeature uc = b.getUnderConstructionFeature();
      if(uc == null)

      { throw new IOException("Recovery block "+ b + "where it is not under construction."); }

      Attachments

        1. screenshot-1.png
          218 kB
          JiangHua Zhu

        Issue Links

          Activity

            People

              jianghuazhu JiangHua Zhu
              jianghuazhu JiangHua Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m