Skip to content

Commit

Permalink
Add changelog entry, fix log usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed May 4, 2018
1 parent a659c7f commit da688c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Fail snapshot operations early when creating or deleting a snapshot on a reposit
written to by an older Elasticsearch after writing to it with a newer Elasticsearch version. ({pull}30140[#30140])

Fix NPE when CumulativeSum agg encounters null value/empty bucket ({pull}29641[#29641])
Do not fail snapshot when deleting a missing snapshotted file ({pull}30332[#30332])

//[float]
//=== Regressions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,8 @@ protected void finalize(final List<SnapshotFiles> snapshots,
try {
blobContainer.deleteBlobIgnoringIfNotExists(blobName);
} catch (IOException e) {
logger.warn("[{}][{}] failed to delete index blob [{}] during finalization", snapshotId, shardId, blobName, e);
logger.warn(() -> new ParameterizedMessage("[{}][{}] failed to delete index blob [{}] during finalization",
snapshotId, shardId, blobName), e);
throw e;
}
}
Expand All @@ -973,7 +974,8 @@ protected void finalize(final List<SnapshotFiles> snapshots,
try {
blobContainer.deleteBlobIgnoringIfNotExists(blobName);
} catch (IOException e) {
logger.warn("[{}][{}] failed to delete data blob [{}] during finalization", snapshotId, shardId, blobName, e);
logger.warn(() -> new ParameterizedMessage("[{}][{}] failed to delete data blob [{}] during finalization",
snapshotId, shardId, blobName), e);
}
}
}
Expand Down

0 comments on commit da688c2

Please sign in to comment.