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

NPE in SiteToSiteStatusReportingTask for counters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0, 1.11.0, 1.11.1
    • Fix Version/s: 1.12.0, 1.11.2
    • Component/s: Extensions
    • Labels:
      None

      Description

      Since the addition of the counters in the SiteToSiteStatusReportingTask for processors, the reporting task can throw a NPE:

      2020-02-04 21:10:20,062 ERROR [Timer-Driven Process Thread-10] o.a.n.r.SiteToSiteStatusReportingTask SiteToSiteStatusReportingTask[id=07ce184c-0163-1000-16b4-c81b2199c4a5] Error running task SiteToSiteStatusReportingTask[id=07ce184c-0163-1000-16b4-c81b2199c4a5] due to org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.NullPointerException: null of map in field counters of status.status
      

      The schema needs to be updated to allow null for counters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pvillard Pierre Villard
                Reporter:
                pvillard Pierre Villard
              • 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 - 40m
                  40m