jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francesco Mari (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-7064) Remove duplicated code from the FileStore logging implementation
Date Thu, 14 Dec 2017 08:17:00 GMT

     [ https://issues.apache.org/jira/browse/OAK-7064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Francesco Mari updated OAK-7064:
--------------------------------
    Attachment: OAK-7064-01.patch

The first version of the patch introduces a a new method in {{GCListener}} to automatically
include a prefix to every log message, and introduces {{PrintableStopwatch}} and {{PrintableBytes}}
to encapsulate the formatting logic for times and sizes respectively.

> Remove duplicated code from the FileStore logging implementation
> ----------------------------------------------------------------
>
>                 Key: OAK-7064
>                 URL: https://issues.apache.org/jira/browse/OAK-7064
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Francesco Mari
>            Assignee: Francesco Mari
>            Priority: Minor
>             Fix For: 1.7.13, 1.8
>
>         Attachments: OAK-7064-01.patch
>
>
> The {{FileStore}} follows some implicit guidelines when it comes to its logging messages,
e.g. prefixing every message with the GC cycle number, and outputting times and sizes both
in a human readable and machine readable way.
> These guidelines are implemented ad-hoc, by appropriately crafting each log message individually.
This approach leads to clutter and duplicated code. It would be beneficial to the internal
quality of the {{FileStore}} if all these concerns were instead implemented in a centralised
way.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message