[ https://issues.apache.org/jira/browse/NIFI-11239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephanie Ambrose updated NIFI-11239: ------------------------------------- Status: Patch Available (was: In Progress) > Stateless-Nifi not logging performance counters > ----------------------------------------------- > > Key: NIFI-11239 > URL: https://issues.apache.org/jira/browse/NIFI-11239 > Project: Apache NiFi > Issue Type: Bug > Components: NiFi Stateless > Affects Versions: 1.20.0 > Reporter: Dye357 > Assignee: Stephanie Ambrose > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > Description: It appears at some point work was done to log the performance > counters for flows running in stateless-nifi. I've tested on 1.19.1 and > 1.20.0 and found that the functionality is broken, the headers for the > logging print however no component counts displayed: > > ----------------------------------------------------------------------------------------------------- > 2023-03-02 10:14:03,503 INFO [Background Tasks] > o.a.n.c.reporting.LogComponentStatuses Counters: > ---------------------------------------------------------------------------------------------------------------------------------------------- > | Counter Context | Counter Name > | Counter Value | Increase/sec | > ---------------------------------------------------------------------------------------------------------------------------------------------- > ---------------------------------------------------------------------------------------------------------------------------------------------- > > Further investigating the code reveals that the LogComponentStatues class is > being passed a FlowCounterContext which is effectively empty. It looks like > StatelessRepositoryContext.java is not overriding the requisite abstract > method to inject the peromanceCounters into the FlowCounterContext. > > Acceptance Criteria: The flow performance counters are correctly logged when > logCounters() is invokes in LogComponentStatuses.java. -- This message was sent by Atlassian Jira (v8.20.10#820010)