You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2023/03/09 17:43:00 UTC
[jira] [Resolved] (NIFI-11239) Stateless-Nifi not logging performance counters
[ https://issues.apache.org/jira/browse/NIFI-11239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Handermann resolved NIFI-11239.
-------------------------------------
Resolution: Not A Problem
Thanks for following up and linking the discussion thread [~dye357]!
> 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)