You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "sarkaramrit1993 (via GitHub)" <gi...@apache.org> on 2026/10/22 21:25:00 UTC

[PR] SOLR-17953: Ignore hidden files when locating an incremental backup (9x backport) [solr]

sarkaramrit1993 opened a new pull request, #5198:
URL: https://github.com/apache/solr/pull/5198

   https://issues.apache.org/jira/browse/SOLR-17953
   
   # Description
   
   Backport of [#5066](https://github.com/apache/solr/pull/5066) to `branch_9x`. A stray hidden file like `.DS_Store` in a backup directory breaks restore, list, and delete of incremental backups. Reported on 9.8.1.
   
   # Solution
   
   Same change as #5066. The only conflict was in `BackupCmd`, where `branch_9x` still has the non-incremental path. I kept its `else if (incremental)` and applied the hidden-file filter inside it. The 9x test uses `AbstractDistribZkTestBase` and `Collectors.toList()` to build on Java 11.
   
   # Tests
   
   `BackupFilePathsTest`, `LocalFSCloudIncrementalBackupTest`, `TestLocalFSCloudBackupRestore` and `DeleteBackupCmdTest` pass locally, along with `gradlew check -x test`.


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-17953: Ignore hidden files when locating an incremental backup (9x backport) [solr]

Posted by "sarkaramrit1993 (via GitHub)" <gi...@apache.org>.
sarkaramrit1993 commented on PR #5198:
URL: https://github.com/apache/solr/pull/5198#issuecomment-6400859148

   Thanks. The test mirrors the merged one on main ([#5066](https://github.com/apache/solr/pull/5066)), so I'd keep 9x identical. A stricter assertion would belong in its own change on main.
   


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-17953: Ignore hidden files when locating an incremental backup (9x backport) [solr]

Posted by "sarkaramrit1993 (via GitHub)" <gi...@apache.org>.
sarkaramrit1993 commented on PR #5198:
URL: https://github.com/apache/solr/pull/5198#issuecomment-6351779334

   @epugh same ask as on [#5197](https://github.com/apache/solr/pull/5197): this one needs CI approval too. On top of [#5066](https://github.com/apache/solr/pull/5066), the 9x test uses `AbstractDistribZkTestBase` and `Collectors.toList()` so it builds on Java 11.


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-17953: Ignore hidden files when locating an incremental backup (9x backport) [solr]

Posted by "nick-boss-tech (via GitHub)" <gi...@apache.org>.
nick-boss-tech commented on PR #5198:
URL: https://github.com/apache/solr/pull/5198#issuecomment-6389339117

   **Review: Good with one comment**
   **Good:** The change follows merged PR #5066, preserves 9.x’s non-incremental backup behavior, and uses Java 11-compatible test APIs. The added tests cover restore, listing, deletion, and retention with .DS_Store present.
   **Optional improvement:** assert the specific error when rejecting a different collection, rather than accepting any SolrException.
   
   AI-generated. Static review.


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-17953: Ignore hidden files when locating an incremental backup (9x backport) [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh merged PR #5198:
URL: https://github.com/apache/solr/pull/5198


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org