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

Erick Erickson commented on SOLR-14648:
---------------------------------------

[~sayan.das] Hmmm, I suppose we could automatically check the version stamp on 
all the PULL replicas, they should be comparable.

[~tflobbe] Right, I think I'd prioritize things this way:
1> don't create a new TLOG replica if there's no leader. You can fix this 
manually, but it's be something like 
1.1> copy the index from some selected PULL replica somewhere
1.2> nuke the collection
1.3> create a single TLOG replica
1.4> shut down Solr, copy the saved index back and start Solr
1.5> build out the additional PULL replicas
1.6> yuck. but at least it doesn't leave you with nothing.

2> Implement the expert flag to get you out of this mess automatically.

I'll add parenthetically that running with a single TLOG replica has no HA/DR 
built in by definition, it's not a good practice. We shouldn't nuke a 
collection even so of course.

> Creating TLOG with pure multiple PULL replica, leading to 0 doc count
> ---------------------------------------------------------------------
>
>                 Key: SOLR-14648
>                 URL: https://issues.apache.org/jira/browse/SOLR-14648
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 8.3.1
>            Reporter: Sayan Das
>            Priority: Major
>
> With only PULL replica whenever we create a new TLOG as leader fresh 
> replication happens, resulting in flushing the older indexes from existing 
> PULL replicas
> Steps to replicate:
>  # Create 1 NRT or 1 TLOG replica as leader with multiple PULL replicas
>  # Index few documents and let it replicate in all the replicas
>  # Delete all the TLOG/NRT replica leaving PULL types
>  # Create a new TLOG/NRT as leader, once recovery completes it replaces all 
> the older indexes
> In ideal scenario it should have replicated from any one of the PULL replicas 
> that has latest indexes after that TLOG/NRT replica should be registered as 
> leader



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

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

Reply via email to