jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomek Rękawek (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-7794) Changes are not dispatched when the segment node store is used as the global store
Date Tue, 02 Oct 2018 10:42:00 GMT

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

Tomek Rękawek commented on OAK-7794:

Some background on why I introduced the new value in the OSGi config for the SegmentNodeStoreFactory:

When using multiple SegmentNodeStore instances in a single application (eg. with the composite
node store), one instance is used as a global, writeable store, while the rest are read-only.
The OAK-7710 changed the way how the observers are handled in the CompositeNodeStore - the
observers are registered in the global store, rather than being handled manually in the {{CompositeNodeStore#merge()}}
method. However, the observer support is disabled for all the SegmentNodeStore instances created
via the factory. The new config value allows to enable the observer support for selected SegmentNodeStore

//cc: [~mduerig], [~frm], [~dulceanu] - could you share your feedback or propose an idea how
we can avoid introducing a new config value?

> Changes are not dispatched when the segment node store is used as the global store
> ----------------------------------------------------------------------------------
>                 Key: OAK-7794
>                 URL: https://issues.apache.org/jira/browse/OAK-7794
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: composite, segment-tar
>    Affects Versions: 1.9.9
>            Reporter: Tomek Rękawek
>            Assignee: Tomek Rękawek
>            Priority: Major
>             Fix For: 1.10, 1.9.9
> With the OAK-7710 we rely on the global store event dispatching. However, the observer
support is disabled on the SegmentMK if it's not created as the primary store. Therefore,
if the SegmentMK is used as the global store, the observers are not informed about the changes.

This message was sent by Atlassian JIRA

View raw message