@@ -472,17 +472,17 @@ public void deleteSnapshot(SnapshotId snapshotId, long repositoryStateId) {
472
472
final BlobContainer indicesBlobContainer = blobStore ().blobContainer (basePath ().add ("indices" ));
473
473
for (final IndexId indexId : indicesToCleanUp ) {
474
474
try {
475
- indicesBlobContainer .deleteBlob (indexId .getId ());
475
+ indicesBlobContainer .deleteBlobIgnoringIfNotExists (indexId .getId ());
476
476
} catch (DirectoryNotEmptyException dnee ) {
477
477
// if the directory isn't empty for some reason, it will fail to clean up;
478
478
// we'll ignore that and accept that cleanup didn't fully succeed.
479
479
// since we are using UUIDs for path names, this won't be an issue for
480
480
// snapshotting indices of the same name
481
- logger .debug (() -> new ParameterizedMessage ("[{}] index [{}] no longer part of any snapshots in the repository, " +
481
+ logger .warn (() -> new ParameterizedMessage ("[{}] index [{}] no longer part of any snapshots in the repository, " +
482
482
"but failed to clean up its index folder due to the directory not being empty." , metadata .name (), indexId ), dnee );
483
483
} catch (IOException ioe ) {
484
484
// a different IOException occurred while trying to delete - will just log the issue for now
485
- logger .debug (() -> new ParameterizedMessage ("[{}] index [{}] no longer part of any snapshots in the repository, " +
485
+ logger .warn (() -> new ParameterizedMessage ("[{}] index [{}] no longer part of any snapshots in the repository, " +
486
486
"but failed to clean up its index folder." , metadata .name (), indexId ), ioe );
487
487
}
488
488
}
@@ -832,7 +832,7 @@ private long listBlobsToGetLatestIndexId() throws IOException {
832
832
} catch (NumberFormatException nfe ) {
833
833
// the index- blob wasn't of the format index-N where N is a number,
834
834
// no idea what this blob is but it doesn't belong in the repository!
835
- logger .debug ("[{}] Unknown blob in the repository: {}" , metadata .name (), blobName );
835
+ logger .warn ("[{}] Unknown blob in the repository: {}" , metadata .name (), blobName );
836
836
}
837
837
}
838
838
return latest ;
@@ -975,7 +975,7 @@ public void delete() {
975
975
try {
976
976
indexShardSnapshotFormat .delete (blobContainer , snapshotId .getUUID ());
977
977
} catch (IOException e ) {
978
- logger .debug ( "[{}] [{}] failed to delete shard snapshot file" , shardId , snapshotId );
978
+ logger .warn ( new ParameterizedMessage ( "[{}] [{}] failed to delete shard snapshot file" , shardId , snapshotId ), e );
979
979
}
980
980
981
981
// Build a list of snapshots that should be preserved
@@ -1135,7 +1135,7 @@ protected Tuple<BlobStoreIndexShardSnapshots, Integer> buildBlobStoreIndexShardS
1135
1135
logger .warn (() -> new ParameterizedMessage ("failed to read index file [{}]" , file ), e );
1136
1136
}
1137
1137
} else if (blobKeys .isEmpty () == false ) {
1138
- logger .debug ("Could not find a readable index-N file in a non-empty shard snapshot directory [{}]" , blobContainer .path ());
1138
+ logger .warn ("Could not find a readable index-N file in a non-empty shard snapshot directory [{}]" , blobContainer .path ());
1139
1139
}
1140
1140
1141
1141
// We couldn't load the index file - falling back to loading individual snapshots
0 commit comments