[ 
https://issues.apache.org/jira/browse/OAK-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vikas Saurabh updated OAK-3826:
-------------------------------
    Attachment: OAK-3826-v2.patch

Attaching [^OAK-3826-v2.patch]. Since, OAK-3815 won't be fixed, the patch moves 
bind/unbind into {{IndexAugmentFactory}} and removes {{Tracker}} usage. It also 
adjusts tests accordingly.

The patch uses OsgiMock to validate Osgi based registration, but unfortunately, 
I couldn't find a way to call unbind via scr annotations.

[~chetanm], can you please take a look.

> Lucene index augmentation doesn't work in Osgi environment
> ----------------------------------------------------------
>
>                 Key: OAK-3826
>                 URL: https://issues.apache.org/jira/browse/OAK-3826
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: OAK-3826-v2.patch, OAK-3826.patch
>
>
> OAK-3576 introduced a way to hook SPI to provide extra fields and query terms 
> for a lucene index.
> In Osgi world, due to OAK-3815, {{LuceneIndexProviderService}} registered 
> references to SPI and pinged {{IndexAugmentFactory}} to update its map. But, 
> it seems bind/unbind methods get called ahead of time as compared to the 
> information Tracker contains. This leads to wrong set of services captured by 
> {{IndexAugmentFactory}}



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

Reply via email to