David Young created NIFI-15989:
----------------------------------

             Summary: Improve time format output in Provenance task logging
                 Key: NIFI-15989
                 URL: https://issues.apache.org/jira/browse/NIFI-15989
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: David Young
            Assignee: David Young


Specifically in WriteAheadStorePartition, the maintenance task outputs the 
threshold as a measure of milliseconds which can be difficult to parse quickly.

Pass the value of the field `olderThan` that's passed to `purgeOldEvents` 
through the Apache commons `DurationFormatUtils.formatDurationWords` to get the 
output in a more human readable format. e.g.:
 * 2592000000 -> "30 days"
 * 2592010000 -> "30 days 0 hours 0 minutes 10 seconds"
 * 3600000 -> "1 hour"

I'm sure there are other places that this would be beneficial, but finding them 
can be difficult. I'm happy to make additional updates as needed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to