autokctrl-team opened a new issue, #916:
URL: https://github.com/apache/solr-operator/issues/916

   ## Description
   
   When `spec.collections` is omitted, deleting a collection after its backup 
starts leaves the `SolrBackup` waiting for that collection. For example, a 
retention job might delete last month's log collection while a scheduled backup 
is still backing it up.
   
   The operator [checks only collections still listed by 
Solr](https://github.com/apache/solr-operator/blob/a4daecd47da8ec31c78c80ff2d5f1e9cff9ee86d/controllers/solrbackup_controller.go#L277-L292),
 but [requires every collection recorded in the backup status to 
finish](https://github.com/apache/solr-operator/blob/a4daecd47da8ec31c78c80ff2d5f1e9cff9ee86d/controllers/util/backup_util.go#L60-L71).
 Unlike [#824](https://github.com/apache/solr-operator/issues/824), the 
operator makes no further `REQUESTSTATUS` calls for the collection once it 
disappears from the list.
   
   Observed with Solr 9.7.0 and Solr Operator built from `ed5c5c7`.
   
   ## Steps to reproduce
   
   1. Create a `SolrCloud` with a configured backup repository and create two 
collections (`keepme` and `dropme`).
   2. Create a `SolrBackup` targeting that `SolrCloud` with `spec.collections` 
omitted so all collections are backed up.
   3. As soon as `dropme` appears in `status.collectionBackupStatuses` with 
`inProgress: true`, delete it via the Solr Collections API 
(`/solr/admin/collections?action=DELETE&name=dropme`).
   4. Observe `SolrBackup` status across subsequent reconciliations.
   
   ## Expected behavior
   
   The backup should reach a terminal status that tells the user what happened 
to the deleted collection.
   
   ## Observed behavior
   
   After Solr deleted `dropme`, its status still showed `inProgress: true`, and 
the `SolrBackup` had no `finished` field. During that interval `keepme` 
completed, and a collection created after the deletion (`latecomer`) was also 
backed up successfully by the same operator. Its log contained no further 
backup requests for `dropme` after deletion.
   


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