Skip to content

Improves snapshot logging and snapshot deletion error handling#25264

Merged
abeyad merged 2 commits intoelastic:masterfrom
abeyad:snapshot_deletion_improvements
Jun 15, 2017
Merged

Improves snapshot logging and snapshot deletion error handling#25264
abeyad merged 2 commits intoelastic:masterfrom
abeyad:snapshot_deletion_improvements

Conversation

@abeyad
Copy link
Copy Markdown

@abeyad abeyad commented Jun 15, 2017

This commit does two things:

  1. Adds logging at the DEBUG level for when the index-N blob is
    updated.
  2. When attempting to delete a snapshot, if the snapshot was not found
    in the repository data, an exception is now thrown instead of silently
    ignoring the lack of presence of the snapshot in the repository data.

This commit does two things:
  1. Adds logging at the DEBUG level for when the index-N blob is
  updated.
  2. When attempting to delete a snapshot, if the snapshot was not found
  in the repository data, an exception is now thrown instead of silently
  ignoring the lack of presence of the snapshot in the repository data.
@abeyad abeyad added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue v5.4.2 v5.5.1 v6.0.0 labels Jun 15, 2017
@abeyad abeyad requested a review from imotov June 15, 2017 18:20
Copy link
Copy Markdown
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a small suggestion. Otherwise LGTM.

.filter(id -> !snapshotId.equals(id))
.collect(Collectors.toMap(SnapshotId::getUUID, Function.identity()));
if (newSnapshotIds.size() == snapshotIds.size()) {
throw new ElasticsearchException("Attempting to remove non-existent snapshot [{}] from repository data", snapshotId);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, something like ResourceNotFoundException would be more appropriate here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++, i made the change

@abeyad
Copy link
Copy Markdown
Author

abeyad commented Jun 15, 2017

thanks for the review @imotov

@abeyad abeyad merged commit 350125e into elastic:master Jun 15, 2017
@abeyad abeyad deleted the snapshot_deletion_improvements branch June 15, 2017 23:43
abeyad pushed a commit that referenced this pull request Jun 15, 2017
This commit does two things:
  1. Adds logging at the DEBUG level for when the index-N blob is
  updated.
  2. When attempting to delete a snapshot, if the snapshot was not found
  in the repository data, an exception is now thrown instead of silently
  ignoring the lack of presence of the snapshot in the repository data.
abeyad pushed a commit that referenced this pull request Jun 15, 2017
This commit does two things:
  1. Adds logging at the DEBUG level for when the index-N blob is
  updated.
  2. When attempting to delete a snapshot, if the snapshot was not found
  in the repository data, an exception is now thrown instead of silently
  ignoring the lack of presence of the snapshot in the repository data.
abeyad pushed a commit that referenced this pull request Jun 16, 2017
This commit does two things:
  1. Adds logging at the DEBUG level for when the index-N blob is
  updated.
  2. When attempting to delete a snapshot, if the snapshot was not found
  in the repository data, an exception is now thrown instead of silently
  ignoring the lack of presence of the snapshot in the repository data.
@abeyad
Copy link
Copy Markdown
Author

abeyad commented Jun 16, 2017

5.x commit: 309306b
5.5 commit: 662008c
5.4 commit: 52825e1

jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Jun 16, 2017
…y-context

* 'master' of github.com:elastic/elasticsearch: (21 commits)
  [DOCS] Clarify expected availability of HDFS for the HDFS Repository (elastic#25220)
  Remove some redundant 140 character checkstyle suppressions
  [Docs] more fix for the parent-join docs
  [Docs] Fix cross reference for parent-join field
  More advices around search speed and disk usage. (elastic#25252)
  Add documentation for the new parent-join field (elastic#25227)
  [analysis-icu] Allow setting unicodeSetFilter (elastic#20814)
  Introduce translog size and age based retention policies (elastic#25147)
  Add needs methods for specific variables to Painless script context factories. (elastic#25267)
  Improves snapshot logging and snapshoth deletion error handling (elastic#25264)
  Add unit test for PathHierarchyTokenizerFactory (elastic#24984)
  Deprecate tribe service
  Moved more token filters to analysis-common module.
  [Test] Make sure that SearchAfterSortedDocQueryTests uses a single threaded searcher
  [DOCS] Defined es-test-dir and plugins-examples-dir in index.asciidoc.  (elastic#25232)
  Test fix - removed superfluous assertion (elastic#25247)
  [Test] restore BWC for parent-join now that the new mapping format is in 5.x
  Add a section named "relations" in the ParentJoinFieldMapper (elastic#25248)
  test: Ported more OldIndexBackwardsCompatibilityIT tests to full cluster restart qa tests. (elastic#25173)
  fix: Sort Processor does not have proper behavior with targetField (elastic#25237)
  ...
@clintongormley clintongormley changed the title Improves snapshot logging and snapshoth deletion error handling Improves snapshot logging and snapshot deletion error handling Jun 27, 2017
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.

3 participants