Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1200

FileSystemRepository saturates CPU when archive directories are empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.3.0
    • 0.5.0
    • None
    • None

    Description

      Was reported in the dev thread by adamonduty@gmail.com
      The piece of code responsible is

      for (int i = 0; i < SECTIONS_PER_CONTAINER; i++) {
      . . .
         if (!Files.exists(archive)) {
              continue;
         }
      . . . 
      }
      

      . . where continue happens without any delay.
      It was also confirmed by Adam that small Thread.slleep(..) takes care of the problem. What puzzles me is that the loop itself has a finite end so, need to look how the parent operation is invoked.

      Attachments

        Activity

          People

            ozhurakousky Oleg Zhurakousky
            ozhurakousky Oleg Zhurakousky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: