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

Lazy calculate live datanodes in safe mode tip

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Safe mode tip is printed every 20 seconds.

      This change is to calculate live datanodes until reported block threshold is meet.
      Old 

      STATE* Safe mode ON. The reported blocks 111054015 needs additional 27902753 blocks to reach the threshold 0.9990 of total blocks 139095856. The number of live datanodes 2531 has reached the minimum number 1. Safe mode will be turned off automatically once the thresholds have been reached.

      New 

      STATE* Safe mode ON. 
      The reported blocks 134851250 needs additional 3218494 blocks to reach the threshold 0.9990 of total blocks 138207947.
      The number of live datanodes is not calculated since reported blocks hasn't reached the threshold. Safe mode will be turned off automatically once the thresholds have been reached.

       

      Attachments

        Issue Links

          Activity

            People

              NickyYe Ye Ni
              NickyYe Ye Ni
              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 - 1.5h
                  1.5h