janhoy commented on issue #922: URL: https://github.com/apache/solr-operator/issues/922#issuecomment-7349865532
🤖 Thanks for the detailed report. I reproduced the pod selection on current `main` with the cluster layouts as unit-test input. In the exact layout you describe (one NRT and one PULL replica), the operator restarts the PULL pod first and the NRT pod in a later round. A write outage while the NRT pod restarts can't be avoided there: it is the shard's only leader-eligible replica, so the pod has to restart at some point, and writes stop while it is down. Keeping a leader-eligible replica active, as suggested, would block that pod from ever being updated. Adding a second NRT or TLOG replica is the way to keep writes available during rolling updates. The underlying problem you point to is real, though. `maxShardReplicasUnavailable` counts all replica types the same, so with a budget of 2 or more (or a percentage such as `"50%"`), the operator can restart every NRT/TLOG replica of a shard in the same round while the PULL replicas stay up. For example, with two NRT and two PULL replicas, where the PULL pods are already updated, a budget of 2 selects both NRT pods together. Restarting them one at a time would have avoided the outage. A fix should keep at least one leader-eligible replica active whenever the shard has more than one. -- 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]
