epugh commented on PR #2391:
URL: https://github.com/apache/solr/pull/2391#issuecomment-7130833284

   I pushed 756bc9f7bce, which looks at `testQuorumLossAndRecovery` (still 
`@AwaitsFix`, SOLR-18094):
   
   - **Fixed a race in the test.** After the restarts, it wrote to the survivor 
before that node's ZooKeeper client had reconnected, and the update was 
rejected. It now waits for every running node's ZK client to be connected, then 
for all replicas to be active.
   - **Added diagnostics.** If that wait times out, the test logs the stack of 
every thread running `org.apache.solr.cloud` code, one log call per thread so 
the ~10KB log-message cap doesn't truncate it.
   
   With the race gone, the test still fails in about **2 of 47 runs** because 
of what looks like a real bug, which probably deserves its own JIRA issue:
   
   After quorum loss, the Overseer's state-update thread logs `Exception in 
Overseer main queue loop` and then goes silent. It keeps its Overseer seat and 
stays alive (it logs "Overseer Loop exiting" only at shutdown), but it stops 
applying state updates. Every leader registration then times out with "Cluster 
state does not reflect leader change after issuing command". The restarted 
replicas have no update history and can't take over, so the shard stays 
leaderless.
   
   The two failures had different triggers:
   1. `ConnectionLoss` in `ZkStateWriter.writePendingUpdates`, during the 
outage.
   2. `NoNodeException` in `ZkDistributedQueue.remove`, right after quorum came 
back. Most likely a queue-cleanup `multi` timed out during the outage but had 
actually been applied, so the retry found the entries already gone.
   
   I haven't yet captured where the thread is stuck. Neither failure happened 
with the fixed dump in place (the last 32 runs passed). The next failure in a 
beast or nightly run should show it: `./gradlew :solr:core:test --tests 
TestEmbeddedZkQuorum.testQuorumLossAndRecovery -Ptests.awaitsfix=true 
-Ptests.iters=20`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to