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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2015/10/21 12:27:27 UTC

[jira] [Comment Edited] (OAK-3531) Oak Explorer: add segment GC roots report

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

Alex Parvulescu edited comment on OAK-3531 at 10/21/15 10:26 AM:
-----------------------------------------------------------------

as it turns out, this can be very expensive to run. 
this is how the report will look like, given a segment UUID, it will print an inverted index of the dependencies. it currently doesn't build the longest path to the root, it would only pick up one link of the chain and attach segments of dependencies to it by removing the segment from the main list until it reaches a local root, then continues with the next link until it consumes the entire list.

{code}
Segment GC roots:
  399e26dc-330a-411c-aaee-acf93e604c87[data00000b.tar]
    6098dafb-cb19-41c8-abd5-0c0d32499af0[data00000b.tar]
      5a27494a-fe0a-4729-a1dd-bb58ee0cd029[data00000b.tar]
        4d4a4a70-786f-4be5-ab1c-bded9df63f28[data00000b.tar]
        0a0ca1bb-2780-4c41-a3c9-d24c9ac09cd8[data00000b.tar]
          6e9ddbf6-e3b0-4dcd-a6ad-45d31ea42437[data00000b.tar]
      8ba151c1-8877-48d5-a988-3e3d1a2ff77f[data00000b.tar]
        e1dbc39a-19af-48f1-ae4a-b423f5f5ac36[data00000b.tar]
          6e9ddbf6-e3b0-4dcd-a6ad-45d31ea42437[data00000b.tar]
          3179b1df-3a95-4806-ab36-d42c8a816ac6[data00000b.tar]
          20a42a8c-de49-4281-ad74-36fd8f308101[data00000b.tar]
            5a27494a-fe0a-4729-a1dd-bb58ee0cd029[data00000b.tar]
            4d4a4a70-786f-4be5-ab1c-bded9df63f28[data00000b.tar]
            3179b1df-3a95-4806-ab36-d42c8a816ac6[data00000b.tar]
            0a0ca1bb-2780-4c41-a3c9-d24c9ac09cd8[data00000b.tar]
            63750e35-3eb0-4601-a466-9f09538bc138[data00000b.tar]
              4d4a4a70-786f-4be5-ab1c-bded9df63f28[data00000b.tar]
              0a0ca1bb-2780-4c41-a3c9-d24c9ac09cd8[data00000b.tar]
        20a42a8c-de49-4281-ad74-36fd8f308101[data00000b.tar]
    63750e35-3eb0-4601-a466-9f09538bc138[data00000b.tar]
{code}

In with rev1709789 and r1709790. the changes also included a fair amount of refactoring.


was (Author: alex.parvulescu):
as it turns out, this can be very expensive to run. 
this is how the report will look like, given a segment UUID, it will print an inverted index of the dependencies. it currently doesn't build the longest path to the root, it would only pick up one link of the chain and attach segments of dependencies to it by removing the segment from the main list until it reaches a local root, then continues with the next link until it consumes the entire list.

{code}
Segment GC roots:
  399e26dc-330a-411c-aaee-acf93e604c87[data00000b.tar]
    6098dafb-cb19-41c8-abd5-0c0d32499af0[data00000b.tar]
      5a27494a-fe0a-4729-a1dd-bb58ee0cd029[data00000b.tar]
        4d4a4a70-786f-4be5-ab1c-bded9df63f28[data00000b.tar]
        0a0ca1bb-2780-4c41-a3c9-d24c9ac09cd8[data00000b.tar]
          6e9ddbf6-e3b0-4dcd-a6ad-45d31ea42437[data00000b.tar]
      8ba151c1-8877-48d5-a988-3e3d1a2ff77f[data00000b.tar]
        e1dbc39a-19af-48f1-ae4a-b423f5f5ac36[data00000b.tar]
          6e9ddbf6-e3b0-4dcd-a6ad-45d31ea42437[data00000b.tar]
          3179b1df-3a95-4806-ab36-d42c8a816ac6[data00000b.tar]
          20a42a8c-de49-4281-ad74-36fd8f308101[data00000b.tar]
            5a27494a-fe0a-4729-a1dd-bb58ee0cd029[data00000b.tar]
            4d4a4a70-786f-4be5-ab1c-bded9df63f28[data00000b.tar]
            3179b1df-3a95-4806-ab36-d42c8a816ac6[data00000b.tar]
            0a0ca1bb-2780-4c41-a3c9-d24c9ac09cd8[data00000b.tar]
            63750e35-3eb0-4601-a466-9f09538bc138[data00000b.tar]
              4d4a4a70-786f-4be5-ab1c-bded9df63f28[data00000b.tar]
              0a0ca1bb-2780-4c41-a3c9-d24c9ac09cd8[data00000b.tar]
        20a42a8c-de49-4281-ad74-36fd8f308101[data00000b.tar]
    63750e35-3eb0-4601-a466-9f09538bc138[data00000b.tar]
{code}

> Oak Explorer: add segment GC roots report
> -----------------------------------------
>
>                 Key: OAK-3531
>                 URL: https://issues.apache.org/jira/browse/OAK-3531
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: run
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>            Priority: Minor
>             Fix For: 1.3.9
>
>
> Improve the existing Segment reference report with some additional info about GC roots.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)