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 "Axel Hanikel (JIRA)" <ji...@apache.org> on 2018/10/31 11:20:00 UTC

[jira] [Comment Edited] (OAK-7864) Recording read operations to the segment store

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

Axel Hanikel edited comment on OAK-7864 at 10/31/18 11:19 AM:
--------------------------------------------------------------

Attaching new patch which only logs property reads in order to reduce the amount of data produced. Also logging is about twice as fast by collecting log entries in a queue and writing them in a single batch every second or so.

However, this approach does not work very well. There were a few unexpected problems, perhaps due to the fact that wrapped and non-wrapped NodeStates are being mixed (not sure about that, however). But also, this implementation traces API calls rather than actual segment tar accesses, so I'll try to do the logging at the {{CachingSegmentReader}} level instead.


was (Author: ahanikel):
Attaching new patch which logs only property reads in order to reduce the amount of data produced. Also logging is about twice as fast by collecting log entries in a queue and writing them in a single batch every second or so.

However, this approach does not work very well. There were a few unexpected problems, perhaps due to the fact that wrapped and non-wrapped NodeStates are being mixed (not sure about that, however). But also, this implementation traces API calls rather than actual segment tar accesses, so I'll try to do the logging at the {{CachingSegmentReader}} level instead.

> Recording read operations to the segment store
> ----------------------------------------------
>
>                 Key: OAK-7864
>                 URL: https://issues.apache.org/jira/browse/OAK-7864
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: segment-tar
>    Affects Versions: 1.9.9
>            Reporter: Axel Hanikel
>            Assignee: Francesco Mari
>            Priority: Minor
>         Attachments: 0001-OAK-7864-Recording-read-operations-to-the-segment-st.patch, 0001-OAK-7864-Recording-read-operations-to-the-segment-st.patch
>
>
> This is the companion to OAK-7849. Its aim is to record read operations in a log file, like this:
> {noformat}
> 1540373238486 FelixStartLevel n? /:clusterConfig
> 1540373238497 FelixStartLevel n? /:clusterConfig
> 1540373238540 FelixStartLevel p? /:clusterConfig :clusterId
> 1540373238542 FelixStartLevel n? /:clusterConfig
> 1540373238551 FelixStartLevel p? /:clusterConfig :clusterId
> 1540373238560 FelixStartLevel n? /:clusterConfig
> 1540373238569 FelixStartLevel p? /:clusterConfig :clusterId
> 1540373243447 Apache+Sling+Repository+Startup+Thread n? /jcr:system
> 1540373243447 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes
> 1540373243447 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes/fd:xdp
> 1540373243541 Apache+Sling+Repository+Startup+Thread n? /jcr:system
> 1540373243541 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes
> 1540373243541 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes/sling:OsgiConfig
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes/sling:HierarchyNode
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes/sling:Folder
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/jcr:nodeTypes/sling:OrderedFolder
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/rep:namespaces
> 1540373243619 Apache+Sling+Repository+Startup+Thread n? /jcr:system/rep:namespaces/rep:nsdata
> 1540373243634 Apache+Sling+Repository+Startup+Thread p? /jcr:system/rep:namespaces sling
> {noformat}
>  
> where n = node, p = property and '?' stands for "read" (so that the output can be combined with the log from OAK-7849, if desired).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)