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

flowFileEvent combineCounters hashmap overwritten

    XMLWordPrintableJSON

Details

    • Patch, Important

    Description

      It is related to the bug I reported a few days ago NIFI-6800

      This is another problem in the StandardProcessSession.java, promptly in the combination of the counters for the event repository-> flowFileEvent object.

      The putALL method is called and the values ​​are not being mixed when it comes to existing keys
      As we know hashmap does not allow duplicate keys. So when we merge the maps in this way, for duplicate keys in map1 the value is overwitten by value for same key in map2.

      The putAll method cannot be used to combine hashmasp if what is expected is that the keys be summed.

       

      Attachments

        Issue Links

          Activity

            People

              ivan1221 Iván Ezequiel Rodriguez
              ivan1221 Iván Ezequiel Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m