autokctrl-team opened a new issue, #914: URL: https://github.com/apache/solr-operator/issues/914
## Description The operator [joins the `SolrBackup` name and the collection name with a hyphen](https://github.com/apache/solr-operator/blob/ed5c5c7d28a4c1189d19f581259e05385c0d4b20/controllers/util/backup_util.go#L52-L54) to name the backup directory. Both names allow hyphens. For example, these two configurations resolve to the same directory when they use the same repository location: | `SolrBackup` name | Collection | Generated directory | |---|---|---| | `backup` | `us-orders` | `backup-us-orders` | | `backup-us` | `orders` | `backup-us-orders` | Once `backup-us-orders` contains a backup of `us-orders`, Solr rejects a backup of `orders` to that directory. ## Steps to reproduce 1. Create a `SolrCloud` with a backup repository and two collections named `us-orders` and `orders`. 2. Create a `SolrBackup` named `backup` with `spec.collections: ["us-orders"]`. Wait for it to complete (`finished: true, successful: true`). 3. Create a second `SolrBackup` named `backup-us` with `spec.collections: ["orders"]`. Use the same repository and location as `backup`. 4. Check the status of `backup-us` and the error returned by Solr. Both backups target `backup-us-orders`, which already contains the backup of `us-orders`. ## Expected behavior Two distinct `(SolrBackup, collection)` pairs should not collide on the same target backup directory in the repository, or the naming scheme should unambiguously separate the `SolrBackup` resource name from the collection name. -- 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]
