You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Chetan Mehrotra <ch...@gmail.com> on 2016/11/15 08:06:36 UTC

[REVIEW] New OSGi config for AsyncIndexUpdate service

Hi Team,

With OAK-5074 the async indexing setup has been changed for OSGi env.
With this applications running Oak in OSGi env should not be
configuring async indexing via 'Oak#withAsyncIndexing' . Instead they
should configure OSGi component
'org.apache.jackrabbit.oak.plugins.index.AsyncIndexerService'

------
asyncConfigs=[ \
  "async:5", \
  ]
leaseTimeOutMinutes=I"15"
------

AsyncIndexerService OSGi component would REQUIRE an explicit config to
enable async indexing.

The OSGi way of configuration is required for further enhancements in this area.

Please provide your feedback!

Chetan Mehrotra

Re: [REVIEW] New OSGi config for AsyncIndexUpdate service

Posted by Davide Giannella <da...@apache.org>.
On 17/11/2016 08:00, Chetan Mehrotra wrote:
> Is that what you were looking for?
+1

D

Re: [REVIEW] New OSGi config for AsyncIndexUpdate service

Posted by Chetan Mehrotra <ch...@gmail.com>.
On Wed, Nov 16, 2016 at 8:28 PM, Davide Giannella <da...@apache.org> wrote:
> As we may have multiple threads performing the indexing it would be nice
> if such aspect could be configured OSGi wise with a list in which you
> can specify them.

The OSGi config shown above is a list. So you can define multiple indexers here

------
asyncConfigs=[ \
  "async:5", \
  "async-fulltext:10", \
  ]
leaseTimeOutMinutes=I"15"
------

Is that what you were looking for?

Chetan Mehrotra

Re: [REVIEW] New OSGi config for AsyncIndexUpdate service

Posted by Davide Giannella <da...@apache.org>.
On 15/11/2016 08:06, Chetan Mehrotra wrote:
> Hi Team,
>
> With OAK-5074 the async indexing setup has been changed for OSGi env.
> With this applications running Oak in OSGi env should not be
> configuring async indexing via 'Oak#withAsyncIndexing' . Instead they
> should configure OSGi component
> 'org.apache.jackrabbit.oak.plugins.index.AsyncIndexerService'
>
> ------
> asyncConfigs=[ \
>   "async:5", \
>   ]
> leaseTimeOutMinutes=I"15"
> ------
>
> AsyncIndexerService OSGi component would REQUIRE an explicit config to
> enable async indexing.
>
> The OSGi way of configuration is required for further enhancements in this area.
>
> Please provide your feedback!
>

As we may have multiple threads performing the indexing it would be nice
if such aspect could be configured OSGi wise with a list in which you
can specify them.

Davide