You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2016/08/28 20:11:20 UTC

[jira] [Updated] (SOLR-9447) Do not clone SolrInputDocument if update processor chain does not contain custom processors

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

Shalin Shekhar Mangar updated SOLR-9447:
----------------------------------------
    Attachment: SOLR-9447.patch

Patch which looks at the chain in the constructor of DUP and figures out if the subsequent processors are one of LogUpdateProcessor, RunUpdateProcessor or TolerantUpdateProcessor. If not, it enables cloning of the SolrInputDocument.

> Do not clone SolrInputDocument if update processor chain does not contain custom processors
> -------------------------------------------------------------------------------------------
>
>                 Key: SOLR-9447
>                 URL: https://issues.apache.org/jira/browse/SOLR-9447
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: master (7.0), 6.3
>
>         Attachments: SOLR-9447.patch
>
>
> In SOLR-3215 we started cloning documents before adding them locally and send the cloned copy to replicas. This was done because processors after DistributedUpdateProcessor can affect the docs before they are sent to the replicas.
> However, we can avoid the deep copy if we know for sure that the processors after DUP are one of (LogUpdateProcessor, RunUpdateProcessor, TolerantUpdateProcessor) which definitely do not modify the document. This ensures that the common case is optimized.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org