mirror of https://github.com/apache/lucene.git
SOLR-9954: Prevent against failure during failed snapshot cleanup from swallowing the actual cause for the snapshot to fail.
This commit is contained in:
parent
f99c967632
commit
118fc422d0
|
@ -353,6 +353,9 @@ Bug Fixes
|
|||
and CloudMLTQParser included extra strings from the field definitions in the query.
|
||||
(Ere Maijala via Anshum Gupta)
|
||||
|
||||
* SOLR-9954: Prevent against failure during failed snapshot cleanup from swallowing the actual cause
|
||||
for the snapshot to fail. (thelabdude)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -231,7 +231,11 @@ public class SnapShooter {
|
|||
return details;
|
||||
} finally {
|
||||
if (!success) {
|
||||
backupRepo.deleteDirectory(snapshotDirPath);
|
||||
try {
|
||||
backupRepo.deleteDirectory(snapshotDirPath);
|
||||
} catch (Exception excDuringDelete) {
|
||||
LOG.warn("Failed to delete "+snapshotDirPath+" after snapshot creation failed due to: "+excDuringDelete);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue