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

Lucas Kot-Zaniewski updated SOLR-18690:
---------------------------------------
    Priority: Blocker  (was: Major)

> TLOG replica can stop pulling segments from leader after failing to become 
> leader
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-18690
>                 URL: https://issues.apache.org/jira/browse/SOLR-18690
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 10.1
>            Reporter: Adam Quigley
>            Priority: Blocker
>
> Since Solr 10.1, there appears to be a regression with TLOG replicas after a 
> leader election when running with a TLOG+PULL replication model.
> *Symptoms:*
> After a leader change, a TLOG replica can stop pulling segments from the new 
> leader while staying active, while its transaction log continuously grows. A 
> log line "Cluster state does not reflect leader change" is associated with a 
> node being in this state. This has the following consequences:
>  # If during the next election, the latent replica becomes the leader, it 
> must first synchronously replay its transaction log before serving update 
> requests. The window of time it takes to replay its large transaction log 
> equates to a write outage.
>  # Search requests to the TLOG replica serve stale data while the node is in 
> this state (with the exception of the GET handler /get).
> *Root cause:*
> When a TLOG replica attempts to become a leader it stops replicating from the 
> leader and replays its transaction log. The replica rejoins the election if 
> it fails to register as leader. Before Solr 10.1, rejoinLeaderElection also 
> called doRecovery() which restarted replication. From Solr 10.1, the 
> doRecovery() call was removed so the replica does not restart replication. 
> The new leader also doesn’t instruct the replica to recover as its term is 
> current and its PeerSync succeeds.
> *Overseer timeout:*
> From Solr 10.1, after a replicas sends its leader update to the Overseer, it 
> waits up to 10 seconds for the cluster state to show it as leader. If this 
> times out and it fails to register as a leader, it logs "Cluster state does 
> not reflect leader change after issuing command". This log line was observed 
> when a node running as Overseer was shut down without handing off the 
> Overseer role.
> *Change where this behavior was introduced:*
> https://issues.apache.org/jira/browse/SOLR-18080 looks to have changed the 
> way the leader initiates recovery. However, in TLOG/PULL, the TLOG leader 
> only initiates recovery on a TLOG replica if the terms fall behind or 
> PeerSync with it fails. That did not happen in this case as the sync-less 
> replica was keeping up. NRT replicas do not look impacted by this.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to