why nifi is loosing flowfile content?












0















I am facing a very weird issue.



This error is coming randomly in "EvaluateJsonPath 1.6.0" processor. I have 3 instance of this processor in my workflow. Error randomly comes, its not coming at same place.



Sometime flow runs fine (very rarely). this error frequent enough, but location of error is random.



flow is like this => fire http url -> eval result Json -> get more URL -> call those http urls -> do eval -> wait -> merge all the result -> write to fs -> end



wait part of code waits for approx 30 min.



each relation has enough buffer (5 gb, 100000 ff). and I can see no back pressure.



system has enough memory remaining. also jvm is running with 28gb heap.



I am on v 1.6.0



What may be the reason? is some background process, cleaning up the file, before process is releasing it?



is it possible, I may have configured some optimization which is compelling nifi to clean content folder?
its not like, content folder is empty, it still has old files in it, so cant be that.



I am really confused.



I can see following stack trace



`



2018-11-14 12:04:04,120 ERROR [Timer-Driven Process Thread-2] o.a.n.p.standard.EvaluateJsonPath EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] failed to process session due to org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile; Processor Administratively Yielded for 1 sec: org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
at org.apache.nifi.controller.repository.StandardProcessSession.handleContentNotFound(StandardProcessSession.java:3104)
at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2228)
at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2175)
at org.apache.nifi.processors.standard.AbstractJsonPathProcessor.validateAndEstablishJsonContext(AbstractJsonPathProcessor.java:77)
at org.apache.nifi.processors.standard.EvaluateJsonPath.onTrigger(EvaluateJsonPath.java:271)
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1147)
at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:175)
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.nifi.controller.repository.ContentNotFoundException: Could not find content for StandardContentClaim [resourceClaim=StandardResourceClaim[id=1542197040430-4449, container=default, section=353], offset=844526, length=142607]
at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2167)
at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2192)
... 14 common frames omitted
Caused by: java.io.EOFException: null
at org.apache.nifi.stream.io.StreamUtils.skip(StreamUtils.java:242)
at org.apache.nifi.controller.repository.FileSystemRepository.read(FileSystemRepository.java:859)
at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2135)
... 15 common frames omitted


`










share|improve this question



























    0















    I am facing a very weird issue.



    This error is coming randomly in "EvaluateJsonPath 1.6.0" processor. I have 3 instance of this processor in my workflow. Error randomly comes, its not coming at same place.



    Sometime flow runs fine (very rarely). this error frequent enough, but location of error is random.



    flow is like this => fire http url -> eval result Json -> get more URL -> call those http urls -> do eval -> wait -> merge all the result -> write to fs -> end



    wait part of code waits for approx 30 min.



    each relation has enough buffer (5 gb, 100000 ff). and I can see no back pressure.



    system has enough memory remaining. also jvm is running with 28gb heap.



    I am on v 1.6.0



    What may be the reason? is some background process, cleaning up the file, before process is releasing it?



    is it possible, I may have configured some optimization which is compelling nifi to clean content folder?
    its not like, content folder is empty, it still has old files in it, so cant be that.



    I am really confused.



    I can see following stack trace



    `



    2018-11-14 12:04:04,120 ERROR [Timer-Driven Process Thread-2] o.a.n.p.standard.EvaluateJsonPath EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] failed to process session due to org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile; Processor Administratively Yielded for 1 sec: org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
    org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
    at org.apache.nifi.controller.repository.StandardProcessSession.handleContentNotFound(StandardProcessSession.java:3104)
    at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2228)
    at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2175)
    at org.apache.nifi.processors.standard.AbstractJsonPathProcessor.validateAndEstablishJsonContext(AbstractJsonPathProcessor.java:77)
    at org.apache.nifi.processors.standard.EvaluateJsonPath.onTrigger(EvaluateJsonPath.java:271)
    at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
    at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1147)
    at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:175)
    at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: org.apache.nifi.controller.repository.ContentNotFoundException: Could not find content for StandardContentClaim [resourceClaim=StandardResourceClaim[id=1542197040430-4449, container=default, section=353], offset=844526, length=142607]
    at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2167)
    at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2192)
    ... 14 common frames omitted
    Caused by: java.io.EOFException: null
    at org.apache.nifi.stream.io.StreamUtils.skip(StreamUtils.java:242)
    at org.apache.nifi.controller.repository.FileSystemRepository.read(FileSystemRepository.java:859)
    at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2135)
    ... 15 common frames omitted


    `










    share|improve this question

























      0












      0








      0








      I am facing a very weird issue.



      This error is coming randomly in "EvaluateJsonPath 1.6.0" processor. I have 3 instance of this processor in my workflow. Error randomly comes, its not coming at same place.



      Sometime flow runs fine (very rarely). this error frequent enough, but location of error is random.



      flow is like this => fire http url -> eval result Json -> get more URL -> call those http urls -> do eval -> wait -> merge all the result -> write to fs -> end



      wait part of code waits for approx 30 min.



      each relation has enough buffer (5 gb, 100000 ff). and I can see no back pressure.



      system has enough memory remaining. also jvm is running with 28gb heap.



      I am on v 1.6.0



      What may be the reason? is some background process, cleaning up the file, before process is releasing it?



      is it possible, I may have configured some optimization which is compelling nifi to clean content folder?
      its not like, content folder is empty, it still has old files in it, so cant be that.



      I am really confused.



      I can see following stack trace



      `



      2018-11-14 12:04:04,120 ERROR [Timer-Driven Process Thread-2] o.a.n.p.standard.EvaluateJsonPath EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] failed to process session due to org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile; Processor Administratively Yielded for 1 sec: org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
      org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
      at org.apache.nifi.controller.repository.StandardProcessSession.handleContentNotFound(StandardProcessSession.java:3104)
      at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2228)
      at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2175)
      at org.apache.nifi.processors.standard.AbstractJsonPathProcessor.validateAndEstablishJsonContext(AbstractJsonPathProcessor.java:77)
      at org.apache.nifi.processors.standard.EvaluateJsonPath.onTrigger(EvaluateJsonPath.java:271)
      at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
      at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1147)
      at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:175)
      at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.nifi.controller.repository.ContentNotFoundException: Could not find content for StandardContentClaim [resourceClaim=StandardResourceClaim[id=1542197040430-4449, container=default, section=353], offset=844526, length=142607]
      at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2167)
      at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2192)
      ... 14 common frames omitted
      Caused by: java.io.EOFException: null
      at org.apache.nifi.stream.io.StreamUtils.skip(StreamUtils.java:242)
      at org.apache.nifi.controller.repository.FileSystemRepository.read(FileSystemRepository.java:859)
      at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2135)
      ... 15 common frames omitted


      `










      share|improve this question














      I am facing a very weird issue.



      This error is coming randomly in "EvaluateJsonPath 1.6.0" processor. I have 3 instance of this processor in my workflow. Error randomly comes, its not coming at same place.



      Sometime flow runs fine (very rarely). this error frequent enough, but location of error is random.



      flow is like this => fire http url -> eval result Json -> get more URL -> call those http urls -> do eval -> wait -> merge all the result -> write to fs -> end



      wait part of code waits for approx 30 min.



      each relation has enough buffer (5 gb, 100000 ff). and I can see no back pressure.



      system has enough memory remaining. also jvm is running with 28gb heap.



      I am on v 1.6.0



      What may be the reason? is some background process, cleaning up the file, before process is releasing it?



      is it possible, I may have configured some optimization which is compelling nifi to clean content folder?
      its not like, content folder is empty, it still has old files in it, so cant be that.



      I am really confused.



      I can see following stack trace



      `



      2018-11-14 12:04:04,120 ERROR [Timer-Driven Process Thread-2] o.a.n.p.standard.EvaluateJsonPath EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] EvaluateJsonPath[id=d9d338ca-5396-3f8c-e134-753aacda1ca6] failed to process session due to org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile; Processor Administratively Yielded for 1 sec: org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
      org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile
      at org.apache.nifi.controller.repository.StandardProcessSession.handleContentNotFound(StandardProcessSession.java:3104)
      at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2228)
      at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2175)
      at org.apache.nifi.processors.standard.AbstractJsonPathProcessor.validateAndEstablishJsonContext(AbstractJsonPathProcessor.java:77)
      at org.apache.nifi.processors.standard.EvaluateJsonPath.onTrigger(EvaluateJsonPath.java:271)
      at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
      at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1147)
      at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:175)
      at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.nifi.controller.repository.ContentNotFoundException: Could not find content for StandardContentClaim [resourceClaim=StandardResourceClaim[id=1542197040430-4449, container=default, section=353], offset=844526, length=142607]
      at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2167)
      at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2192)
      ... 14 common frames omitted
      Caused by: java.io.EOFException: null
      at org.apache.nifi.stream.io.StreamUtils.skip(StreamUtils.java:242)
      at org.apache.nifi.controller.repository.FileSystemRepository.read(FileSystemRepository.java:859)
      at org.apache.nifi.controller.repository.StandardProcessSession.getInputStream(StandardProcessSession.java:2135)
      ... 15 common frames omitted


      `







      apache-nifi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 16:50









      Rakesh PrasadRakesh Prasad

      918




      918
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53305128%2fwhy-nifi-is-loosing-flowfile-content%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53305128%2fwhy-nifi-is-loosing-flowfile-content%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Xamarin.iOS Cant Deploy on Iphone

          Glorious Revolution

          Dulmage-Mendelsohn matrix decomposition in Python