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

ConsumeKafka_0_11 topic name variable is not evaluated correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 1.5.0
    • None
    • None
    • None
    • RHEL 7.3
      JAVA Oracle 1.8.0_144
      NiFi 1.5.0
      Processor name "ConsumeKafka_0_11"

    Description

      Hi guys,

      Found that "Topic Name" specified as expression "dmp_order_${now() :minus(3600000) :format('HH') }" is not evaluated correctly in "ConsumeKafka_0_11" processor after next hour begins.
      It is evaluated as expected after processor start/restart only.

      Say, the processor is started at 15:05. Value of "Topic name" variable will be "dmp_order_14". It's correct. It will consume data from the topic and everything is ok.
      After next hour begins, value of "Topic name" is not evaluated as "dmp_order_15". I see that consumer still tries to consume data from topic with name "dmp_order_14".
      I tried both Scheduling strategies "Timer driven" and "CRON driven" but have no success. Seems, I have to restart processor every time I want to re-evalueate "Topic name" variable.

      When I filled CustomText field with now() expression in "GenerateFlowFile" processor I didn't have such issues. It worked as expected with "CRON driven" strategy.

      Can you say is it a bug or normal behaviour for ConsumeKafka processor?
      And if it is a normal behaviour can you say is there any opportunity to change "Topic name" dynamically in running processor?

      Attachments

        1. proc_sched.PNG
          22 kB
          Georgy
        2. proc_prop.PNG
          48 kB
          Georgy
        3. proc_sett.PNG
          39 kB
          Georgy

        Activity

          People

            Unassigned Unassigned
            maythes Georgy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: