Skip to content

SOLR-18303: Stop backup cleanup from hiding the original failure - #4776

Open
iprithv wants to merge 1 commit into
apache:mainfrom
iprithv:backup-cleanup-mask
Open

SOLR-18303: Stop backup cleanup from hiding the original failure#4776
iprithv wants to merge 1 commit into
apache:mainfrom
iprithv:backup-cleanup-mask

Conversation

@iprithv

@iprithv iprithv commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

When an incremental collection backup fails during shard copy, BackupCmd logs the real SolrException and then tries to clean up the partial backup. Cleanup deletes zk_backup_<id>, which is only created after shard copy.

If shard copy fails first, that directory does not exist. LocalFileSystemRepository.deleteDirectory() goes through NIO/PathUtils and throws java.nio.file.NoSuchFileException. Cleanup only caught java.io.FileNotFoundException, which is a different type, so the not-found exception replaced the original backup error in the API response.

Operators then see a bare missing-path error instead of the actual cause (allow-paths, no leader, shard copy failure, etc.).

Signed-off-by: prithvi <prithvisivasankar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant