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

Chetan Mehrotra commented on OAK-2718:
--------------------------------------

[~teofili] Can we also disable it by default and let it be registered only if 
some OSGi config is provided. That can be simply achieved by marking the 
component with ConfigurationPolicy REQUIRED. As most of the deployments would 
not have Solr configured this should be fine and not cause much inconvenience. 
An observer doing the complete diff would still add to the cost. Later once we 
make it precise we can let it be enabled by default

> NodeStateSolrServersObserver performs complete diff synchronously causing 
> slowness in dispatch
> ----------------------------------------------------------------------------------------------
>
>                 Key: OAK-2718
>                 URL: https://issues.apache.org/jira/browse/OAK-2718
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-solr
>            Reporter: Chetan Mehrotra
>            Assignee: Tommaso Teofili
>             Fix For: 1.2
>
>
> {{NodeStateSolrServersObserver}} is enabled by default and performs diff 
> synchronously. Further it performs complete diff which might take time and 
> would cause the dispatch thread to slowdown.
> This would cause issues at least with {{DocumentNodeStore}} as there the 
> dispatch is done as part of background read and that call is time sensitive.
> As a fix the diff should performed asynchronously and also be selective. A 
> similar fix was done for Lucene index as part of OAK-2570



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

Reply via email to