[
https://issues.apache.org/jira/browse/JCR-4012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15464435#comment-15464435
]
Marcel Reutegger commented on JCR-4012:
---------------------------------------
I see two options to support the use case:
- Allow client code to pass in an {{EventIterator}} that doesn't return
elements and include an initial {{hasNext()}} call in {{onEvent()}} of the
listener returned by {{getTrackedListener()}}. The time measured is assigned to
the producer side.
- Add a new method to {{ListenerTracker}} that allows client code to record
producer time outside of the tracker.
> Include initial cost in stats for observation processing
> --------------------------------------------------------
>
> Key: JCR-4012
> URL: https://issues.apache.org/jira/browse/JCR-4012
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-jcr-commons
> Reporter: Marcel Reutegger
> Assignee: Marcel Reutegger
> Priority: Minor
> Fix For: 2.13.3
>
>
> Initial producer cost is currently not reflected in the eventProducerTime
> TimeSeries. The {{ListenerTracker}} only gets {{EventIterator}} instances
> passed that contain at least one element. For some implementations (like Oak)
> the initial step to assure at least one element can be a significant cost and
> is currently not reflected in the producer time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)