You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cao Manh Dat (JIRA)" <ji...@apache.org> on 2017/08/23 11:54:02 UTC

[jira] [Commented] (SOLR-9555) Leader incorrectly publishes state for replica when it puts replica into LIR.

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

Cao Manh Dat commented on SOLR-9555:
------------------------------------

Great work [~mdrob], but there are one thing that I concern about your direction. 
Firstly, There are one requirement for LIR implementation is : the replica that miss the update, should not allowed to serve query requests.
- In current implementation, Leader will publish the replica as DOWN, so all clients will know that and stop query that replica. ( low latency )
- In your implementation, Leader only publish LIR state of that replica as DOWN, so all clients will keep query that replica, until the replica acknowledge the change in LIR node then publish it self as DOWN ( high latency  )

Secondly, Now we have 2 nodes update state of a replica which is considered as bad practice. With your implementation, we have 2 nodes update lir state of a replica, will we have race condition bug in the future?

> Leader incorrectly publishes state for replica when it puts replica into LIR.
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-9555
>                 URL: https://issues.apache.org/jira/browse/SOLR-9555
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Alan Woodward
>         Attachments: lir-9555-problem.png, SOLR-9555.patch, SOLR-9555.patch, SOLR-9555.patch, SOLR-9555-WIP-2.patch, SOLR-9555-WIP-3.patch, SOLR-9555-WIP.patch
>
>
> See https://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/17888/consoleFull for an example



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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