jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-3568) Oak Explorer: add persisted compaction map size
Date Mon, 16 Nov 2015 10:32:11 GMT

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

Alex Parvulescu commented on OAK-3568:

bq. However, I wonder why you even want to parse them. It should be sufficient to just parse
the compaction map to get its size.
exactly to the point. this is what the current code tries to do, but fails.

if you take a quick look at the {{PCMAnalyser}}, there is a method of interest: {{readPCMHistory}}
which tries to extract persisted compaction map record ids from the store. these ids would
usually point to map records (info loosely based on the code that saves this info in the segment)
Once you have this information, it should be as easy as feeding the map back into the {{RecordUsageAnalyser}}
for analysis (see {{onPCM}} from the patch), but this doesn't work for some reason.

[0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/PersistedCompactionMap.java#L227

> Oak Explorer: add persisted compaction map size
> -----------------------------------------------
>                 Key: OAK-3568
>                 URL: https://issues.apache.org/jira/browse/OAK-3568
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: run
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>            Priority: Minor
>         Attachments: OAK-3568-v2.patch, OAK-3568.patch
> I'd like to add the persisted compaction map size report

This message was sent by Atlassian JIRA

View raw message