Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1162 Data Scrubbing for Ozone Containers
  3. HDDS-2238

Container Data Scrubber spams log in empty cluster

    XMLWordPrintableJSON

Details

    Description

      In an empty cluster (without closed containers) logs are filled with messages from completed data scrubber iterations (~3600 per second for me), if Container Scanner is enabled (hdds.containerscrub.enabled=true), eg.:

      datanode_1  | 2019-10-03 15:43:57 INFO  ContainerDataScanner:114 - Completed an iteration of container data scrubber in 0 minutes. Number of  iterations (since the data-node restart) : 6763, Number of containers scanned in this iteration : 0, Number of unhealthy containers found in this iteration : 0
      

      Also CPU usage is quite high.

      I think:

      1. there should be a small sleep between iterations
      2. it should log only if any containers were scanned

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              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 - 2h
                  2h