Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7147

DirectoryDeletingService interval unit mismatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None

    Description

      DirectoryDeletingService is supposed to run every 60s by default for FSO buckets. Due to a wrong conversion, Instead of 60s it runs every 60000s~=16hours.

      if (dirDeletingService == null) {
            long dirDeleteInterval = configuration.getTimeDuration(
                OZONE_DIR_DELETING_SERVICE_INTERVAL,
                OZONE_DIR_DELETING_SERVICE_INTERVAL_DEFAULT,
                TimeUnit.MILLISECONDS); ---> 60s converted to 60000
            long serviceTimeout = configuration.getTimeDuration(
                OZONE_BLOCK_DELETING_SERVICE_TIMEOUT,
                OZONE_BLOCK_DELETING_SERVICE_TIMEOUT_DEFAULT,
                TimeUnit.MILLISECONDS);
            dirDeletingService = new DirectoryDeletingService(dirDeleteInterval,
                TimeUnit.SECONDS, serviceTimeout, ozoneManager, configuration); ---> which is passed to the service in seconds.
            dirDeletingService.start();
          }
      

      Attachments

        Issue Links

          Activity

            People

              aswinshakil Aswin Shakil
              aswinshakil Aswin Shakil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: