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

PostHTTP and ListenHTTP never shutdown LeakyBucketStreamThrottler thread

    XMLWordPrintableJSON

Details

    Description

      LeakyBucketStreamThrottler implements close and inside it it shutdowns executorService.

      However, ListenHTTP and PostHTTP doesn't call close, and since those processors create new LeakyBucketStreamThrottler instance when it is scheduled, it creates new thread without closing the old ones.

      It can be reproduced by repeating stop and start those processors again and again. You can confirm the number of threads are increasing by following command:

      $ watch "ps -M |grep {nifi pid} | wc -l"
      

      or using thread dump

      $ tail -f logs/nifi-bootstrap.log |grep LeakyBucketStreamThrottler.java
      from another terminal
      $ kill -3 {nifi pid}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ijokarumawak Koji Kawamura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: