[
https://issues.apache.org/jira/browse/NIFI-15989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18099155#comment-18099155
]
ASF subversion and git services commented on NIFI-15989:
--------------------------------------------------------
Commit 03134bdcdddf0e55f4514175f704405ca83c67ef in nifi's branch
refs/heads/main from David Young
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=03134bdcddd ]
NIFI-15989 Improved Purge Threshold time formatting (#11313)
Signed-off-by: David Handermann <[email protected]>
> 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
> Priority: Minor
> Time Spent: 3h 20m
> Remaining Estimate: 0h
>
> 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)