janhoy opened a new pull request, #931:
URL: https://github.com/apache/solr-operator/pull/931

   🤖 AI Assisted
   
   Fixes https://github.com/apache/solr-operator/issues/927
   
   - After a PVC expansion the StatefulSet's `volumeClaimTemplates` kept the 
original size, so a pod added by a later scale-up got a small data PVC.
   - The operator now recreates the StatefulSet when the `storageMinimumSize` 
annotation exceeds the template size: delete with `propagationPolicy: Orphan`, 
then create a copy with the expanded size. Pods are not touched.
   - A `solr.apache.org/recreate-statefulset` finalizer keeps the deleted 
StatefulSet until the copy is made, so the clusterOp lock/queue, replicas and 
other annotations survive.
   - A SolrCloud deleted mid-recreation still finishes it, so no StatefulSet or 
pods are left behind.
   - Docs: `solr-cloud-crd.adoc`, a `v0.11.0` upgrade note, and a changelog 
entry in `helm/solr-operator/Chart.yaml`.
   
   Tests:
   - `make test` → `ok github.com/apache/solr-operator/controllers 127.853s` 
(new spec "Persistent Data - Scale up after PVC expansion")
   - `make prepare`, `make build`, `make lint DOCS_LINT=`, 
`operator-check-docs`, `make check-git` → pass
   - e2e not run here; "E2E - SolrCloud - Storage / Persistent Data - Expansion 
/ Fully Expands" covers it (added a template size assertion)
   
   Upstream compare: 
https://github.com/apache/solr-operator/compare/main...janhoy:solr-operator:gh-927-pvc-expansion-scaleup?expand=1
   


-- 
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