You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Noble Paul (Jira)" <ji...@apache.org> on 2019/11/02 06:03:00 UTC

[jira] [Commented] (SOLR-10822) Concurrent execution of Policy computations should yield correct result

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

Noble Paul commented on SOLR-10822:
-----------------------------------

It's supposed to work as follows

 
 * One thread acquire the session and compute some placements. and the session is not closed
 * as the actual execution and creation of replicas might take some time, some other operations are getting called
 * So the session state assumes that the previous computed replicas are created and the next computation will be done on the basis of the previous state
 * Once the actual replicas are created the session is no more needed and closed
 * The synchronization is only done while computing the replica positions 

> Concurrent execution of Policy computations should yield correct result 
> ------------------------------------------------------------------------
>
>                 Key: SOLR-10822
>                 URL: https://issues.apache.org/jira/browse/SOLR-10822
>             Project: Solr
>          Issue Type: Sub-task
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Noble Paul
>            Priority: Major
>              Labels: autoscaling
>             Fix For: 7.1, 8.0
>
>         Attachments: SOLR-10822.patch
>
>
> Policy framework are now used to find replica placements by all collection APIs but since these APIs can be executed concurrently, we can get wrong placements because of concurrently running calculations. We should synchronize just the calculation part so that they happen serially.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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