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

FileSystemRepository saturates CPU when archive directories are empty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.3.0
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      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

            • Assignee:
              ozhurakousky Oleg Zhurakousky
              Reporter:
              ozhurakousky Oleg Zhurakousky
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: