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

BlockScanner is incorrectly disabled by default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0, 2.7.1, 3.0.0-alpha1
    • datanode
    • None
    • Reviewed

    Description

      This code is used to check whether the block scanner is enabled:

        public boolean isEnabled() {
          return (conf.scanPeriodMs) > 0 && (conf.targetBytesPerSec > 0);
        }
      

      Unfortunately, when this was introduced, we did not change the default scan period's value of 0, which means by default the BlockScanner is disabled.

      Attachments

        1. HDFS-8681.01.patch
          0.8 kB
          Arpit Agarwal
        2. HDFS-8681.02.patch
          4 kB
          Arpit Agarwal
        3. HDFS-8681.03.patch
          5 kB
          Arpit Agarwal
        4. HDFS-8681.04.patch
          6 kB
          Arpit Agarwal

        Issue Links

          Activity

            People

              arp Arpit Agarwal
              andrew.wang Andrew Wang
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: