You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Valentin Olteanu (JIRA)" <ji...@apache.org> on 2017/12/14 13:30:00 UTC

[jira] [Comment Edited] (OAK-6836) OnRC report

    [ https://issues.apache.org/jira/browse/OAK-6836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16290805#comment-16290805 ] 

Valentin Olteanu edited comment on OAK-6836 at 12/14/17 1:29 PM:
-----------------------------------------------------------------

I've started a patch in https://github.com/volteanu/jackrabbit-oak/tree/OAK-6836 with the [first commit|https://github.com/volteanu/jackrabbit-oak/commit/c4e68d4a7c5a8df27738a418589c71cc5199302e] that adds the field with just a few info:

!Screen Shot 2017-12-14 at 1.55.40 PM.png|thumbnail!

In the logs it looks like this:
{code}
14.12.2017 13:39:50.518 *INFO* [TarMK revision gc [/Users/volteanu/workspace/test/author/crx-quickstart/repository/segmentstore]] org.apache.jackrabbit.oak.segment.file.FileStore GCReport{gcCount=1, gcType=null, result=null}
{code}

[~mduerig], [~frm], [~dulceanu], WDYT? I would like to know if the start looks good before adding all the data.

One thing I'm not sure about is the format of the string. It should be human readable, but also parsable/grep-able. Maybe json?



was (Author: volteanu):
I've started a patch in https://github.com/volteanu/jackrabbit-oak/tree/OAK-6836 with the [first commit|https://github.com/volteanu/jackrabbit-oak/commit/c4e68d4a7c5a8df27738a418589c71cc5199302e] that adds the field with just a few info:

!Screen Shot 2017-12-14 at 1.55.40 PM.png|thumbnail!

In the logs it looks like this:
{code}
14.12.2017 13:39:50.518 *INFO* [TarMK revision gc [/Users/volteanu/workspace/test/author/crx-quickstart/repository/segmentstore]] org.apache.jackrabbit.oak.segment.file.FileStore GCReport{gcCount=1, gcType=null, result=null}
{code}

[~mduerig], [~frm], [~dulceanu], WDYT? I would like to know if the start looks good before adding all the data.

One thing I'm not sure about is the format of the string. It should be human readable, but also parsable/grep-able. Maybe json?


> OnRC report
> -----------
>
>                 Key: OAK-6836
>                 URL: https://issues.apache.org/jira/browse/OAK-6836
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Valentin Olteanu
>            Priority: Minor
>              Labels: production
>         Attachments: Screen Shot 2017-12-14 at 1.55.40 PM.png
>
>
> Currently, the information regarding an online revision cleanup execution is scattered across multiple log lines and partially available in the attributes of {{SegmentRevisionGarbageCollection}} MBean. 
> While useful for debugging, this is hard to grasp for users that need to understand the full process to be able to read it.
> The idea would be to create a "report" with all the details of an execution and output it at the end - write to log, but also store it in the MBean, from where it can be consumed by monitoring and health checks. 
> In the MBean, this would replace the _Last*_ attributes.
> In the logs, this could replace all the intermediary logs (switch them to DEBUG).



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